user_idstring
User ID (either username or user_id required)
https://api.sandbase.ai/v1/api/instagram/v2/user-storiesReturns active stories posted by an Instagram user within the last 24 hours. The request accepts either an account username or a user identifier.
Çıktınız burada görünecek
Girdileri tamamlayın, ardından Çalıştır'a tıklayın.
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.
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.
| Name | Type | Required | Description |
|---|---|---|---|
user_id | string | No | User ID (either username or user_id required) |
username | string | No | Username (either username or user_id required) |
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
}
]
}
}
| Field | Meaning |
|---|---|
data.count | Number of stories returned in data.items. |
data.items[].id / data.items[].code | Story identifiers. id is the numeric story ID and code is a short alphanumeric code for the same story. |
data.items[].expiring_at | Unix timestamp in seconds that shows when the story expires. |
data.items[].device_timestamp | Timestamp from the posting device. The value is much larger than expiring_at, so it is not in seconds. |
data.items[].image_versions.items[].url | Link to an image of the story. |
data.items[].image_versions.items[].width / data.items[].image_versions.items[].height | Pixel size of each image version, so you can pick the size you need. |
data.items[].has_audio | true when the story has audio. The field appears only on some items. |
data.items[].can_reshare / data.items[].can_reply | Flags that show whether the story can be reshared or replied to. |
data.additional_data.latest_reel_media | Unix timestamp in seconds of the newest story in the set. |
data.additional_data.user.full_name / data.additional_data.user.is_verified | Display name of the account and whether it is verified. |
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.image_versions.items. Each story lists several sizes.$0.002 per successful call. Failed calls are not charged. It is included in the daily free quota of each organization.
Geliştirmeye başlayın
Birleşik kimlik doğrulama ve kullanım takibi sunan Platform API uç noktası.
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 '{
"user_id": "18527",
"username": "instagram"
}'SandBase API anahtarınızı sunucu ortamınıza ayarlayın. İstekler Bearer kimlik doğrulaması kullanır.
export SANDBASE_API_KEY="YOUR_API_KEY"Anahtarınızı sunucuda tutun. Tarayıcı kodunda açığa çıkarmayın.
user_idstringUser ID (either username or user_id required)
usernamestringUsername (either username or user_id required)
Bu API için kaydedilmiş örnek yanıt; görüntülerken canlı istek yapılmaz.
Yayınlanmış bir kaydedilmiş yanıt yok. Yanıtını incelemek için API'yi Playground'da çalıştırın.
Daha fazlasını keşfedin
| API | Fiyat | Yanıt |
|---|---|---|
Instagram | $0.002 çağrı başına | JSON |
Instagram | $0.002 çağrı başına | JSON |
Instagram | $0.002 çağrı başına | JSON |
Instagram | $0.002 çağrı başına | JSON |
Instagram | $0.002 çağrı başına | JSON |
Instagram | $0.002 çağrı başına | JSON |
Kılavuzlar:Instagram API cost: official limits and per-call pricesBest Instagram API in 2026: Pricing Compared
Sorular
SandBase API anahtarınızı Authorization başlığında (Bearer) ve parametreleri JSON gövdesi olarak ile https://api.sandbase.ai/v1/api/instagram/v2/user-stories adresine bir POST isteği gönderin. Ayrıca bu sayfadaki Playground’da kod yazmadan da deneyebilirsiniz.
çağrı başına $0.002. Her kuruluş, UTC günü başına 100 ücretsiz çağrı alır; bu hak, bu API dahil uygun SandBase API'leri arasında ortaktır. Sonrasında her çağrı, SandBase bakiyenizden bu fiyat üzerinden ücretlendirilir. Abonelik yoktur.
Gerekli parametre yoktur. İsteğe bağlı: user_id (string) ve username (string). Parametreler tablosu ve bu sayfadaki Playground, tüm alanları listeler.
Aynı HTTP isteğinde döndürülen bir JSON yanıtı (senkron). Bu sayfadaki README'de örnek bir yanıt yer alır.
Hayır. Instagram User Stories (V2), SandBase üzerinden çalışır; bu nedenle tek bir SandBase API anahtarı bu uç noktayı ve katalogdaki diğer tüm API'leri ve modelleri kapsar. Instagram API erişimi için ayrıca başvuru yapmanız gerekmez.