usernamestringआवश्यक
Instagram username or handle without the @.
https://api.sandbase.ai/v1/api/instagram/stories-fullFetch a public Instagram account's currently live stories with media, type, dimensions, posting time, and 24-hour expiry by username.
आपका आउटपुट यहाँ दिखाई देगा
इनपुट पूरा करें, फिर Run पर क्लिक करें।
Returns the stories that a public Instagram account has live right now. Each story includes its media URLs, type, size, posting time, expiry time, and sound details when present. The only required input is a username.
image or videoUrl files.soundTitle and soundAuthor.createdUtc values.curl -X POST "https://api.sandbase.ai/v1/api/instagram/stories-full" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{"username": "nba"}'
The result is returned in outputs[0].data.
| Name | Type | Required | Description |
|---|---|---|---|
username | string | Yes | Instagram username or handle without the @. |
requireFields | array | No | Optional; omit it and routing is unchanged, with the cheapest source serving. Name the output fields this request must be able to return, for example soundTitle, and it is served only by a source that returns every one |
Real response for the request above, trimmed: lists keep their first item and long strings are cut.
{
"data": {
"items": [
{
"audioId": null,
"avatarUrl": "https://scontent-lax3-2.cdninstagram.com/v/t51.82787-19/870530727_18700682161024…",
"code": "DfP4jTDgKvK",
"createdUtc": 1793641838,
"displayName": "NBA",
"durationSeconds": 15,
"expiresUtc": 1793728238,
"height": 1920,
"id": "4021681708511308746",
"image": "https://scontent-lax3-2.cdninstagram.com/v/t51.71878-15/886632526_11417059416508…",
"mediaType": 2,
"paidPartnership": true
}
]
},
"found": true
}
| Field | Meaning |
|---|---|
data.items[].id / data.items[].code | Unique story ID and short code for the story. Use them to identify or deduplicate stories. |
data.items[].createdUtc / data.items[].expiresUtc | Posting time and expiry time of the story as Unix timestamps in seconds. In the sample, expiry is 86400 seconds after posting. |
data.items[].mediaType | Numeric media type. In the sample, 1 is a story with only an image and 2 is a story that also has a videoUrl. |
data.items[].image / data.items[].videoUrl | Media file URLs. videoUrl appears only on video stories. |
data.items[].width / data.items[].height | Pixel dimensions of the story media. |
data.items[].durationSeconds | Length of a video story in seconds. It is null for image stories. |
data.items[].audioId / data.items[].soundTitle / data.items[].soundAuthor | Audio ID, sound name, and sound author for stories with sound. They are null when the story has no sound data. |
data.items[].paidPartnership | true when the story is marked as a paid partnership. |
data.items[].username / data.items[].displayName / data.items[].userId / data.items[].verified | Account that posted the story: handle, display name, numeric user ID, and verified status. |
found | true when the lookup found the account's stories. |
nba.requireFields to audioId, soundAuthor, or soundTitle to force a source that returns those fields. This can raise the price.Billed at the actual cost of each call, about $0.0022 for the request above. Failed calls are not charged.
बिल्डिंग शुरू करें
एकीकृत authentication और usage tracking के साथ Platform API endpoint.
curl -X POST "https://api.sandbase.ai/v1/api/instagram/stories-full" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"username": "nba"
}'अपने SandBase API key को अपने सर्वर environment में सेट करें। Requests Bearer authentication का उपयोग करती हैं।
export SANDBASE_API_KEY="YOUR_API_KEY"अपना key सर्वर पर रखें। इसे browser code में expose न करें।
usernamestringआवश्यकInstagram username or handle without the @.
requireFieldsarrayOptional; omit it and routing is unchanged, with the cheapest source serving. Name the output fields this request must be able to return, for example `soundTitle`, and it is served only by a source that returns every one of them. Fields you do not name are still returned whenever the serving source has them. This can raise your price: when the cheapest source cannot return a named field, a dearer source serves, and you are quoted and charged its price. A named field can still be absent on a story that genuinely lacks it. Naming a combination that no single source returns together is refused as invalid input, with no charge.
इस API के लिए सेव किया गया example response; इसे देखते समय कोई live request नहीं की जाती।
कोई सेव response प्रकाशित नहीं किया गया है। इसका response देखने के लिए Playground में API चलाएँ।
और जानें
| API | कीमत | प्रतिक्रिया |
|---|---|---|
Instagram Stories (full)यह API Instagram | $0.0022 प्रति कॉल से | JSON |
Instagram | $0.0011 प्रति कॉल से | JSON |
Instagram | $0.001 प्रति कॉल से | JSON |
Instagram | $0.0011 प्रति कॉल से | JSON |
Instagram | $0.0012 प्रति कॉल से | JSON |
Instagram | $0.0011 प्रति कॉल से | JSON |
गाइड्स:Instagram API cost: official limits and per-call pricesBest Instagram API in 2026: Pricing Compared
प्रश्न
https://api.sandbase.ai/v1/api/instagram/stories-full पर Authorization header (Bearer) में अपनी SandBase API key और parameters को JSON body के रूप में भेजें। आप इस पेज के Playground में बिना code लिखे भी इसे आज़मा सकते हैं।
$0.0022 से प्रति call, आपकी SandBase balance से बिल किया जाएगा। आपसे केवल आपके किए गए calls के लिए शुल्क लिया जाता है; कोई subscription नहीं है।
आवश्यक: username (string)। वैकल्पिक: requireFields (array)। Parameters table और इस पेज का Playground हर field सूचीबद्ध करते हैं।
एक JSON response जो उसी HTTP request में लौटाया जाता है (synchronous)। इस पेज का README एक sample response शामिल करता है।
नहीं। Instagram Stories (full) SandBase के माध्यम से चलता है, इसलिए एक SandBase API key इस endpoint और catalog के हर अन्य API और model को कवर करती है। आपको अलग से Instagram API access के लिए आवेदन करने की आवश्यकता नहीं है।