Instagram story monitoring API
Keep a list of public accounts, check each one on a schedule and save every story the moment it appears — no Instagram login, no cookies, no session to keep alive. One request returns everything an account has live; a check that finds nothing costs 0.1 credits. Below: how the loop works, what it costs per month at real hit rates, working code, and what this approach cannot do.
How the loop works
- Check one account. Pass instagram.com/stories/<username>/ to /v1/instagram. If the account has stories live, medias[] holds every one of them in posting order, each with a type, an extension and a direct CDN URL. That call costs 5 credits however many stories come back.
- Nothing live is a normal answer. An account with no active story returns 404 MEDIA_NOT_FOUND and costs 0.1 credits. In a monitoring loop this is the most common answer, not an error — treat it as "check again later". A private account cannot be read at all; it also ends with a final error at 0.1 credits, so drop it from the list.
- Skip what you already saved. The response does not carry a story id. Use the file name at the end of the media URL path as the key: it stays the same between checks, while the query string is a signature that changes. Keep the keys in a database and download only new ones. If a backup source ever answers instead of the main one, the same story can arrive under a different URL — the worst case is one duplicate file, not a missed story.
- Download right away. Media URLs are signed and expire, and the story itself is gone 24 hours after it was posted. Fetch the file when you first see it rather than storing the URL.
- Spread the checks over your rate limit. A check that finds nothing takes a few seconds, so 400 accounts one after another take well over ten minutes. Run checks in parallel, staying under your plan's requests-per-minute limit; a 429 RATE_LIMITED response carries Retry-After in seconds.
curl -s "https://api.saveapi.org/v1/instagram" \ -H "Authorization: Bearer sk_live_xxxx" \ -G --data-urlencode "url=https://www.instagram.com/stories/natgeo/"
What it costs per month
Each check costs 5 credits when the account has stories live and 0.1 when it does not. The table assumes 27% of checks find something — the share measured on our API in the week to 12 November 2026, over 7,038 story checks — which averages 1.42 credits per check over 30 days. Accounts that post stories every day push it towards 5; quiet ones towards 0.1.
A working monitor in Python
One sweep an hour over a list of usernames: new stories are written to disk, ones already saved are skipped, accounts with nothing live cost 0.1 credits. Swap the set for a database table and the sequential loop for a worker pool before you scale past a few hundred accounts.
Pythonimport pathlib, time, urllib.parse
import httpx
API = "https://api.saveapi.org/v1/instagram"
KEY = "sk_live_xxxx"
ACCOUNTS = ["bbcnews", "natgeo", "nasa"]
EVERY = 60 * 60 # one sweep an hour
OUT = pathlib.Path("stories")
seen: set[str] = set() # use a database table in production
client = httpx.Client(headers={"Authorization": f"Bearer {KEY}"}, timeout=60)
def live_stories(username: str) -> list[dict]:
r = client.get(API, params={"url": f"https://www.instagram.com/stories/{username}/"})
data = r.json()
if data["success"]:
return data["medias"]
code = data["error"]["code"]
if code == "MEDIA_NOT_FOUND": # nothing live right now (0.1 credits)
return []
if code == "RATE_LIMITED":
time.sleep(int(r.headers.get("Retry-After", "10")))
return [] # picked up on the next sweep
print(username, code) # e.g. PRIVATE_CONTENT: drop the account
return []
def story_key(media: dict) -> str:
# No story id in the response. The file name in the CDN path is stable;
# the query string is a signature and changes, so never key on the full URL.
return urllib.parse.urlsplit(media["url"]).path.rsplit("/", 1)[-1]
while True:
for username in ACCOUNTS:
for media in live_stories(username):
key = story_key(media)
if key in seen:
continue
name = key if "." in key else f"{key}.{media['ext']}" # video paths have no extension
target = OUT / username / name
target.parent.mkdir(parents=True, exist_ok=True)
target.write_bytes(httpx.get(media["url"], timeout=120).content)
seen.add(key)
print("new", media["type"], target)
time.sleep(EVERY)Tracking the profile as well
/v1/instagram/profile returns follower and post counts, the verified flag, the avatar and up to 6 recent posts with likes and comments for 3 credits — one call a day per account gives you a growth curve for 90 credits a month. Bio, bio links and the following count are not available to logged-out clients and come back as null; a private account usually returns 404.
cURLcurl -s "https://api.saveapi.org/v1/instagram/profile" \ -H "Authorization: Bearer sk_live_xxxx" \ -G --data-urlencode "url=https://www.instagram.com/natgeo/"
What this cannot do
- Public accounts only. Private accounts cannot be read at any price.
- Live stories only: no archive and no highlights.
- No viewer lists, reactions or replies.
- No story id and no posting time in the response — the order of medias[] is the posting order.
- No push or webhook: you poll, and each check that finds live stories costs 5 credits even if you saved all of them an hour ago.
If you need highlights, story ids and posting times, or private accounts, you need a service that works through a logged-in Instagram session — a different product with different risks. The Instagram API comparison lists prices of the main providers.
Questions before you build
- How often should I check an account?
- Stories stay up for 24 hours, so a check every hour catches every story with plenty of margin. Check more often only if you need to know within minutes — cost grows in direct proportion.
- Do I pay for checks that find nothing?
- 0.1 credits. A check that finds live stories costs 5, however many there are. Errors on our side — timeouts, upstream failures — cost nothing.
- Is there a webhook when a new story is posted?
- No. Instagram does not offer one to outside clients, so any monitoring service polls; this page shows how to do it and what it costs.
- Do I need an Instagram account or cookies?
- No. The request is the link and your API key; no Instagram login is involved on your side or ours.
- Can I monitor private accounts?
- No. Only stories a logged-out visitor could see are available. Those checks end with a final error at 0.1 credits.