Introducing the Instagram APIRead more →

Instagram Posts API. Posts, reels and carousels, page by page.

Posts, reels and carousels from a profile. We handle the proxies, blocks and platform changes.

Instagram Posts API at a glance

Returns a public Instagram account's posts, reels and carousels, newest first, a page at a time, from a username, profile link or user ID. Each has its caption, hashtags, mentions, publish time, collaborators, tagged accounts, media, and like, comment and view counts, with pinned posts marked.

GET /v1/instagram/posts

Read the API reference
  • 1 credit per page, $0.75–$1.97 per 1,000 pages
  • 22 typed fields null when unknown
  • 12 posts, reels and carousels per page, newest first
  • handle is all it needs, e.g. nasa

Send one request. Get up to 12 posts, reels and carousels back.

Copy the request in your language, or hand it to your agent. Sign up for an API key and your first 100 credits are free.

$ npm install socialtap
handle = nasa
GET /v1/instagram/postsTry in
const params = new URLSearchParams({
  handle: "nasa",
});
const res = await fetch(`https://socialtap.dev/v1/instagram/posts?${params}`, {
  headers: { "x-api-key": process.env.SOCIALTAP_API_KEY ?? "" },
});
const body = await res.json();
if (!res.ok) throw new Error(`${body.error.code}: ${body.error.message}`);
const { data, page, meta } = body;
console.log(data, meta.credits_charged);
200 OK · GET https://socialtap.dev/v1/instagram/postsLong arrays and strings are shortened here. Real responses are complete.Docs

One schema on 21 platforms.

The response reference lists every field, its type and when it is null. See the full schema.

  • Null means unknown

    A field Instagram doesn't show is null, never zero or an empty string, so a real zero always means zero.

  • What it accepts

    Instagram username with or without the @, a numeric user ID (528817151), or a profile URL (instagram.com/nasa, m.instagram.com, instagr.am, a /reels/ or /tagged/ tab, an instagram.com/_u/ app link).

  • Write one parser

    Instagram, TikTok, Facebook and 18 more platforms answer in these fields, so the code that reads one reads them all.

platformstring
Platform ID (tiktok, youtube, …).
idstring
Platform-native post ID (string; Instagram shortcode, Reddit with its t3_ prefix).
urlstring
Canonical post URL.
typestring
Normalized content shape. New values may be added; treat unknown values as other.
platform_typestring
The platform's own product label, lowercase (reel, short, story, live, tweet, …).
titlestring
Headline (YouTube title, Reddit title); null on caption-only platforms.
textstring
Caption, description or body as plain text.
languagestring
BCP-47 language of text, when the platform states it.

What teams build with the Instagram Posts API.

  • Monitor an account's new posts since a date

  • Benchmark engagement across creators and brands

  • Archive an account's posts and media

  • Find an influencer's brand collaborations

Good to know before you build.

  • Pinned posts lead the first page whatever their age. Instagram doesn't mark pins logged out, so is_pinned is inferred from the order, and null where the order can't tell.
  • view_count is set for videos. like_count and view_count are null when the owner hides them.
  • If view counts fail on a later page, that page comes without them and with a partial_data warning.
  • Media URLs are Instagram CDN links that expire at media[].expires_at.
  • Share and save counts and the caption's language are null: Instagram doesn't show them logged out.

1 credit per page. Failed requests are free.

Buy credits once and spend them on any endpoint, on any platform.

SourcePrice per successful pagePer 1,000 pages
Any source1 credit$0.75–$1.97
  • Cache hits are free.
  • Credits from packs and top-ups never expire.
  • A monthly plan's credits are spent first, and what is left of them ends at each renewal.
  • Prices exclude tax: sales tax is added at checkout where it applies.
  • Outside the US, plans and packs are sold to businesses: checkout asks for your VAT, GST or other business tax ID.

Questions about the Instagram Posts API.

More in the API reference.

How far back can I page?
Through the account's whole grid. Every page has a next_cursor until the oldest post, and since stops paging at a date, so older pages aren't fetched or charged.
Who is in coauthors?
The other accounts on a collab post. A collab another account published shows on this grid with that account as author and this one in coauthors.
How much does the Instagram Posts API cost?
A page of up to 12 posts, reels and carousels costs 1 credit. Every successful page is charged, empty pages included. SocialTap credits cost $0.75–$1.97 per 1,000, depending on the plan or pack.
How do I get the next page?
Repeat the same request with cursor set to page.next_cursor from the previous response, keeping the other parameters. When page.has_more is false there are no more pages. Cursors expire after 24 hours.

Try it on an account you know.

Paste its handle or link in the playground, or copy the request into your code.

100free credits
  • No credit card
  • Failed requests are free
  • Works on all 218 endpoints
Start for free Read the docs