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

Instagram User Stories (V2)

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

Returns active stories posted by an Instagram user within the last 24 hours. The request accepts either an account username or a user identifier.

Precio
$0.002USD / llamada
Método
POST
Respuesta
JSON
Parámetros
0 obligatorios · 2 opcionales
100 llamadas gratis / díaLas primeras 100 llamadas de cada día son gratis (compartidas por organización) · Se restablecen a las 00:00 UTC. Después, pago por llamada.

Entorno de pruebas

Entrada
User ID (either username or user_id required)
Username (either username or user_id required)
SalidaListo

Su salida aparecerá aquí

Complete las entradas y luego haga clic en Ejecutar.

README de la API

Instagram User Stories (V2) API

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.

Use cases

  • Show the current stories of a brand account in a dashboard or feed.
  • Save story image links before the stories expire.
  • Check how many stories an account has live and when the newest one was posted.
  • Track which stories a verified account allows others to reshare.

Request

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.

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": {
    "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
      }
    ]
  }
}

Response fields

FieldMeaning
data.countNumber of stories returned in data.items.
data.items[].id / data.items[].codeStory identifiers. id is the numeric story ID and code is a short alphanumeric code for the same story.
data.items[].expiring_atUnix timestamp in seconds that shows when the story expires.
data.items[].device_timestampTimestamp from the posting device. The value is much larger than expiring_at, so it is not in seconds.
data.items[].image_versions.items[].urlLink to an image of the story.
data.items[].image_versions.items[].width / data.items[].image_versions.items[].heightPixel size of each image version, so you can pick the size you need.
data.items[].has_audiotrue when the story has audio. The field appears only on some items.
data.items[].can_reshare / data.items[].can_replyFlags that show whether the story can be reshared or replied to.
data.additional_data.latest_reel_mediaUnix timestamp in seconds of the newest story in the set.
data.additional_data.user.full_name / data.additional_data.user.is_verifiedDisplay name of the account and whether it is verified.

Notes

  • Send either 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.
  • Story links are image versions in image_versions.items. Each story lists several sizes.
  • To see saved stories that stay on a profile, call Instagram User Highlights (V2) or Instagram Highlight Stories.

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 Stories (V2)?

Envía una solicitud POST a https://api.sandbase.ai/v1/api/instagram/v2/user-stories 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 Stories (V2)?

$0.002 por llamada. Cada organización obtiene 100 llamadas gratis por día UTC, compartidas entre las APIs elegibles de SandBase, incluida esta; después, cada llamada se factura a este precio desde tu saldo de SandBase. No hay suscripción.

¿Qué parámetros acepta la API de Instagram User Stories (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 Stories (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 Stories (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.