Sand AISand AI MAGI-2MAGI-2 अब SandBase पर है: 1080p वीडियो, नेटीव ऑडियो के साथअभी आज़माएँ

Instagram User Stories (V2)

API दस्तावेज़
https://api.sandbase.ai/v1/api/instagram/v2/user-stories

Returns active stories posted by an Instagram user within the last 24 hours. The request accepts either an account username or a user identifier.

मूल्य
$0.002USD / कॉल
मेथड
POST
प्रतिक्रिया
JSON
पैरामीटर
0 आवश्यक · 2 वैकल्पिक
100 निःशुल्क कॉल / दिनपहली 100 कॉल प्रति दिन निःशुल्क (organization के लिए साझा) · 00:00 UTC पर रीसेट होता है। उसके बाद प्रति कॉल भुगतान करें।

प्लेग्राउंड

इनपुट
User ID (either username or user_id required)
Username (either username or user_id required)
आउटपुटतैयार

आपका आउटपुट यहाँ दिखाई देगा

इनपुट पूरा करें, फिर Run पर क्लिक करें।

API README

Instagram User Stories (V2) API

Returns the active stories an Instagram account posted in the last 24 hours. Each story includes image links, expiry times and sharing flags. The input is a username or a user_id.

Use cases

  • Show the current stories of a brand account in a dashboard or feed.
  • Save story image links before the stories expire.
  • Check how many stories an account has live and when the newest one was posted.
  • Track which stories a verified account allows others to reshare.

Request

curl -X POST "https://api.sandbase.ai/v1/api/instagram/v2/user-stories" \
  -H "Authorization: Bearer $SANDBASE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"username": "instagram", "user_id": "18527"}'

The result is returned in outputs[0].data.

Parameters

NameTypeRequiredDescription
user_idstringNoUser ID (either username or user_id required)
usernamestringNoUsername (either username or user_id required)

Example response

Real response for the request above, trimmed: lists keep their first item and long strings are cut.

{
  "data": {
    "additional_data": {
      "ad_expiry_timestamp_in_millis": null,
      "can_gif_quick_reply": true,
      "can_react_with_avatar": false,
      "can_reply": false,
      "can_reshare": true,
      "disabled_reply_types": [
        "story_remix_reply"
      ],
      "expiring_at": 1793742535,
      "id": "25025320",
      "is_archived": false,
      "latest_reel_media": 1793656135,
      "reel_type": "user_reel",
      "show_expiration_tray_signal": false
    },
    "count": 3,
    "items": [
      {
        "archive_story_deletion_ts": 0,
        "boost_unavailable_identifier": null,
        "boost_unavailable_reason": null,
        "boost_unavailable_reason_v2": null,
        "can_extend_expiration": null,
        "can_hype": false,
        "can_mention_back": false,
        "can_mention_share": false,
        "can_play_spotify_audio": false,
        "can_reply": false,
        "can_reshare": true,
        "can_reshare_to_story": true
      }
    ]
  }
}

Response fields

FieldMeaning
data.countNumber of stories returned in data.items.
data.items[].id / data.items[].codeStory identifiers. id is the numeric story ID and code is a short alphanumeric code for the same story.
data.items[].expiring_atUnix timestamp in seconds that shows when the story expires.
data.items[].device_timestampTimestamp from the posting device. The value is much larger than expiring_at, so it is not in seconds.
data.items[].image_versions.items[].urlLink to an image of the story.
data.items[].image_versions.items[].width / data.items[].image_versions.items[].heightPixel size of each image version, so you can pick the size you need.
data.items[].has_audiotrue when the story has audio. The field appears only on some items.
data.items[].can_reshare / data.items[].can_replyFlags that show whether the story can be reshared or replied to.
data.additional_data.latest_reel_mediaUnix timestamp in seconds of the newest story in the set.
data.additional_data.user.full_name / data.additional_data.user.is_verifiedDisplay name of the account and whether it is verified.

Notes

  • Send either username or user_id. The example response used both values together.
  • data.additional_data.user.id holds the account ID. Use it as user_id in other calls.
  • Story links are image versions in image_versions.items. Each story lists several sizes.
  • To see saved stories that stay on a profile, call Instagram User Highlights (V2) or Instagram Highlight Stories.

Pricing

$0.002 per successful call. Failed calls are not charged. It is included in the daily free quota of each organization.

और जानें

संबंधित APIs

सभी APIs
APIकीमतप्रतिक्रिया
Instagram$0.002 प्रति कॉलJSON
Instagram$0.002 प्रति कॉलJSON
Instagram$0.002 प्रति कॉलJSON
Instagram$0.002 प्रति कॉलJSON
Instagram$0.002 प्रति कॉलJSON
Instagram$0.002 प्रति कॉलJSON

गाइड्स:Instagram API cost: official limits and per-call pricesBest Instagram API in 2026: Pricing Compared

प्रश्न

FAQ

Instagram User Stories (V2) API का उपयोग कैसे करें?

https://api.sandbase.ai/v1/api/instagram/v2/user-stories पर Authorization header (Bearer) में अपनी SandBase API key और parameters को JSON body के रूप में भेजें। आप इस पेज के Playground में बिना code लिखे भी इसे आज़मा सकते हैं।

Instagram User Stories (V2) API की लागत कितनी है?

$0.002 प्रति call। हर organization को प्रति UTC day 100 निःशुल्क calls मिलती हैं, जो इस सहित योग्य SandBase APIs के बीच साझा होती हैं; उसके बाद हर call का बिल आपकी SandBase balance से इस कीमत पर लिया जाता है। कोई subscription नहीं है।

Instagram User Stories (V2) API कौन-से parameters स्वीकार करती है?

कोई parameters आवश्यक नहीं हैं। वैकल्पिक: user_id (string) और username (string)। Parameters table और इस पेज का Playground हर field सूचीबद्ध करते हैं।

Instagram User Stories (V2) API क्या लौटाती है?

एक JSON response जो उसी HTTP request में लौटाया जाता है (synchronous)। इस पेज का README एक sample response शामिल करता है।

क्या मुझे एक Instagram developer account या API key चाहिए?

नहीं। Instagram User Stories (V2) SandBase के माध्यम से चलता है, इसलिए एक SandBase API key इस endpoint और catalog के हर अन्य API और model को कवर करती है। आपको अलग से Instagram API access के लिए आवेदन करने की आवश्यकता नहीं है।