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

Instagram Stories (basic)

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

Fetch a public Instagram account's currently live stories - media URL, owner, and posting time - by username. Lightweight projection; for media type, dimensions, and the 24h expiry time use instagram.stories_full.

Precio
Desde $0.00188USD / llamada
Método
POST
Respuesta
JSON
Parámetros
1 obligatorios · 1 opcionales

Entorno de pruebas

Entrada
Instagram username/handle to fetch currently live stories for (without the @).
Optional; omit it and routing is unchanged, with the cheapest source serving. Name the output fields this request must be able to return, for example `durationSeconds`, and it is served only by a source that returns every one of them. Fields you do not name are still returned whenever the serving source has them. This can raise your price: when the cheapest source cannot return a named field, a dearer source serves, and you are quoted and charged its price. A named field can still be absent on a story that genuinely lacks it. Naming a combination that no single source returns together is refused as invalid input, with no charge.
SalidaListo

Su salida aparecerá aquí

Complete las entradas y luego haga clic en Ejecutar.

README de la API

Instagram Stories (basic) API

This API returns the currently live stories for a public Instagram account. It needs one input, the account username without the @. Each story comes with a media URL, a permalink, the owner's name and a creation timestamp.

Use cases

  • Archive an account's live stories before they disappear from Instagram.
  • Monitor a brand or team account and alert when it posts a new story.
  • Collect story media URLs for a content review or competitor tracking tool.
  • Check whether a verified account is posting video stories and how long they run.

Request

curl -X POST "https://api.sandbase.ai/v1/api/instagram/stories-thin" \
  -H "Authorization: Bearer $SANDBASE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"username": "nba"}'

The result is returned in outputs[0].data.

Parameters

NameTypeRequiredDescription
usernamestringYesInstagram username/handle to fetch currently live stories for (without the @).
requireFieldsarrayNoOptional; omit it and routing is unchanged, with the cheapest source serving. Name the output fields this request must be able to return, for example durationSeconds, and it is served only by a source that returns ever

Example response

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

{
  "data": {
    "items": [
      {
        "avatarUrl": "https://scontent-iad6-1.cdninstagram.com/v/t51.82787-19/870530727_18700682161024…",
        "createdUtc": 1793641838,
        "displayName": "NBA",
        "durationSeconds": 15,
        "id": "4021681708511308746",
        "mediaUrl": "https://scontent-iad3-1.cdninstagram.com/o1/v/t2/f2/m78/AQN3hjdE6SuRgC6FGlEF0bff…",
        "permalink": "https://www.instagram.com/reel/DfP4jTDgKvK/",
        "username": "nba",
        "verified": true
      }
    ]
  },
  "found": true
}

Response fields

FieldMeaning
foundtrue when the lookup returned a result. A lookup that finds nothing returns false.
data.items[]One entry per live story. The list holds every story the account currently has up.
data.items[].idUnique ID of the story, as a numeric string.
data.items[].mediaUrlDirect URL of the story's image or video file.
data.items[].permalinkInstagram link to the story's post page.
data.items[].createdUtcTime the story was posted, as a Unix timestamp in seconds.
data.items[].durationSecondsLength of the story in seconds. It is null on the image story in the sample, so treat null as no duration.
data.items[].username / data.items[].displayNameThe handle and display name of the account that posted the story.
data.items[].verifiedtrue when the account is verified.
data.items[].avatarUrlURL of the account's profile picture.

Notes

  • Use the handle from the account's Instagram URL as username, with no @.
  • Pass requireFields: ["durationSeconds"] to force a source that returns the duration. This can raise the price of the call.
  • For media type, dimensions and expiry time, call Instagram Stories (full).
  • The mediaUrl and avatarUrl values are long CDN links with query strings. Store the full string.

Pricing

Billed at the actual cost of each call, about $0.00188 for the request above. Failed calls are not charged.

Explorar más

APIs relacionadas

Todas las APIs
APIPrecioRespuesta
InstagramDesde $0.00188 por llamadaJSON
InstagramDesde $0.0011 por llamadaJSON
InstagramDesde $0.001 por llamadaJSON
InstagramDesde $0.0011 por llamadaJSON
InstagramDesde $0.0012 por llamadaJSON
InstagramDesde $0.0011 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 Stories (basic)?

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

Desde $0.00188 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 Stories (basic)?

Requeridos: username (string). Opcionales: requireFields (array). La tabla de Parámetros y el Playground de esta página enumeran todos los campos.

¿Qué devuelve la API de Instagram Stories (basic)?

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 Stories (basic) 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.