Sand AISand AI MAGI-2MAGI-2 ya está en SandBase: video en 1080p con audio nativoPruébalo ahora

Instagram User Highlights (V2)

Documentación de la API
https://api.sandbase.ai/v1/api/instagram/v2/user-highlights

Returns an Instagram user's list of highlights and saved story collections. Query using either a target user ID or account username.

Precio
$0.002USD / llamada
Método
POST
Respuesta
JSON
Parámetros
0 obligatorios · 2 opcionales

Entorno de pruebas

Entrada
User ID (either username or user_id required)
Username (either username or user_id required)
SalidaEjemplo
Respuestaoutputs · 9.8 KB · 167 líneas
[
  {
    "data": {
      "data": {
        "count": 7,
        "highlights_tray_type": "DEFAULT",
        "items": [
          {
            "can_gif_quick_reply": true,
            "can_react_with_avatar": false,
            "can_reply": false,
            "can_reshare": true,
            "contains_stitched_media_blocked_by_rm": false,
            "cover_media": {
              "crop_rect": null,
              "cropped_image_version": {
                "height": 150,
                "url": "https://scontent-dfw6-1.cdninstagram.com/v/t51.71878-15/756700225_1653985762331725_8429300849500507026_n.jpg?stp=dst-jpg_s150x150_tt6&_nc_cat=1&ccb=7-5&_nc_sid=acbce5&_nc_ohc=NRirPknCIUoQ7kNvwFs_pKx&_nc_oc=AdpQVi6qoxGwDzA1RZQZoLhHi1VCW7IemM6qqPyZelVe3Oq6TsAvLlORdgv9psEEc3s&_nc_ad=z-m&_nc_cid=0&_nc_zt=23&_nc_ht=scontent-dfw6-1.cdninstagram.com&_nc_gid=GwLBFeZh4oQFlrfWyA2piQ&_nc_ss=723ba&oh=00_AQPivLIjTuqutcc7NkWrHE9MX89wiuKDeXtfzYgAG6LC3A&oe=6AC18EFE",
                "width": 150
              },
              "full_image_version": {
                "height": 1080,
                "url": "https://scontent-dfw6-1.cdninstagram.com/v/t51.71878-15/756700225_1653985762331725_8429300849500507026_n.jpg?stp=dst-jpg_s1080x1080_tt6&_nc_cat=1&ccb=7-5&_nc_sid=acbce5&_nc_ohc=NRirPknCIUoQ7kNvwFs_pKx&_nc_oc=AdpQVi6qoxGwDzA1RZQZoLhHi1VCW7IemM6qqPyZelVe3Oq6TsAvLlORdgv9psEEc3s&_nc_ad=z-m&_nc_cid=0&_nc_zt=23&_nc_ht=scontent-dfw6-1.cdninstagram.com&_nc_gid=GwLBFeZh4oQFlrfWyA2piQ&_nc_ss=723ba&oh=00_AQPs7XpUoBawANIDyChR_I6g60eIa_8TPa5I1VF-JTELxQ&oe=6AC18EFE",
                "width": 1080
              },
              "id": "None",
              "upload_id": null
            },
            "created_at": 1719606671,
            "highlight_pog_unseen": null,
            "highlight_reel_type": "DEFAULT",
            "id": "highlight:18223279177302854",
            "is_archived": false,
            "is_converted_to_clips": false,
            "is_nux": false,
            "is_pinned_highlight": false,
            "latest_reel_media": 1790008940,
            "media_count": 52,
            "prefetch_count": 0,
            "ranked_position": -1790118702,
            "reel_type": "highlight_reel",
            "seen_ranked_position": -1790118702,
            "title": "close friends",
            "updated_timestamp": 1790118702,
            "user": {
              "account_badges": [],
              "fifa_country_code": "CA",
              "full_name": "Instagram",
              "id": "25025320",
              "interop_messaging_user_fbid": "117943452927407",
              "is_creator_agent_enabled": false,
              "is_private": false,
              "is_verified": true,
              "profile_pic_id": "3725434617063385984",
              "profile_pic_url": "https://scontent-dfw6-1.cdninstagram.com/v/t51.82787-19/550891366_18667771684001321_1383210656577177067_n.jpg?stp=dst-jpg_e0_s150x150_tt6&efg=eyJ2ZW5jb2RlX3RhZyI6InByb2ZpbGVfcGljLmRqYW5nby4xMDgwLmMyIn0&_nc_ht=scontent-dfw6-1.cdninstagram.com&_nc_cat=1&_nc_oc=Q6cZ2gGriiE6UjMnnDkprfM34bxZwMIoELMXTquSZRT4IAMlFsg7Ak3hStiTUxYS_cP3KHE&_nc_ohc=f5sphjxPT3EQ7kNvwEbW-CU&_nc_gid=GwLBFeZh4oQFlrfWyA2piQ&edm=APs17CUBAAAA&ccb=7-5&ig_cache_key=GGbv1SApFvlLPVJCAOtF0XrDJjITbmNDAQAB1501500j-ccb7-5&oh=00_AQOj9_wAnatBtLmsiF7ApUhzm1THP0vBiPgAx9L78Alwtg&oe=6AC1A1A7&_nc_sid=10d13b",
              "username": "instagram"
            }
          },
          {
            "can_gif_quick_reply": true,
            "can_react_with_avatar": false,
            "can_reply": false,
            "can_reshare": true,
            "contains_stitched_media_blocked_by_rm": false,
            "cover_media": {
              "crop_rect": null,
              "cropped_image_version": {
                "height": 150,
                "url": "https://scontent-dfw6-1.cdninstagram.com/v/t51.71878-15/755867844_1751720619182762_5430881549273743299_n.jpg?stp=dst-jpg_s150x150_tt6&_nc_cat=1&ccb=7-5&_nc_sid=acbce5&_nc_ohc=XXsKiZVU-g4Q7kNvwHylJ1S&_nc_oc=Ado3TsHFm1rvPC85lDOiFVoPjEg5WqzJ9avkGUzdap8njLbWQZYRz6OJ1-Fnp0szAVg&_nc_ad=z-m&_nc_cid=0&_nc_zt=23&_nc_ht=scontent-dfw6-1.cdninstagram.com&_nc_gid=GwLBFeZh4oQFlrfWyA2piQ&_nc_ss=723ba&oh=00_AQMftQvNJSZF9vJ7hvfmEdie3c4X-WcRCGIkt-_ixqaR7w&oe=6AC1932F",
                "width": 150
              },
              "full_image_version": {
                "height": 1080,
                "url": "https://scontent-dfw6-1.cdninstagram.com/v/t51.71878-15/755867844_1751720619182762_5430881549273743299_n.jpg?stp=dst-jpg_s1080x1080_tt6&_nc_cat=1&ccb=7-5&_nc_sid=acbce5&_nc_ohc=XXsKiZVU-g4Q7kNvwHylJ1S&_nc_oc=Ado3TsHFm1rvPC85lDOiFVoPjEg5WqzJ9avkGUzdap8njLbWQZYRz6OJ1-Fnp0szAVg&_nc_ad=z-m&_nc_cid=0&_nc_zt=23&_nc_ht=scontent-dfw6-1.cdninstagram.com&_nc_gid=GwLBFeZh4oQFlrfWyA2piQ&_nc_ss=723ba&oh=00_AQOgRGgus1jCTcYI3qoznzIetqXlZGIQqh5hp-TxXzXNrg&oe=6AC1932F",
                "width": 1080
              },
              "id": "None",
              "upload_id": null
            },
            "created_at": 1784674239,
            "highlight_pog_unseen": null,
            "highlight_reel_type": "DEFAULT",
            "id": "highlight:18612622252018257",
            "is_archived": false,
            "is_converted_to_clips": false,
            "is_nux": false,
            "is_pinned_highlight": false,
            "latest_reel_media": 1789738467,
            "media_count": 46,
            "prefetch_count": 0,
            "ranked_position": -1790118665,
            "reel_type": "highlight_reel",
            "seen_ranked_position": -1790118665,
            "title": "🎤🎶🎸",
            "updated_timestamp": 1790118665,
            "user": {
              "account_badges": [],
              "fifa_country_code": "CA",
              "full_name": "Instagram",
              "id": "25025320",
              "interop_messaging_user_fbid": "117943452927407",
              "is_creator_agent_enabled": false,
              "is_private": false,
              "is_verified": true,
              "profile_pic_id": "3725434617063385984",
              "profile_pic_url": "https://scontent-dfw6-1.cdninstagram.com/v/t51.82787-19/550891366_18667771684001321_1383210656577177067_n.jpg?stp=dst-jpg_e0_s150x150_tt6&efg=eyJ2ZW5jb2RlX3RhZyI6InByb2ZpbGVfcGljLmRqYW5nby4xMDgwLmMyIn0&_nc_ht=scontent-dfw6-1.cdninstagram.com&_nc_cat=1&_nc_oc=Q6cZ2gGriiE6UjMnnDkprfM34bxZwMIoELMXTquSZRT4IAMlFsg7Ak3hStiTUxYS_cP3KHE&_nc_ohc=f5sphjxPT3EQ7kNvwEbW-CU&_nc_gid=GwLBFeZh4oQFlrfWyA2piQ&edm=APs17CUBAAAA&ccb=7-5&ig_cache_key=GGbv1SApFvlLPVJCAOtF0XrDJjITbmNDAQAB1501500j-ccb7-5&oh=00_AQOj9_wAnatBtLmsiF7ApUhzm1THP0vBiPgAx9L78Alwtg&oe=6AC1A1A7&_nc_sid=10d13b",
              "username": "instagram"
            }
          },
          {
            "can_gif_quick_reply": true,
            "can_react_with_avatar": false,
            "can_reply": false,
            "can_reshare": true,
            "contains_stitched_media_blocked_by_rm": false,
            "cover_media": {
              "crop_rect": null,
              "cropped_image_version": {
                "height": 150,
                "url": "https://scontent-dfw6-1.cdninstagram.com/v/t51.71878-15/755331856_1609699020573638_4426177467586352650_n.jpg?stp=dst-jpg_s150x150_tt6&_nc_cat=1&ccb=7-5&_nc_sid=acbce5&_nc_ohc=a7-mhagr6bkQ7kNvwHfPZdG&_nc_oc=AdrwWheOYVUqGdhd8l21lCe0-QYOMb8jr0jX3ExVMiBhTJ17qJ2AmNck1eQESv4chdc&_nc_ad=z-m&_nc_cid=0&_nc_zt=23&_nc_ht=scontent-dfw6-1.cdninstagram.com&_nc_gid=GwLBFeZh4oQFlrfWyA2piQ&_nc_ss=723ba&oh=00_AQORP1jqVC-adfsjVUxWJj8zVsqtbeglb6SjToTAi8R_7Q&oe=6AC18773",
                "width": 150
              },
              "full_image_version": {
                "height": 1080,
                "url": "https://scontent-dfw6-1.cdninstagram.com/v/t51.71878-15/755331856_1609699020573638_4426177467586352650_n.jpg?stp=dst-jpg_s1080x1080_tt6&_nc_cat=1&ccb=7-5&_nc_sid=acbce5&_nc_ohc=a7-mhagr6bkQ7kNvwHfPZdG&_nc_oc=AdrwWheOYVUqGdhd8l21lCe0-QYOMb8jr0jX3ExVMiBhTJ17qJ2AmNck1eQESv4chdc&_nc_ad=z-m&_nc_cid=0&_nc_zt=23&_nc_ht=scontent-dfw6-1.cdninstagram.com&_nc_gid=GwLBFeZh4oQFlrfWyA2piQ&_nc_ss=723ba&oh=00_AQP-h_4bUaXcn5lO2i5FrBqa2u7q6Wd1iFPeRxjiyCHREQ&oe=6AC18773",
                "width": 1080
              },
              "id": "None",
              "upload_id": null
            },
            "created_at": 1713456841,
            "highlight_pog_unseen": null,
            "highlight_reel_type": "DEFAULT",
            "id": "highlight:18029499352961095",
            "is_archived": false,
            "is_converted_to_clips": false,
            "is_nux": false,
            "is_pinned_highlight": false,
            "latest_reel_media": 1789070386,
            "media_count": 47,
            "prefetch_count": 0,
            "ranked_position": -1789070420,
            "reel_type": "highlight_reel",
            "seen_ranked_position": -1789070420,
            "title": "what’s new",
            "updated_timestamp": 1789070420,
            "user": {
              "account_badges": [],
              "fifa_country_code": "CA",
              "full_name": "Instagram",
              "id": "25025320",
              "interop_messaging_user_fbid": "117943452927407",
              "is_creator_agent_enabled": false,
              "is_private": false,
              "is_verified": true,
              "profile_pic_id": "3725434617063385984",
              "profile_pic_url": "https://scontent-dfw6-1.cdninstagram.com/v/t51.82787-19/550891366_18667771684001321_1383210656577177067_n.jpg?stp=dst-jpg_e0_s150x150_tt6&efg=eyJ2ZW5jb2RlX3RhZyI6InByb2ZpbGVfcGljLmRqYW5nby4xMDgwLmMyIn0&_nc_ht=scontent-dfw6-1.cdninstagram.com&_nc_cat=1&_nc_oc=Q6cZ2gGriiE6UjMnnDkprfM34bxZwMIoELMXTquSZRT4IAMlFsg7Ak3hStiTUxYS_cP3KHE&_nc_ohc=f5sphjxPT3EQ7kNvwEbW-CU&_nc_gid=GwLBFeZh4oQFlrfWyA2piQ&edm=APs17CUBAAAA&ccb=7-5&ig_cache_key=GGbv1SApFvlLPVJCAOtF0XrDJjITbmNDAQAB1501500j-ccb7-5&oh=00_AQOj9_wAnatBtLmsiF7ApUhzm1THP0vBiPgAx9L78Alwtg&oe=6AC1A1A7&_nc_sid=10d13b",
              "username": "instagram"
            }
          },
          "… 4 more items in the full response"
        ]
      },
      "pagination_token": null
    }
  }
]

Ejemplos

Seleccione un ejemplo para cargar sus entradas y el resultado en el playground.

README de la API

Instagram User Highlights (V2) API

Returns the list of story highlights on a public Instagram profile, with title, cover image, item count and timestamps for each one. Send either username or user_id.

Use cases

  • List every highlight title and cover image to show a profile's highlight row in a custom viewer.
  • Compare media_count across highlights to see which collections hold the most stories.
  • Track updated_timestamp over time to detect when an account adds to or edits a highlight.
  • Collect highlight IDs for an account, then fetch the stories inside each one.

Request

curl -X POST "https://api.sandbase.ai/v1/api/instagram/v2/user-highlights" \
  -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.

Parameters

NameTypeRequiredDescription
user_idstringNoUser ID (either username or user_id required)
usernamestringNoUsername (either username or user_id required)

Example response

Real response for the request above, trimmed: lists keep their first item and long strings are cut.

{
  "data": {
    "count": 7,
    "highlights_tray_type": "DEFAULT",
    "items": [
      {
        "can_gif_quick_reply": true,
        "can_react_with_avatar": false,
        "can_reply": false,
        "can_reshare": true,
        "contains_stitched_media_blocked_by_rm": false,
        "cover_media": {
          "crop_rect": null,
          "cropped_image_version": {
            "height": 150,
            "url": "https://scontent-iad3-1.cdninstagram.com/v/t51.71878-15/756700225_16539857623317…",
            "width": 150
          },
          "full_image_version": {
            "height": 1080,
            "url": "https://scontent-iad3-1.cdninstagram.com/v/t51.71878-15/756700225_16539857623317…",
            "width": 1080
          },
          "id": "None",
          "upload_id": null
        },
        "created_at": 1719606671,
        "highlight_pog_unseen": null,
        "highlight_reel_type": "DEFAULT",
        "id": "highlight:18223279177302854",
        "is_archived": false,
        "is_converted_to_clips": false
      }
    ]
  },
  "pagination_token": null
}

Response fields

FieldMeaning
data.countNumber of highlights returned for the account.
data.items[].idHighlight ID in the form highlight:<number>.
data.items[].titleName of the highlight as shown under the profile.
data.items[].media_countNumber of stories inside the highlight.
data.items[].cover_media.cropped_image_version.url / data.items[].cover_media.full_image_version.urlCover image URLs. The cropped version is 150 by 150 pixels and the full version is 1080 by 1080 pixels.
data.items[].created_at / data.items[].updated_timestamp / data.items[].latest_reel_mediaUnix timestamps in seconds. They mark when the highlight was created, when it was last updated, and its latest story media.
data.items[].is_pinned_highlightWhether the highlight is pinned on the profile.
data.items[].user.id / data.items[].user.full_nameID and display name of the account that owns the highlight.
data.items[].user.is_verified / data.items[].user.is_privateWhether the owner account is verified and whether it is private.

Notes

  • Pass username or user_id. The request needs at least one of them.
  • The response has a pagination_token field, and it is null in this example.
  • Highlight IDs look like highlight:18223279177302854. Use them with Instagram Highlight Stories to get the stories inside a highlight.
  • To find a user_id from a name, call Instagram User Profile.

Pricing

$0.002 per successful call. Failed calls are not charged. It is included in the daily free quota of each organization.

Explorar más

APIs relacionadas

Todas las APIs
APIPrecioRespuesta
Instagram$0.002 por llamadaJSON
Instagram$0.002 por llamadaJSON
Instagram$0.002 por llamadaJSON
Instagram$0.002 por llamadaJSON
Instagram$0.002 por llamadaJSON
Instagram$0.002 por llamadaJSON

Guías:Instagram API cost: official limits and per-call pricesBest Instagram API in 2026: Pricing Compared

Preguntas

FAQ

¿Cómo uso la API de Instagram User Highlights (V2)?

Envía una solicitud POST a https://api.sandbase.ai/v1/api/instagram/v2/user-highlights con tu clave API de SandBase en el encabezado Authorization (Bearer) y los parámetros como un cuerpo JSON. También puedes probarlo en el Playground de esta página sin escribir código.

¿Cuánto cuesta la API de Instagram User Highlights (V2)?

$0.002 por llamada, facturado desde tu saldo de SandBase. Solo se te cobra por las llamadas que haces; no hay suscripción.

¿Qué parámetros acepta la API de Instagram User Highlights (V2)?

No se requieren parámetros. Opcionales: user_id (string) y username (string). La tabla de Parámetros y el Playground de esta página enumeran todos los campos.

¿Qué devuelve la API de Instagram User Highlights (V2)?

Una respuesta JSON devuelta en la misma solicitud HTTP (sincrónica). El README de esta página incluye una respuesta de ejemplo.

¿Necesito una cuenta de desarrollador o una clave API de Instagram?

No. Instagram User Highlights (V2) funciona a través de SandBase, así que una sola clave API de SandBase cubre este endpoint y todas las demás APIs y modelos del catálogo. No necesitas solicitar acceso a la API de Instagram por separado.