post_urlstringobbligatorio
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.
Il tuo output apparirà qui
Completa gli input, poi fai clic su Esegui.
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.
Inizia a costruire
Endpoint API della piattaforma con autenticazione unificata e tracciamento dell'utilizzo.
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/"
}'Imposta la tua SandBase API key nell'ambiente del server. Le richieste usano l'autenticazione Bearer.
export SANDBASE_API_KEY="YOUR_API_KEY"Conserva la tua key sul server. Non esporla nel codice del browser.
post_urlstringobbligatorioPost URL
Risposta di esempio salvata per questa API; durante la visualizzazione non viene eseguita alcuna richiesta live.
Nessuna risposta salvata è stata pubblicata. Esegui l'API in Playground per ispezionarne la risposta.
Esplora altro
| API | Prezzo | Risposta |
|---|---|---|
Instagram Post Details by URL (V2)Questa API Instagram | $0.001 per chiamata | JSON |
Instagram | $0.001 per chiamata | JSON |
Instagram | $0.001 per chiamata | JSON |
Instagram | $0.001 per chiamata | JSON |
Instagram | $0.001 per chiamata | JSON |
Instagram | $0.001 per chiamata | JSON |
Guide:Instagram API cost: official limits and per-call pricesBest Instagram API in 2026: Pricing Compared
Domande
Invia una richiesta POST a https://api.sandbase.ai/v1/api/instagram/v1/post-by-url-v2 con la tua chiave API di SandBase nell'header Authorization (Bearer) e i parametri nel body JSON. Puoi anche provarla nel Playground di questa pagina senza scrivere codice.
$0.001 per chiamata, addebitato dal tuo saldo SandBase. Paghi solo le chiamate che effettui; non c'è alcun abbonamento.
Richiesti: post_url (string). La tabella dei parametri e il Playground di questa pagina elencano tutti i campi.
Una risposta JSON restituita nella stessa richiesta HTTP (sincrona). Il README di questa pagina include una risposta di esempio.
No. Instagram Post Details by URL (V2) funziona tramite SandBase, quindi una sola chiave API SandBase copre questo endpoint e tutte le altre API e modelli del catalogo. Non è necessario richiedere separatamente l'accesso alle API Instagram.