idstringwymagane
The id of the highlight to retrieve details for.
https://api.sandbase.ai/v1/api/instagram/highlight-detailFetch the details and media items of a single Instagram story highlight by id.
Twój wynik pojawi się tutaj
Uzupełnij dane wejściowe, a następnie kliknij Uruchom.
This API returns the details of one Instagram story highlight: its title, owner handle, cover image, and the media items inside it. It needs the highlight id as input.
title and mediaCount over time.curl -X POST "https://api.sandbase.ai/v1/api/instagram/highlight-detail" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{"id": "18201653992314974"}'
The result is returned in outputs[0].data.
| Name | Type | Required | Description |
|---|---|---|---|
id | string | Yes | The id of the highlight to retrieve details for. |
Real response for the request above, trimmed: lists keep their first item and long strings are cut.
{
"data": {
"avatarUrl": "https://scontent-sea5-1.cdninstagram.com/v/t51.2885-19/29090066_159271188110124_…",
"coverUrl": "https://scontent-sea5-1.cdninstagram.com/v/t51.71878-15/718648521_12119525676283…",
"createdUtc": 1780937715,
"id": "18201653992314974",
"items": [
{
"code": "DZTBP2mCTYj",
"createdUtc": 1780862187,
"durationSeconds": 45.8,
"hasAudio": true,
"height": 1920,
"id": "3914477988573951523",
"image": "https://scontent-sea5-1.cdninstagram.com/v/t51.71878-15/720146318_86724670251437…",
"mediaType": 2,
"paidPartnership": false,
"productType": "story",
"videoUrl": "https://scontent-sea5-1.cdninstagram.com/o1/v/t2/f2/m78/AQMNdjoi8emz-9Ae21X6Ohss…",
"width": 1080
}
],
"mediaCount": 20,
"ownerHandle": "nasa",
"title": "Artemis III"
},
"found": true
}
| Field | Meaning |
|---|---|
found | true when the highlight exists. A lookup that finds nothing returns false. |
data.id / data.title | The highlight id and the title shown on the profile. |
data.ownerHandle | Instagram username of the account that owns the highlight. |
data.createdUtc | Time the highlight was created, as a Unix timestamp in seconds (UTC). |
data.mediaCount | Total number of media items in the highlight. The items list in the response can hold fewer entries than this number. |
data.coverUrl / data.avatarUrl | Image URL of the highlight cover and of the owner's profile picture. |
data.items[].id / data.items[].code | The id and the short code of each story item. |
data.items[].mediaType | Numeric media type. In this response 1 marks an image item and 2 marks a video item. |
data.items[].image / data.items[].videoUrl | Image URL of the item. Video items also include a videoUrl. |
data.items[].durationSeconds / data.items[].hasAudio | Length of a video item in seconds and whether it has an audio track. Both appear only on video items. |
data.items[].width / data.items[].height | Pixel size of the item as given in the response. |
createdUtc Unix timestamp in seconds, which is the time that story was posted.data.items[].productType is story for the items in this highlight.Billed at the actual cost of each call, about $0.0012 for the request above. Failed calls are not charged.
Zacznij tworzyć
Punkt końcowy API platformy z jednolitym uwierzytelnianiem i śledzeniem użycia.
curl -X POST "https://api.sandbase.ai/v1/api/instagram/highlight-detail" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"id": "18201653992314974"
}'Ustaw klucz API SandBase w środowisku serwera. Żądania używają uwierzytelniania Bearer.
export SANDBASE_API_KEY="YOUR_API_KEY"Przechowuj klucz na serwerze. Nie ujawniaj go w kodzie przeglądarkowym.
idstringwymaganeThe id of the highlight to retrieve details for.
Zapisany przykładowy response dla tego API; podczas wyświetlania nie jest wykonywane żadne żądanie na żywo.
Nie opublikowano zapisanego response. Uruchom API w Playground, aby sprawdzić jego odpowiedź.
Odkryj więcej
| API | Cena | Odpowiedź |
|---|---|---|
Instagram | Od $0.0012 za wywołanie | JSON |
Instagram | Od $0.0011 za wywołanie | JSON |
Instagram | Od $0.001 za wywołanie | JSON |
Instagram | Od $0.0011 za wywołanie | JSON |
Instagram | Od $0.0012 za wywołanie | JSON |
Instagram | Od $0.0011 za wywołanie | JSON |
Przewodniki:Instagram API cost: official limits and per-call pricesBest Instagram API in 2026: Pricing Compared
Pytania
Wyślij żądanie POST do https://api.sandbase.ai/v1/api/instagram/highlight-detail z kluczem API SandBase w nagłówku Authorization (Bearer) oraz parametrami w treści JSON. Możesz też wypróbować je w Playground na tej stronie bez pisania kodu.
Od $0.0012 za wywołanie, rozliczane z salda SandBase. Płacisz tylko za wykonane wywołania; nie ma subskrypcji.
Wymagane: id (string). Tabela Parameters oraz Playground na tej stronie zawierają wszystkie pola.
Odpowiedź JSON zwrócona w tym samym żądaniu HTTP (synchronicznie). README na tej stronie zawiera przykładową odpowiedź.
Nie. Instagram Highlight Detail działa przez SandBase, więc jeden klucz API SandBase obejmuje ten endpoint i każde inne API oraz model w katalogu. Nie musisz osobno ubiegać się o dostęp do API Instagram.