Introducing the Instagram APIRead more →

Instagram Story API. Send a story link.

Image or video file, from the story's link. We handle the proxies, blocks and platform changes.

Instagram Story API at a glance

Returns a public Instagram story's image or video link, at the best quality Instagram serves, from the story's link or a highlight item's link. You also get its cover, size, length, author, publish time and, for videos, the view count.

GET /v1/instagram/story

Read the API reference
  • 1 credit per request, $0.75–$1.97 per 1,000 requests
  • 22 typed fields null when unknown
  • url is all it needs, e.g. https://www.instagram.com/stories/highlights/18023864549864045/?story_media_id=4012120567117354624_787132
  • 100 credits free when you sign up, no card, so you can build before you spend

Send one request. Get 22 fields 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
url = https://www.instagram.com/stories/highlights/18023864549864045/?story_media_id=4012120567117354624_787132
GET /v1/instagram/storyTry in
const params = new URLSearchParams({
  url: "https://www.instagram.com/stories/highlights/18023864549864045/?story_media_id=4012120567117354624_787132",
});
const res = await fetch(`https://socialtap.dev/v1/instagram/story?${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, meta } = body;
console.log(data, meta.credits_charged);
200 OK · GET https://socialtap.dev/v1/instagram/storyLong 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 story URL: a story's own link (instagram.com/stories/<username>/<story id>/, as the app shares it) or a highlight's item (instagram.com/stories/highlights/<highlight id>/?story_media_id=<story id>_<user id>, or the highlight share link instagram.com/s/…?story_media_id=…). m.instagram.com links and tracking params are accepted.

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

  • Download a story from a shared link

  • Check what a campaign story showed

  • Moderate story media from shared links

Good to know before you build.

  • Stories saved to a highlight are public, and this endpoint serves them reliably. A story only in the account's tray, or one that expired without being highlighted, needs a login and returns private_or_unavailable.
  • Media URLs are Instagram CDN links that expire at media[].expires_at, so download what you need before then.
  • Most story links are answered from the embed page, where published_at comes from the story's ID. It can differ from the posting time by a few seconds and is listed in approximate_fields, and hashtag and mention stickers are listed in unknown_fields.
  • Like and comment counts are null because stories show none in public.
  • A video's view count comes from the embed page, which answers a story's own link. A highlight item's link is answered from the highlight, with the exact publish time and stickers but view_count null.

1 credit per request. Failed requests are free.

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

SourcePrice per successful requestPer 1,000 requests
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 Story API.

More in the API reference.

Which link do I send for a highlight?
The story item's own link. Open the highlight, go to the story and copy its link, which carries story_media_id. A highlight link without story_media_id is the whole highlight, which the Instagram Highlight Stories API returns.
Why is id a number and not a shortcode?
Because every link Instagram makes for a story uses its numeric ID. A shortcode opens no public page for a story.
How much does the Instagram Story API cost?
A request costs 1 credit. SocialTap credits cost $0.75–$1.97 per 1,000, depending on the plan or pack.

Try it on a link you already have.

Paste it 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