Instagram API

Instagram Search API

Search Instagram for users, hashtags, or places by keyword and get matching results with names, counts, and links.

$3.60/1k req, pay per request, no subscription.

What the API returneditems[0]
{
"id": "3312087456",
"handle": "roastlab.co",
"name": "Roast Lab Coffee",
"url": "https://www.instagram.com/roastlab.co/",
"image": "https://scontent.cdninstagram.com/v/t51.2885-19/roastlab_co_150x150.jpg",
"bio": "Small-batch roastery in Denver. Subscriptions ship weekly.",
"verified": false,
"followers": 48200,
... 2 more fields
}
Uptime
99.64%
30d · 2,526 calls
Requests
2,526
30d · weekly, last 12 wks
Response
6.6s
median · 30d

Pricing and providers

Instagram Search API pricing: one API, 2 interchangeable providers

The cheapest provider serves first. If it fails, the next one takes over in the same call.

You pay
$36.00
$3.60/1k req, only for what you use. No monthly plan.
Your first 27 requests are free with the $0.10 starting balance.

Try it

Get Instagram search in one request

requireFieldsarray
Optional; omit it and routing is unchanged, with the cheapest source serving. Name the output fields this request must be able to return, for example `postsCount`, and it is served only by a source that returns every one of them. Fields you do not name are still returned whenever the serving source has them. This can raise your price: when the cheapest source cannot return a named field, a dearer source serves, and you are quoted and charged its price. A named field can still be absent on a profile that genuinely lacks it. Naming a combination that no single source returns together is refused as invalid input, with no charge.
Open in
Get a free key
Sample response
Free runs return only the first 3 results. Fund a key to get the full response.

This sample shows 13 of 14 fields. See every field

{
  "found": true,
  "data": {
    "items": [
      {
        "id": "3312087456",
        "handle": "roastlab.co",
        "name": "Roast Lab Coffee",
        "url": "https://www.instagram.com/roastlab.co/",
        "image": "https://scontent.cdninstagram.com/v/t51.2885-19/roastlab_co_150x150.jpg",
        "bio": "Small-batch roastery in Denver. Subscriptions ship weekly.",
        "verified": false,
        "followers": 48200,
        "following": 612,
        "postsCount": 934
      },
      {
        "id": "3487621094",
        "handle": "driftwood.roasters",
        "name": "Driftwood Roasters",
        "url": "https://www.instagram.com/driftwood.roasters/",
        "image": "https://scontent.cdninstagram.com/v/t51.2885-19/driftwood_roasters_150x150.jpg",
        "bio": "Direct trade beans, Portland OR",
        "verified": true,
        "followers": 112000,
        "following": 340,
        "postsCount": 1522
      },
      {
        "id": "3105598237",
        "handle": "cascadia.coffee.co",
        "name": "Cascadia Coffee Co",
        "url": "https://www.instagram.com/cascadia.coffee.co/",
        "image": "https://scontent.cdninstagram.com/v/t51.2885-19/cascadia_coffee_150x150.jpg",
        "bio": "",
        "verified": false,
        "followers": 9840,
        "following": 201,
        "postsCount": 287
      }
    ]
  }
}

Full parameter and response reference - every field, type, and example for this endpoint.

Reference

One request, one response shape.

Every field you send and every field you get back, each with a real example.

Last verified 2026-10-31 · uptime and latency measured over 30d

Request body

JSON, posted to this endpoint.

  • querystring

    coffee roastery

    Keyword to search Instagram for; one or more words without special punctuation (e.g. coffee roastery).

  • limitinteger

    20

    Maximum number of results to return (1-20, default 20).

  • requireFieldsarray

    Optional; omit it and routing is unchanged, with the cheapest source serving. Name the output fields this request must be able to return, for example `postsCount`, and it is served only by a source that returns every one of them. Fields you do not name are still returned whenever the serving source has them. This can raise your price: when the cheapest source cannot return a named field, a dearer source serves, and you are quoted and charged its price. A named field can still be absent on a profile that genuinely lacks it. Naming a combination that no single source returns together is refused as invalid input, with no charge.

  • typeenum

    user

    What to search for: user profiles, hashtags, or places (e.g. hashtag).

You send. A small JSON body. The values shown are examples to replace with your own.

Response

JSON, one example value per field.

each itemdata.items[]

Matching Instagram profile records for the query. Populated whenever the provider has data for the entity.

  • biostring

    Small-batch roastery in Denver. Subscriptions ship weekly.

    The account's bio text. Empty when the account has none.

  • followersinteger

    48200

    The account's follower count. May be 0 when the lane does not return it in search results.

  • followinginteger

    612

    The number of accounts the account follows. May be 0 when the lane does not return it in search results.

  • handlestring

    roastlab.co

    The account's username, without the @ prefix. Populated whenever the provider has data for the entity.

  • idstring

    3312087456

    The account's numeric Instagram user ID, as a string. Populated whenever the provider has data for the entity.

  • imagestring

    https://scontent.cdninstagram.com/v/t51.2885-19/roastlab_co_150x150.jpg

    URL of the account's profile picture, kept whole because its query carries the CDN signature. Empty when the upstream omits it.

  • namestring

    Roast Lab Coffee

    The account's display name. Empty when the account has none.

  • postsCountintegercan require

    934

    The account's post count. Null when the serving source does not report it.

  • urlstring

    https://www.instagram.com/roastlab.co/

    Canonical URL of the account's profile, with tracking query params stripped. Populated whenever the provider has data for the entity.

  • verifiedboolean

    false

    Whether the account is verified.

top level
  • foundboolean

    true

    Whether any matching profiles were returned for the query.

  • reason"not_found"

    Present only when `found` is false, and says why there is no result. `not_found`: the source states the target does not exist, or returned nothing for it. A `found: false` answer is a successful call, not an error, and `costUsd` is what it actually cost.

You get back. Named, typed fields in the same shape whichever source answers.

FAQ

About the Instagram Search API

The AnyAPI Instagram Search API returns Instagram search data as normalized JSON from one POST call to /v1/run/instagram.search. Search Instagram for users, hashtags, or places by keyword and get matching results with names, counts, and links. AnyAPI routes each request across 2 sources and falls back automatically when one fails. It costs from $3.60 per 1,000 requests, in US dollars with no subscription and no monthly minimum. Over the last 30 days, 99.6% of Instagram search calls through AnyAPI succeeded, with a median response time of 6.6 seconds across 2,526 measured calls.

It costs from $3.60 per 1,000 requests, in US dollars with no subscription and no monthly minimum. You fund one USD wallet and each call draws it down. Some failed wallet-funded requests incur processing charges that we pass through at cost, with no markup; the error response shows the amount charged.

Search Instagram for users, hashtags, or places by keyword and get matching results with names, counts, and links. The response is normalized JSON with the same envelope every AnyAPI endpoint returns, so parsing a second endpoint is a change of URL and nothing else.

Over the last 30 days, 99.6% of Instagram search calls through AnyAPI succeeded, with a median response time of 6.6 seconds across 2,526 measured calls. These are AnyAPI's own measurements of traffic through the gateway, recomputed continuously, not a published service-level target.

Yes. A new AnyAPI account starts with $0.10 of free balance and no card required, which covers 27 Instagram Search calls at $0.0036 each.

AnyAPI asks the next of its 2 sources in the same request, cheapest first, so one source going down does not fail your call.

Send a POST request to https://api.getanyapi.com/v1/run/instagram.search with your AnyAPI key in an "Authorization: Bearer" header and the input as a JSON body. The same key and the same wallet work on every AnyAPI endpoint.

No. You add US dollars to one prepaid AnyAPI balance and each request draws it down. There is no monthly plan and no minimum, and the same balance pays for every AnyAPI endpoint.

Yes. Install @getanyapi/sdk from npm for TypeScript or getanyapi from pip for Python. Both call every AnyAPI endpoint with the same key, and any HTTP client works too.

Yes. An agent can connect to the AnyAPI MCP server at https://api.getanyapi.com/mcp, or create its own free-trial key with one unauthenticated POST to https://api.getanyapi.com/agent/signup and call this endpoint over HTTP.