Instagram API

Instagram Profile API

Public profile for a handle: name, bio, category, follower/following counts and avatar.

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

What the API returned
{
"handle": "nasa",
"displayName": "NASA",
"bio": "Exploring the universe and our home planet.",
"category": "Science",
"verified": true,
"followers": 97400000,
"following": 78,
"posts": 4120,
... 9 more fields
}
Uptime
100.00%
30d · 520,900 calls
Requests
573,191
30d · weekly, last 12 wks
Response
1.4s
median · 30d

Try it

Get Instagram profile 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 `contactMethod`, 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 12 of 65 fields. See every field

{
  "found": true,
  "data": {
    "handle": "nasa",
    "displayName": "NASA",
    "bio": "Exploring the universe and our home planet.",
    "category": "Science",
    "verified": true,
    "followers": 97400000,
    "following": 78,
    "posts": 4120,
    "avatarUrl": "https://instagram.com/nasa/avatar.jpg",
    "externalUrl": "https://www.nasa.gov"
  }
}

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-11-17 · uptime and latency measured over 30d

Request body

JSON, posted to this endpoint.

  • handlestring

    nasa

    Instagram username without the leading @.

  • 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 `contactMethod`, 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.

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

Response

JSON, one example value per field.

datadata
  • avatarUrlstring

    https://instagram.com/nasa/avatar.jpg

    Profile picture URL. Often the highest resolution the account exposes, but it can be a 150 by 150 pixel version. Populated whenever the provider has data for the entity.

  • biostring

    Exploring the universe and our home planet.

    Profile biography text. Populated whenever the provider has data for the entity.

  • categorystringcan require

    Science

    Instagram's category label for the account (for example "Government Agencies" or "Coffee shop"). Absent when the account publishes no category. Null when the serving source does not report it; name category in requireFields to get it.

  • contactMethodstringcan require

    The contact button Instagram shows on the profile, for example CALL, TEXT, EMAIL, or UNKNOWN. Absent when the account exposes no contact button. Instagram no longer publishes the underlying email or phone number to unauthenticated callers.

  • displayNamestring

    NASA

    Account display name. Populated whenever the provider has data for the entity.

  • externalUrlstring

    https://www.nasa.gov

    The single website link on the profile. Absent when the account publishes no link. Populated whenever the provider has data for the entity.

  • followersinteger

    97400000

    Follower count.

  • followinginteger

    78

    Number of accounts this account follows.

  • handlestring

    nasa

    Instagram username without the leading @. Populated whenever the provider has data for the entity.

  • highlightsCountintegercan require

    Number of story highlights pinned on the profile. Null when this source does not report it.

  • isBusinessbooleancan require

    Whether Instagram flags the account as a business account. Null when the serving source does not report it; name isBusiness in requireFields to get it.

  • postsintegercan require

    4120

    Total number of posts on the account. On some responses this is rounded from the count Instagram displays (for example 1.2M), so it can be approximate; name posts in requireFields for an exact count. Null when the serving source does not report it.

  • privateboolean

    Whether the account is private.

  • userIdstring

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

  • verifiedboolean

    true

    Whether the account carries Instagram's verified badge.

each bioLinkdata.bioLinks[]

Every link the account publishes in its bio, in the order Instagram returns them. Business accounts often list several here while externalUrl carries only the first. Populated whenever the provider has data for the entity.

  • titlestring

    Display label for the link, empty when the account set none.

  • urlstring

    Destination URL, exactly as the account published it.

each latestPostdata.latestPosts[]

The account's most recent posts, up to about 12. Best-effort: returned when you name latestPosts in requireFields, or whenever the serving source has them, and absent otherwise. Each post has the same fields as instagram.user_posts returns, except that verified, likes, comments and createdUtc are absent when the source does not report them. Empty when the account is private or has not posted.

  • audioIdstring

    Instagram audio id of the post's sound, licensed track or original audio, the audioId instagram.audio_reels takes to list other reels using it. Absent when the post has no sound. Null when the serving source does not report it.

  • avatarUrlstring

    Profile picture URL of the posting account.

  • captionstringcan require
  • carouselCountinteger

    Number of slides, present on carousel posts only. Null when the serving source does not report it.

  • commentsintegercan require
  • countsHiddenboolean

    Whether the author has hidden the like and view counts. Null when the serving source does not report it.

  • createdUtcnumbercan require

    UTC epoch timestamp in seconds (Unix time). Multiply by 1000 for a JS Date in milliseconds.

  • displayNamestring

    Display name of the posting account.

  • durationSecondsnumbercan require

    Video duration in seconds. Absent on photo posts.

  • hashtagsstring[]can require

    Hashtags carried in the caption, each including its leading #.

  • idstringcan require

    Instagram media id.

  • isPinnedbooleancan require

    Whether the post is pinned to the top of a profile grid. On a collaboration post this can be true because a coauthor pinned it to their own profile. Null when the serving source does not report it.

  • likesintegercan require
  • locationIdstring

    Instagram location id the post is tagged at. Absent when the post has no location. Null when the serving source does not report it.

  • locationLatnumber

    Latitude of the tagged location, in decimal degrees. Null when the serving source does not report it.

  • locationLngnumber

    Longitude of the tagged location, in decimal degrees. Null when the serving source does not report it.

  • locationNamestring

    Name of the location the post is tagged at. Null when the serving source does not report it.

  • mentionsstring[]can require

    Accounts @mentioned in the caption, each including its leading @.

  • paidPartnershipboolean

    Whether the post is tagged as a paid partnership. Null when the serving source does not report it.

  • productTypestring

    Instagram's own surface label for the post, such as feed, clips or carousel_container. Null when the serving source does not report it.

  • resharesinteger

    Number of times the post has been reshared, when Instagram reports it. Null when the serving source does not report it.

  • soundAuthorstring

    Credited artist of a licensed track, or the username of the account whose original audio it is. Absent when the post has no sound. Null when the serving source does not report it.

  • soundTitlestring

    Name of the sound on a reel or a post with music. "Original audio" means the creator's own audio rather than a licensed track. Absent when the post has no sound. Null when the serving source does not report it.

  • urlstring
  • userIdstring

    Instagram user id of the posting account. Null when the serving source does not report it.

  • usernamestringcan require

    Username of the account that posted. A profile feed includes collaborator posts, so this is not always the requested handle.

  • verifiedboolean

    True when the posting account is verified.

  • viewsintegercan require

    Play count, present on video posts and reels only.

each coauthordata.latestPosts[].coauthors[]

Accounts listed as coauthors of the post. Null when the serving source does not report it.

  • displayNamestring

    Account display name.

  • userIdstring

    Instagram's numeric account id, as a string.

  • usernamestringcan require

    Instagram username without the leading @.

  • verifiedboolean

    Whether the account carries Instagram's verified badge.

each mediadata.latestPosts[].media[]

Photo, video, and GIF attachments on the post. Empty when the post has none.

  • heightinteger

    Pixel height of the media item, when the lane reports it.

  • typestring

    One of photo, video, or gif.

  • urlstring

    Image URL. For a video or GIF this is the poster/thumbnail frame.

  • videoUrlstring

    Playable video file URL. Present only for video and gif items.

  • widthinteger

    Pixel width of the media item, when the lane reports it.

each taggedUserdata.latestPosts[].taggedUsers[]

Accounts tagged in the media. Null when the serving source does not report it.

  • displayNamestring

    Account display name.

  • userIdstring

    Instagram's numeric account id, as a string.

  • usernamestringcan require

    Instagram username without the leading @.

top level
  • foundboolean

    true

  • 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.

Selling this API? See the full schema your endpoint must return.

FAQ

About the Instagram Profile API

The AnyAPI Instagram Profile API returns Instagram profile data as normalized JSON from one POST call to /v1/run/instagram.profile. Public profile for a handle: name, bio, category, follower/following counts and avatar. AnyAPI routes each request across 7 sources and falls back automatically when one fails. It costs from $0.56 per 1,000 requests, in US dollars with no subscription and no monthly minimum. Over the last 30 days, 100.0% of Instagram profile calls through AnyAPI succeeded, with a median response time of 1.4 seconds across 520,900 measured calls.

It costs from $0.56 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.

Public profile for a handle: name, bio, category, follower/following counts and avatar. 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, 100.0% of Instagram profile calls through AnyAPI succeeded, with a median response time of 1.4 seconds across 520,900 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 178 Instagram Profile calls at $0.00056 each.

AnyAPI asks the next of its 7 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.profile 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.