pagination_tokenstring
Pagination token from previous response
https://api.sandbase.ai/v1/api/instagram/v2/user-tagged-postsReturns posts where a specified Instagram account has been tagged by other users. Supports looking up accounts by identifier or username, with pagination handling.
Votre sortie apparaîtra ici
Complétez les entrées, puis cliquez sur Exécuter.
Returns a page of Instagram posts where a given account is tagged. You pass either a username or a user_id. The response includes post details, a total count, and a pagination_token for the next page.
comment_count to spot the ones that drew the most discussion.caption.hashtags from tagged posts to see which hashtags people use with a brand.curl -X POST "https://api.sandbase.ai/v1/api/instagram/v2/user-tagged-posts" \
-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.
| Name | Type | Required | Description |
|---|---|---|---|
pagination_token | string | No | Pagination token from previous response |
user_id | string | No | User ID (either username or user_id required) |
username | string | No | Username (either username or user_id required) |
Real response for the request above, trimmed: lists keep their first item and long strings are cut.
{
"data": {
"count": 21,
"items": [
{
"boost_unavailable_identifier": null,
"boost_unavailable_reason": null,
"boost_unavailable_reason_v2": null,
"can_reshare": true,
"can_save": true,
"can_viewer_add_media_to_grid": false,
"caption": {
"content_type": "comment",
"created_at": 1582576667,
"created_at_utc": 1582576667,
"did_report_as_spam": false,
"has_translation": true,
"hashtags": [],
"id": "2251138696266127152",
"is_covered": false
},
"caption_is_edited": false,
"coauthor_producer_can_see_organic_insights": false,
"coauthor_producers": [],
"code": "B89prebFBcw",
"collaborator_edit_eligibility": false
}
],
"total": 130
},
"pagination_token": "Ck1JBBkp…"
}
| Field | Meaning |
|---|---|
data.total | Total number of tagged posts reported for the account. |
data.count | Number of posts returned in this page. |
data.items[].id | Numeric ID of the post. |
data.items[].code | Short code of the post. It is the same kind of value used in Instagram post URLs. |
data.items[].caption.created_at | Unix timestamp for when the caption was created. created_at_utc holds the same value in the sample. |
data.items[].caption.hashtags | List of hashtags in the caption, with the # sign. |
data.items[].comment_count | Number of comments on the post. |
data.items[].image_versions.items[].url / width / height | URL and pixel size of each image version of the post. |
data.items[].can_reshare / can_save | Flags for whether the post can be reshared or saved. |
pagination_token | Token to send in the next request to get the next page. |
username or user_id. The example request sends both.pagination_token with the same account value.caption.$0.002 per successful call. Failed calls are not charged. It is included in the daily free quota of each organization.
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/v2/user-tagged-posts" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"user_id": "18527",
"username": "instagram"
}'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.
pagination_tokenstringPagination token from previous response
user_idstringUser ID (either username or user_id required)
usernamestringUsername (either username or user_id required)
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 User Tagged Posts (V2)Cette API Instagram | $0.002 par appel | JSON |
Instagram | $0.002 par appel | JSON |
Instagram | $0.002 par appel | JSON |
Instagram | $0.002 par appel | JSON |
Instagram | $0.002 par appel | JSON |
Instagram | $0.002 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/v2/user-tagged-posts 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.
$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.
Aucun paramètre n’est requis. Facultatif : pagination_token (string), user_id (string) et username (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 User Tagged Posts (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.