Social media6 min readBy Purrkey teamUpdated

How to fetch an Instagram account's live stories

Get a public Instagram account's currently live stories with media, type, dimensions, posting time, and 24-hour expiry

On this page

You have 40 public Instagram usernames and need to see which accounts have currently live stories before an editorial meeting. One call per username returns the live story records, and the review table tells you which items to screenshot, repost or skip

The deliverable is a table with one row per story item, not one row per account, because an account can have several live stories. Values here are placeholders showing the shape; no run has been executed for this guide

Build the review table

Use these columns for the editorial review. The agent fills one row per item returned in data.items; an account with no live stories gets a row with the username and found set to false

usernameidcodemediaTypewidthheightcreatedUtcexpiresUtcimagevideoUrlsoundTitlesoundAuthoraudioIdreview_note
acme_plumbing_demo(story id)(shortcode)110801920(epoch seconds)(epoch seconds)(image URL)(video URL or empty)(sound or null)(author or null)(audio id or null)screenshot

Example handles and values are invented; replace them with your own public handles. mediaType is 1 for an image and 2 for a video. createdUtc and expiresUtc are UTC epoch seconds; multiply by 1000 for a JS Date in milliseconds. The review note is your own decision field

Input and Example handles

anyapi.instagram.stories_full is called through POST /v1/runs with toolId anyapi.instagram.stories_full with a JSON body. The contract lists username as required: the Instagram handle without the @, with a minimum length of 1. The optional requireFields array can name audioId, soundAuthor or soundTitle. Naming a field means the request is served only by a source that returns each named field; fields you do not name are still returned when the serving source has them. This can raise the price because a dearer source may serve. A combination that no single source returns together is refused as invalid input, with no charge

Example input (invented handles; replace with real public accounts):

username
acme_plumbing_demo
north_side_bakery_demo
river_city_bikes_demo
harbor_legal_demo
sunset_studio_demo

For the 40-account job, send 40 calls, one username per call. If you need sound credits on each row, set requireFields to ["soundTitle", "soundAuthor", "audioId"] and budget for the possible price increase. If a story has no music sticker, a named sound field can still be null because the story genuinely lacks it

Read the fields that drive the decision

The top-level found field is true when stories were found and false when the lookup returned nothing. When found is false, reason is 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

Inside data.items, each story record carries the fields for the review. Use id and code to identify the item, mediaType to choose a screenshot for an image or a video capture for a video, and width plus height to see the media shape. createdUtc gives the posting time, and expiresUtc gives the 24-hour expiry; both are UTC epoch seconds. image is the direct URL to the highest-resolution story image, and videoUrl is the direct URL to the story video when the story is a video. durationSeconds is null on a photo story or when the source does not report it

For sound credits, read soundTitle, soundAuthor and audioId. soundTitle is the name of the sound on the music sticker, and "Original audio" means the creator's own audio rather than a licensed track. soundAuthor is the credited author. audioId is the Instagram audio id. The companion guide is List Instagram reels by audio. A sound field is null when the story has no music sticker or the source does not report it

Other fields help with the note: private is true when the owner's account is private, verified is true when the owner has a verified badge, and paidPartnership is true when the story is tagged as a paid partnership. productType gives the Instagram product type, for example story. username, displayName, avatarUrl and userId identify the owner

Run the agent prompt

The tool cannot return expired stories; only currently live stories are returned, and a found: false response is a successful call that settles at the actual AnyAPI charge. Expect a row with empty story fields for an account with no live stories

The prompt below checks the current inputs and price, then asks for the review table. Replace the example handles with your 40 usernames before running

Agent prompt
Set up https://purrkey.app/SKILL.md, then use Purrkey to fetch currently live Instagram stories for the 40 public usernames below. Check the current inputs and price of anyapi.instagram.stories_full before running anything. Call the tool once per username. Return a table with username, id, code, mediaType, width, height, createdUtc, expiresUtc, image, videoUrl, soundTitle, soundAuthor, audioId and review_note. Leave story fields empty when found is false, and set review_note to your suggested action. Do not invent a story or a media URL.

acme_plumbing_demo
north_side_bakery_demo
river_city_bikes_demo
harbor_legal_demo
sunset_studio_demo

The example list has five invented handles; the real list has 40. Keep the first test to one call so you can see the shape of data.items and confirm the price before the batch

Estimated tool cost

The catalog lists anyapi.instagram.stories_full at unit max_call, up to $0.0024 per call, read through the Purrkey catalog on November 13, 2026 (price revision anyapi-catalog-2026-11-05). max_call means "Maximum per call. Successful runs settle at the actual AnyAPI charge." The totals below are ceilings, not settled charges

StepFormulaUnit pricePlanned quantityTotal
Check one accountcalls x max priceup to $0.0024 per call1$0.0024
Check 40 accountscalls x max priceup to $0.0024 per call40$0.096
40-account plan$0.096

A found: false response still counts as one call and settles at the actual AnyAPI charge. Model fees for the agent are not counted. If you raise the price with requireFields, the quote can exceed the max_call figure for the cheapest source

Next action

Open the tool page to check the current input schema and price for Instagram stories_full

Get started by giving this to your agent

  • Claude Code
  • Codex
  • Gemini CLI
  • Cursor
  • GitHub Copilot
Set up https://purrkey.app/SKILL.md, then use Purrkey to show me what I can do with Instagram.
Explore Instagram tools and pricing

FAQ

How do I fetch live stories from an Instagram username?

Call anyapi.instagram.stories_full with the public handle in username, without the @. One call returns the currently live story records for that account, and you can repeat the call for each username in the list.

What inputs does anyapi.instagram.stories_full take?

The contract lists username as required and requireFields as optional. requireFields can name audioId, soundAuthor or soundTitle, and naming a field can raise the price.

What does found false mean for Instagram stories?

found is false when the lookup returned nothing, and reason is not_found. A found: false answer is a successful call, not an error, and it settles at the actual AnyAPI charge.

Which output fields help decide whether to screenshot or repost a story?

mediaType shows 1 for an image and 2 for a video, width and height show the media shape, and createdUtc plus expiresUtc show posting time and 24-hour expiry. image and videoUrl give the direct media URLs.

How much does it cost to check 40 Instagram accounts for live stories?

At up to $0.0024 per call, 40 calls are at most $0.096. Successful runs settle at the actual AnyAPI charge.

Can the tool return stories that have expired?

No. Only currently live stories are returned, and expiresUtc gives the 24-hour expiry for each item.

What happens if I name a requireFields combination no source returns?

The request is refused as invalid input, with no charge. A named field can still be null when a story genuinely lacks it.

Next step

Try this with Instagram

The tool directory lists every endpoint with its current price. Inspect the inputs there, then let your agent run a small batch before scaling up.

See Instagram tools

Share this article