Sand AISand AI MAGI-2MAGI-2 è ora su SandBase: video in 1080p con audio nativoProvalo ora

Instagram Post Details by URL

Documentazione API
https://api.sandbase.ai/v1/api/instagram/v1/post-by-url

Returns details and display resources for a single Instagram post. Queries the platform using a target post link.

Prezzo
$0.001USD / chiamata
Metodo
POST
Risposta
JSON
Parametri
1 obbligatori · 0 opzionali
100 chiamate gratuite / giornoPrime 100 chiamate al giorno gratuite (condivise per organizzazione) · Si azzera alle 00:00 UTC. Dopo, pagamento per chiamata.

Playground

Input
Post URL
OutputPronto

Il tuo output apparirà qui

Completa gli input, poi fai clic su Esegui.

README API

Instagram Post Details by URL API

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.

Use cases

  • Download the image of a post at several sizes from the display_resources list.
  • Read the like count and caption of a known post to track a celebrity or brand announcement.
  • Check whether a post is an ad or paid partnership before you report on it.
  • Identify the account that published a post from its link, including the verified status.

Request

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.

Parameters

NameTypeRequiredDescription
post_urlstringYesPost URL

Example response

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": []
  }
}

Response fields

FieldMeaning
shortcode / idThe short code from the post URL and the numeric post ID.
__typename / is_videoThe post type (here GraphImage) and whether the post is a video.
taken_at_timestampWhen the post was published, as a Unix timestamp in seconds.
edge_media_to_caption.edges[].node.textThe caption text of the post.
edge_media_to_caption.edges[].node.created_atWhen the caption was written, as a Unix timestamp string.
edge_media_preview_like.countThe number of likes on the post.
edge_media_to_parent_comment.countThe number of top-level comments returned for the post.
display_urlThe main image link for the post.
display_resources[].srcImage link for one size of the post image. Pair it with config_width / config_height.
owner.username / owner.full_name / owner.id / owner.is_verifiedThe username, display name and numeric ID of the account that posted, and whether it is verified.
is_ad / is_paid_partnership / comments_disabledFlags that show whether the post is an ad, a paid partnership, or has comments turned off.

Notes

  • Pass the full post link, such as https://www.instagram.com/p/DPwhVB-jo9k/. The shortcode in the response matches the code in the link.
  • In this response the 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.
  • Use Instagram Post Comment List to read the comments, since the comment list in this response is empty.

Pricing

$0.001 per successful call. Failed calls are not charged. It is included in the daily free quota of each organization.

Esplora altro

API correlate

Tutte le API
APIPrezzoRisposta
Instagram$0.001 per chiamataJSON
Instagram$0.001 per chiamataJSON
Instagram$0.001 per chiamataJSON
Instagram$0.001 per chiamataJSON
Instagram$0.001 per chiamataJSON
Instagram$0.001 per chiamataJSON

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

Domande

FAQ

Come uso l'API Instagram Post Details by URL?

Invia una richiesta POST a https://api.sandbase.ai/v1/api/instagram/v1/post-by-url 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.

Quanto costa l'API Instagram Post Details by URL?

$0.001 per chiamata. Ogni organizzazione riceve 100 chiamate gratuite al giorno UTC, condivise tra le API SandBase idonee, inclusa questa; dopo, ogni chiamata viene addebitata a questo prezzo dal tuo saldo SandBase. Non c'è alcun abbonamento.

Quali parametri accetta l'API Instagram Post Details by URL?

Richiesti: post_url (string). La tabella dei parametri e il Playground di questa pagina elencano tutti i campi.

Cosa restituisce l'API Instagram Post Details by URL?

Una risposta JSON restituita nella stessa richiesta HTTP (sincrona). Il README di questa pagina include una risposta di esempio.

Mi serve un account sviluppatore o una chiave API Instagram?

No. Instagram Post Details by URL 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.