post_urlstringobligatoire
Post URL
https://api.sandbase.ai/v1/api/instagram/v1/post-by-url-v2Returns post details and media links for a specific Instagram post URL. Designed for faster responses when handling high-volume post lookups.
Votre sortie apparaîtra ici
Complétez les entrées, puis cliquez sur Exécuter.
Returns details for one Instagram post: the caption, like and comment counts, the author, the post time, and direct links to the media files. It needs the full post URL in post_url.
data.medias[].curl -X POST "https://api.sandbase.ai/v1/api/instagram/v1/post-by-url-v2" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{"post_url": "https://www.instagram.com/p/DPwhVB-jo9k/"}'
The result is returned in outputs[0].data.
| Name | Type | Required | Description |
|---|---|---|---|
post_url | string | Yes | Post URL |
Real response for the request above, trimmed: lists keep their first item and long strings are cut.
{
"attempts": "0",
"data": {
"caption": "I’ll never forget how excited I was in 2006 when my first album sold 40,000 copi…",
"comment_count": 0,
"full_name": "Taylor Swift",
"like_count": 3861627,
"medias": [
{
"link": "https://instagram.fvcp2-1.fna.fbcdn.net/v/t51.82787-15/562815025_186013987930549…",
"type": "image"
}
],
"taken_at_timestamp": 1760377223,
"username": "taylorswift"
},
"status": true
}
| Field | Meaning |
|---|---|
data.caption | Caption text of the post. Long captions may appear shortened. |
data.username / data.full_name | Account handle and display name of the post author. |
data.like_count / data.comment_count | Number of likes and number of comments on the post. |
data.taken_at_timestamp | Time the post was taken, as a Unix timestamp in seconds. |
data.medias[].link | Direct URL of a media file in the post. |
data.medias[].type | Kind of media for that item, for example image. |
status | true when the lookup succeeded. |
attempts | Attempt counter returned as a string, 0 in this response. |
https://www.instagram.com/p/DPwhVB-jo9k/, as post_url.data.medias is a list, so a post with several items can return several links.$0.001 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/v1/post-by-url-v2" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"post_url": "https://www.instagram.com/p/DPwhVB-jo9k/"
}'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.
post_urlstringobligatoirePost URL
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 Post Details by URL (V2)Cette API Instagram | $0.001 par appel | JSON |
Instagram | $0.001 par appel | JSON |
Instagram | $0.001 par appel | JSON |
Instagram | $0.001 par appel | JSON |
Instagram | $0.001 par appel | JSON |
Instagram | $0.001 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/v1/post-by-url-v2 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.001 par appel, facturé depuis votre solde SandBase. Vous ne payez que les appels que vous effectuez ; aucun abonnement.
Obligatoire : post_url (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 Post Details by URL (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.