post_urlstringobligatoire
Post URL
https://api.sandbase.ai/v1/api/instagram/v1/post-by-urlReturns details and display resources for a single Instagram post. Queries the platform using a target post link.
Votre sortie apparaîtra ici
Complétez les entrées, puis cliquez sur Exécuter.
Returns details for a single Instagram post, including the owner, caption, like count, image sizes and posting time. It needs the full post link in post_url.
display_resources list.curl -X POST "https://api.sandbase.ai/v1/api/instagram/v1/post-by-url" \
-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.
{
"__typename": "GraphImage",
"accessibility_caption": null,
"attempts": "0",
"can_see_insights_as_brand": false,
"caption_is_edited": false,
"coauthor_producers": [],
"commenting_disabled_for_viewer": true,
"comments_disabled": false,
"dimensions": {
"height": 1080,
"width": 1080
},
"display_resources": [
{
"config_height": 640,
"config_width": 480,
"src": "https://instagram.fbcn8-1.fna.fbcdn.net/v/t39.30808-6/735018292_1867233894105495…"
}
],
"display_url": "https://instagram.fbcn8-1.fna.fbcdn.net/v/t51.82787-15/562815025_186013987930549…",
"edge_media_preview_comment": {
"count": 0,
"edges": []
}
}
| Field | Meaning |
|---|---|
shortcode / id | The short code from the post URL and the numeric post ID. |
__typename / is_video | The post type (here GraphImage) and whether the post is a video. |
taken_at_timestamp | When the post was published, as a Unix timestamp in seconds. |
edge_media_to_caption.edges[].node.text | The caption text of the post. |
edge_media_to_caption.edges[].node.created_at | When the caption was written, as a Unix timestamp string. |
edge_media_preview_like.count | The number of likes on the post. |
edge_media_to_parent_comment.count | The number of top-level comments returned for the post. |
display_url | The main image link for the post. |
display_resources[].src | Image link for one size of the post image. Pair it with config_width / config_height. |
owner.username / owner.full_name / owner.id / owner.is_verified | The username, display name and numeric ID of the account that posted, and whether it is verified. |
is_ad / is_paid_partnership / comments_disabled | Flags that show whether the post is an ad, a paid partnership, or has comments turned off. |
https://www.instagram.com/p/DPwhVB-jo9k/. The shortcode in the response matches the code in the link.owner.edge_followed_by.count and owner.edge_owner_to_timeline_media.count values are 0. Call Instagram User Info by Username for the profile details of owner.username.$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" \
-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 URLCette 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 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. 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.
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 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.