List active Instagram stories
curl --request GET \
--url https://api.social-api.ai/v1/platforms/instagram/accounts/{id}/stories \
--header 'Authorization: <api-key>'const options = {method: 'GET', headers: {Authorization: '<api-key>'}};
fetch('https://api.social-api.ai/v1/platforms/instagram/accounts/{id}/stories', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.social-api.ai/v1/platforms/instagram/accounts/{id}/stories"
headers = {"Authorization": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text){
"count": 123,
"data": [
{
"account_id": "<string>",
"caption": "<string>",
"comments_count": 123,
"id": "<string>",
"like_count": 123,
"media_type": "<string>",
"media_url": "<string>",
"metadata": {},
"permalink": "<string>",
"platform": "<string>",
"platform_media": [
{
"thumbnail_url": "https://scontent.cdninstagram.com/v/t51.29350-15/456_n.jpg",
"type": "image",
"url": "https://scontent.cdninstagram.com/v/t51.29350-15/123_n.jpg"
}
],
"settings": {
"alt_text": "<string>",
"audio_type": "MUSIC",
"child_attachments": [
{
"description": "<string>",
"link": "<string>",
"name": "<string>",
"picture": "<string>"
}
],
"comments_enabled": true,
"countries": [
"FR",
"BE"
],
"cta_link": "<string>",
"cta_type": "SHOP_NOW",
"is_ai_generated": true,
"max_age": 65,
"min_age": 18,
"multi_share_end_card": true,
"multi_share_optimized": true,
"place": {
"id": "<string>",
"name": "<string>"
},
"product_type": "FEED",
"share_to_feed": true
},
"shares_count": 123,
"timestamp": "<string>",
"view_count": 123
}
],
"next_cursor": "<string>"
}{
"error": {
"code": "resource.not_found",
"message": "Account not found",
"meta": {}
}
}{
"error": {
"code": "resource.not_found",
"message": "Account not found",
"meta": {}
}
}{
"error": {
"code": "resource.not_found",
"message": "Account not found",
"meta": {}
}
}{
"error": {
"code": "resource.not_found",
"message": "Account not found",
"meta": {}
}
}{
"error": {
"code": "resource.not_found",
"message": "Account not found",
"meta": {}
}
}{
"error": {
"code": "resource.not_found",
"message": "Account not found",
"meta": {}
}
}Instagram
List active Instagram stories
Returns the currently-active stories for a connected Instagram account. Stories are ephemeral and expire about 24 hours after posting; each item carries is_story and a computed expires_at in metadata. Returns 501 for non-Instagram accounts.
GET
/
platforms
/
instagram
/
accounts
/
{id}
/
stories
List active Instagram stories
curl --request GET \
--url https://api.social-api.ai/v1/platforms/instagram/accounts/{id}/stories \
--header 'Authorization: <api-key>'const options = {method: 'GET', headers: {Authorization: '<api-key>'}};
fetch('https://api.social-api.ai/v1/platforms/instagram/accounts/{id}/stories', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.social-api.ai/v1/platforms/instagram/accounts/{id}/stories"
headers = {"Authorization": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text){
"count": 123,
"data": [
{
"account_id": "<string>",
"caption": "<string>",
"comments_count": 123,
"id": "<string>",
"like_count": 123,
"media_type": "<string>",
"media_url": "<string>",
"metadata": {},
"permalink": "<string>",
"platform": "<string>",
"platform_media": [
{
"thumbnail_url": "https://scontent.cdninstagram.com/v/t51.29350-15/456_n.jpg",
"type": "image",
"url": "https://scontent.cdninstagram.com/v/t51.29350-15/123_n.jpg"
}
],
"settings": {
"alt_text": "<string>",
"audio_type": "MUSIC",
"child_attachments": [
{
"description": "<string>",
"link": "<string>",
"name": "<string>",
"picture": "<string>"
}
],
"comments_enabled": true,
"countries": [
"FR",
"BE"
],
"cta_link": "<string>",
"cta_type": "SHOP_NOW",
"is_ai_generated": true,
"max_age": 65,
"min_age": 18,
"multi_share_end_card": true,
"multi_share_optimized": true,
"place": {
"id": "<string>",
"name": "<string>"
},
"product_type": "FEED",
"share_to_feed": true
},
"shares_count": 123,
"timestamp": "<string>",
"view_count": 123
}
],
"next_cursor": "<string>"
}{
"error": {
"code": "resource.not_found",
"message": "Account not found",
"meta": {}
}
}{
"error": {
"code": "resource.not_found",
"message": "Account not found",
"meta": {}
}
}{
"error": {
"code": "resource.not_found",
"message": "Account not found",
"meta": {}
}
}{
"error": {
"code": "resource.not_found",
"message": "Account not found",
"meta": {}
}
}{
"error": {
"code": "resource.not_found",
"message": "Account not found",
"meta": {}
}
}{
"error": {
"code": "resource.not_found",
"message": "Account not found",
"meta": {}
}
}Authorizations
Prefix your API key with "Bearer ". Example: Authorization: Bearer sapi_key_...
Path Parameters
Connected account ID
Query Parameters
Maximum number of results to return (1-100, default 20)
Pagination cursor returned by the previous response