Tutorial · Instagram · cURL, Python, Node.js, PHP, Go, Ruby

Get the posts an Instagram account is tagged in

Posts the account is tagged in. Complete code for GET /v1/instagram/users/{user}/tagged in six languages and both official SDKs, each tested against the documented response.

Short answer. One call returns about 12 posts a public account is tagged in, each with its owner, caption, media_type, url and like, comment and view counts.

Facts checked 2 December 2026. Prices change: follow the links before you decide.

Why call it

  • See which creators tag a brand, for earned-media reports and influencer discovery.
  • Collect user-generated content that mentions a client account.
  • Review what a creator is tagged in as part of a brand-safety check.

The request

GET https://api.handlehaul.com/v1/instagram/users/{user}/tagged with your key in the X-Api-Key header. Posts the account is tagged in. Posts the account is tagged in. 1 credit a page. Page size about 12. Docs: https://api.handlehaul.com/docs/instagram-tagged-posts-api

Parameters for Posts the account is tagged in
ParameterInDescription
user requiredpathNumeric user id (skips the lookup credit) or Instagram username. All digits = an id; write "@12345" for an all-digit username. A username we have to look up costs 1 extra credit (meta.lookup_credits).
byqueryOptional: says whether user is a username or an id, instead of guessing from the digits. One of: username, id.
cursorquerynext_cursor from the previous page (opaque, sealed).
freshquerytrue skips the cache (full price).

Code in 6 languages

Each sample is a complete program: it reads the key from HANDLEHAUL_API_KEY, waits and retries when the API answers 429 (using Retry-After), stops with the error code on anything else, and follows pagination.next_cursor for up to 3 pages. The SDK versions do the retries for you.

instagram-tagged-posts.sh

# Posts the account is tagged in. --retry waits out a 429 using its Retry-After header;
# --fail exits with code 22 on any other error (drop it to read the error JSON).
# Next page: add --data-urlencode "cursor=<pagination.next_cursor>" (stop when it is null).
curl -sS --fail --retry 3 "https://api.handlehaul.com/v1/instagram/users/natgeo/tagged" \
  -H "X-Api-Key: $HANDLEHAUL_API_KEY"
Generated from the OpenAPI spec (2026-12-02); every sample was syntax-checked and run against a local mock serving the response below. Language guides: Python, Node.js, PHP, Go, Ruby, cURL.

Response

A list in data, with pagination.next_cursor and has_more, and meta with what the call cost. Example values, from the API docs. Lists are cut to two rows here.

200 · application/json
{
  "data": [
    {
      "id": "1222430285318392596",
      "shortcode": "BD28d4nFQsU",
      "url": "https://www.instagram.com/p/BD28d4nFQsU/",
      "taken_at": "2026-11-28T11:56:20.000Z",
      "media_type": "photo",
      "caption": "ivy cedar · sample post 1",
      "counts": {
        "likes": 7054,
        "comments": 48,
        "views": null
      },
      "thumbnail_url": "https://scontent.cdninstagram.com/…/1222430285318392596.jpg",
      "video_url": null,
      "duration_seconds": null,
      "owner": {
        "id": "7146293651",
        "username": "wren.studio56",
        "full_name": "Wren Studio",
        "is_private": false,
        "is_verified": false,
        "profile_pic_url": "https://scontent.cdninstagram.com/…/7146293651.jpg"
      },
      "location": {
        "id": "973420649",
        "name": "olive Café"
      },
      "audio": null,
      "carousel": null
    }
  ],
  "pagination": {
    "next_cursor": "Ym9v…sealed…",
    "has_more": true,
    "page_size": 12
  },
  "meta": {
    "request_id": "req_…",
    "cached": false,
    "cache_age_seconds": 0,
    "credits_charged": 1,
    "credits_remaining": 26943
  }
}

Cost, cache and limits

  • 1 credit per page. At $1.40 to $0.80 per 1,000 calls; the samples stop after 3 pages, so one run costs 3 credits at most (plus a lookup credit, below). Cache hits, failed calls and 429 answers are free; meta.credits_charged says what each call cost.
  • Lookup credit. Naming the account by a username we have not looked up in the last 7 days adds 1 lookup credit (meta.lookup_credits). Send the numeric id from any result to skip it.
  • Cache. Identical calls that arrive while an answer is cached are served from it. Add fresh=true to force a live call (billed).
  • Speed. Over your plan's requests-per-second limit the API answers 429 rate_limited with Retry-After; the samples wait that long and retry.
  • Private accounts. Public data only: a private account answers 403 private_account, and that call is free.
  • Testing. A kd_test_ key returns sample data in this exact shape at no cost, so you can run the code before you spend anything.

Things to know

  • owner is the account that published the post, not the tagged account. Aggregate owner.id to answer "who tagged us".
  • Rows use the full post shape: video_url, duration_seconds and counts.views are null on photos.
  • Posts the account reposted are a separate route, /users/{user}/reposts, with the same shape and paging.

Next steps

Instagram tagged posts API: questions

How do I find who tagged a brand on Instagram?
Call GET /v1/instagram/users/{brand}/tagged. Each post includes its owner, so you can list the accounts that tagged the brand.
What is the difference between tagged posts and reposts?
Tagged posts are posts that tag this account. Reposts are posts this account reposted. Both routes return the same post shape, about 12 a page.

Run it on real data

One key for Instagram and TikTok. $1.40 to $0.80 per 1,000 calls; failed calls and cache hits are free.

Want to test first? Sandbox keys are free and unlimited, with sample data in the live schema.