Sand AISand AI MAGI-2MAGI-2 agora está na SandBase: vídeo em 1080p com áudio nativoExperimente agora

Instagram Post Details by URL

Docs da 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.

Preço
$0.001USD / chamada
Método
POST
Resposta
JSON
Parâmetros
1 obrigatórios · 0 opcionais
100 chamadas grátis / diaAs primeiras 100 chamadas por dia são grátis (compartilhadas por organização) · Reinicia às 00:00 UTC. Depois, pagamento por chamada.

Playground

Entrada
Post URL
SaídaPronto

Sua saída aparecerá aqui

Preencha as entradas e clique em Executar.

README da 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.

Explorar mais

APIs relacionadas

Todas as APIs
APIPreçoResposta
Instagram$0.001 por chamadaJSON
Instagram$0.001 por chamadaJSON
Instagram$0.001 por chamadaJSON
Instagram$0.001 por chamadaJSON
Instagram$0.001 por chamadaJSON
Instagram$0.001 por chamadaJSON

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

Perguntas

FAQ

Como eu uso a API Instagram Post Details by URL?

Envie uma solicitação POST para https://api.sandbase.ai/v1/api/instagram/v1/post-by-url com sua chave de API da SandBase no cabeçalho Authorization (Bearer) e os parâmetros no corpo JSON. Você também pode testar no Playground desta página sem escrever código.

Quanto custa a API Instagram Post Details by URL?

$0.001 por chamada. Cada organização recebe 100 chamadas grátis por dia UTC, compartilhadas entre as APIs elegíveis da SandBase, incluindo esta; depois disso, cada chamada é cobrada nesse valor do seu saldo SandBase. Não há assinatura.

Quais parâmetros a API Instagram Post Details by URL aceita?

Obrigatórios: post_url (string). A tabela de Parâmetros e o Playground nesta página listam todos os campos.

O que a API Instagram Post Details by URL retorna?

Uma resposta JSON retornada na mesma solicitação HTTP (síncrona). O README desta página inclui um exemplo de resposta.

Preciso de uma conta de desenvolvedor Instagram ou de uma chave de API?

Não. Instagram Post Details by URL funciona via SandBase, então uma única chave de API da SandBase cobre este endpoint e todas as outras APIs e modelos do catálogo. Você não precisa solicitar acesso à API do Instagram separadamente.