Sand AISand AI MAGI-2MAGI-2 kini tersedia di SandBase: video 1080p dengan audio nativeCoba sekarang

Instagram Post Details by URL

Dokumentasi 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.

Harga
$0.001USD / panggilan
Metode
POST
Respons
JSON
Parameter
1 wajib ยท 0 opsional
100 panggilan gratis / hari100 panggilan pertama per hari gratis (dibagi per organisasi) ยท Direset pada 00:00 UTC. Setelah itu, bayar per panggilan.

Playground

Input
Post URL
OutputSiap

Output Anda akan muncul di sini

Lengkapi input, lalu klik Run.

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.

Jelajahi lebih lanjut

API Terkait

Semua APIs
APIHargaRespons
Instagram$0.001 per panggilanJSON
Instagram$0.001 per panggilanJSON
Instagram$0.001 per panggilanJSON
Instagram$0.001 per panggilanJSON
Instagram$0.001 per panggilanJSON
Instagram$0.001 per panggilanJSON

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

Pertanyaan

FAQ

Bagaimana cara menggunakan API Instagram Post Details by URL?

Kirim permintaan POST ke https://api.sandbase.ai/v1/api/instagram/v1/post-by-url dengan kunci API SandBase Anda di header Authorization (Bearer) dan parameter sebagai body JSON. Anda juga dapat mencobanya di Playground di halaman ini tanpa menulis kode.

Berapa biaya API Instagram Post Details by URL?

$0.001 per panggilan. Setiap organisasi mendapat 100 panggilan gratis per hari UTC, dibagi di seluruh API SandBase yang memenuhi syarat termasuk yang ini; setelah itu setiap panggilan ditagihkan dengan harga ini dari saldo SandBase Anda. Tidak ada langganan.

Parameter apa yang diterima API Instagram Post Details by URL?

Wajib: post_url (string). Tabel Parameters dan Playground di halaman ini mencantumkan setiap field.

Apa yang dikembalikan API Instagram Post Details by URL?

Respons JSON yang dikembalikan dalam permintaan HTTP yang sama (sinkron). README di halaman ini menyertakan contoh respons.

Apakah saya memerlukan akun developer atau kunci API Instagram?

Tidak. Instagram Post Details by URL berjalan melalui SandBase, jadi satu kunci API SandBase mencakup endpoint ini dan setiap API serta model lain di katalog. Anda tidak perlu mendaftar akses API Instagram secara terpisah.