GET /v1/instagram/story

Instagram stories API: get an account's stories by username

Returns the stories of one Instagram account as Story[]: id, time, kind, media URL, expiry time, mentions and link. Send the handle. This read uses one of our signed-in Instagram accounts.

Price
$0.0100 per page
Batch
Yes, through /v1/batch
Failed calls
Not charged

Example request

curl
curl 'https://api.virev.ai/v1/instagram/story?handle=instagram' \
  -H "Authorization: Bearer $VIREV_API_KEY"
python
import os
import requests

response = requests.request(
    "GET",
    "https://api.virev.ai/v1/instagram/story",
    params={
        "handle": "instagram",
    },
    headers={"Authorization": f"Bearer {os.environ['VIREV_API_KEY']}"},
    timeout=60,
)
response.raise_for_status()
print(response.json())

Parameters

NameInTypeDescription
handle requiredquerystringInstagram account handle (a leading @ is accepted). On the operations whose upstream call takes the numeric account id, the crawler resolves it; a handle it has never seen costs one extra anonymous profile read. Example instagram.
cached queryauto | cache_only | liveauto (default) serves a read saved within the last 24 hours for these exact arguments, otherwise fetches. cache_only never contacts Instagram (404 not_cached when nothing is saved, whatever its age). live always fetches. Anything else is a 400. A saved read is an earlier answer of this operation for the same arguments; an account in the profile library (/v1/instagram/profile) is not one until this operation has read it. Default auto.
get_raw querybooleantrue returns the upstream JSON exactly as Instagram answered it instead of the normalized Story[]. Default false.

Example response

The example response of the API reference.

json
{
  "data": [
    {
      "id": "3700000000000000051",
      "taken_at": "2025-09-04T15:33:20+00:00",
      "kind": "video",
      "media_url": "https://scontent.cdninstagram.com/s1.mp4",
      "expires_at": "2025-09-05T15:33:20+00:00",
      "video_duration": null,
      "mentions": [],
      "link": null
    }
  ],
  "meta": {
    "source": "live",
    "fetched_at": "2026-09-09T03:10:22Z",
    "cost": "$0.0100",
    "balance": "$0.3777",
    "request_id": "req_f1abb41157ca15c565d48a90bacef554"
  }
}

How it works

Wraps GET /api/v1/feed/user/{id}/story/. Returns Story[] under data; with get_raw=true returns the upstream JSON.

Unknown, unsupported, and repeated query parameters return 400 before acquisition or billing.

The example response is the crawler's own projection of a synthetic upstream document into Story[], not a live capture.

Billing: $0.0100 per call. This read spends one of our signed-in Instagram accounts, so it costs more than a logged-out read.

Errors

StatusWhen
400The request parameters are invalid.
401Missing, malformed, or revoked API key.
402Balance is too low for this request.
403Instagram does not show this account to logged-out readers: it is private, hidden or restricted, or it no longer exists. Retrying will not change the answer until the account changes. You are not charged.
404cached=cache_only found nothing saved for these arguments (not_cached; call again with cached=auto to fetch it), or the account, post, highlight, or location does not exist (not_found).
429Over the per-minute limit. The limit belongs to your organization and all its API keys share it: 100 requests per minute unless an increase was granted. Wait for the Retry-After seconds, then retry. On a live read, code rate_limited means the platform itself rate-limited this read; retry after the Retry-After seconds. You are not charged.
502The upstream fetch failed. You are not charged.
503capacity_exhausted means every logged-in reader this request may use is busy or waiting for a session opening; retry after the Retry-After delay. billing_unavailable means billing could not be confirmed, so no data was returned. You are not charged.
504The upstream request timed out. You are not charged.

Instagram API guide