Sand AISand AI MAGI-2MAGI-2 est maintenant sur SandBase : vidéo 1080p avec audio natifEssayer maintenant

Instagram User Stories (V2)

Docs 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.

Prix
$0.002USD / appel
Méthode
POST
Réponse
JSON
Paramètres
0 obligatoires · 2 facultatifs
100 appels gratuits / jourLes 100 premiers appels par jour sont gratuits (partagés par organisation) · Réinitialisation à 00:00 UTC. Ensuite, paiement à l'appel.

Bac à sable

Entrée
User ID (either username or user_id required)
Username (either username or user_id required)
SortiePrêt

Votre sortie apparaîtra ici

Complétez les entrées, puis cliquez sur Exécuter.

README de l'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.

Explorer plus

APIs associées

Toutes les APIs
APIPrixRéponse
Instagram$0.002 par appelJSON
Instagram$0.002 par appelJSON
Instagram$0.002 par appelJSON
Instagram$0.002 par appelJSON
Instagram$0.002 par appelJSON
Instagram$0.002 par appelJSON

Guides :Instagram API cost: official limits and per-call pricesBest Instagram API in 2026: Pricing Compared

Questions

FAQ

Comment utiliser l’API Instagram User Stories (V2) ?

Envoyez une requête POST à https://api.sandbase.ai/v1/api/instagram/v2/user-stories 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.

Combien coûte l’API Instagram User Stories (V2) ?

$0.002 par appel. Chaque organisation bénéficie de 100 appels gratuits par jour UTC, partagés entre les API SandBase éligibles, y compris celle-ci ; au-delà, chaque appel est facturé à ce tarif depuis votre solde SandBase. Aucun abonnement.

Quels paramètres l’API Instagram User Stories (V2) accepte-t-elle ?

Aucun paramètre n’est requis. Facultatif : user_id (string) et username (string). Le tableau des paramètres et le Playground sur cette page listent tous les champs.

Que renvoie l’API Instagram User Stories (V2) ?

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.

Ai-je besoin d’un compte développeur ou d’une clé API Instagram ?

Non. Instagram User Stories (V2) 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.