idstringobligatoire
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.
Votre sortie apparaîtra ici
Complétez les entrées, puis cliquez sur Exécuter.
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.
Commencer à construire
Point de terminaison de l'API de la plateforme avec authentification unifiée et suivi de l'utilisation.
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"
}'Définissez votre clé API SandBase dans l'environnement de votre serveur. Les requêtes utilisent l'authentification Bearer.
export SANDBASE_API_KEY="YOUR_API_KEY"Conservez votre clé côté serveur. Ne l'exposez pas dans le code du navigateur.
idstringobligatoireThe id of the highlight to retrieve details for.
Exemple de réponse enregistré pour cette API ; aucune requête en direct n'est effectuée lors de l'affichage.
Aucune réponse enregistrée n'a été publiée. Exécutez l'API dans Playground pour inspecter sa réponse.
Explorer plus
| API | Prix | Réponse |
|---|---|---|
Instagram Highlight DetailCette API Instagram | À partir de $0.0012 par appel | JSON |
Instagram | À partir de $0.0011 par appel | JSON |
Instagram | À partir de $0.001 par appel | JSON |
Instagram | À partir de $0.0011 par appel | JSON |
Instagram | À partir de $0.0012 par appel | JSON |
Instagram | À partir de $0.0011 par appel | JSON |
Guides :Instagram API cost: official limits and per-call pricesBest Instagram API in 2026: Pricing Compared
Questions
Envoyez une requête POST à https://api.sandbase.ai/v1/api/instagram/highlight-detail avec votre clé API SandBase dans l’en-tête Authorization (Bearer) et les paramètres dans un corps JSON. Vous pouvez aussi l’essayer dans le Playground sur cette page sans écrire de code.
À partir de $0.0012 par appel, facturé depuis votre solde SandBase. Vous ne payez que les appels que vous effectuez ; aucun abonnement.
Obligatoire : id (string). Le tableau des paramètres et le Playground sur cette page listent tous les champs.
Une réponse JSON renvoyée dans la même requête HTTP (synchrone). Le README sur cette page inclut un exemple de réponse.
Non. Instagram Highlight Detail fonctionne via SandBase, donc une seule clé API SandBase couvre ce point de terminaison ainsi que toutes les autres API et tous les modèles du catalogue. Vous n’avez pas besoin de demander un accès API Instagram séparément.