Sand AISand AI MAGI-2ตอนนี้ MAGI-2 อยู่บน SandBase แล้ว: วิดีโอ 1080p พร้อมเสียงในตัวลองใช้เลย

Instagram Post Details by URL

เอกสาร 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.

ราคา
$0.001USD / คำขอ
Method
POST
การตอบกลับ
JSON
พารามิเตอร์
1 จำเป็น · 0 ไม่บังคับ
100 คำขอฟรี / วันคำขอ 100 ครั้งแรกต่อวันฟรี (ใช้ร่วมกันภายในองค์กร) · รีเซ็ตเวลา 00:00 UTC จากนั้นคิดค่าบริการตามจำนวนคำขอ

Playground

อินพุต
Post URL
เอาต์พุตพร้อมใช้งาน

เอาต์พุตของคุณจะแสดงที่นี่

กรอกอินพุตให้ครบ แล้วคลิก Run

API README

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.

สำรวจเพิ่มเติม

APIs ที่เกี่ยวข้อง

APIs ทั้งหมด
APIราคาการตอบกลับ
Instagram$0.001 ต่อการเรียกJSON
Instagram$0.001 ต่อการเรียกJSON
Instagram$0.001 ต่อการเรียกJSON
Instagram$0.001 ต่อการเรียกJSON
Instagram$0.001 ต่อการเรียกJSON
Instagram$0.001 ต่อการเรียกJSON

คู่มือ:Instagram API cost: official limits and per-call pricesBest Instagram API in 2026: Pricing Compared

คำถาม

คำถามที่พบบ่อย

ฉันจะใช้ Instagram Post Details by URL API ได้อย่างไร?

ส่งคำขอ POST ไปที่ https://api.sandbase.ai/v1/api/instagram/v1/post-by-url โดยใส่ SandBase API key ของคุณใน Authorization header (Bearer) และส่งพารามิเตอร์เป็น JSON body คุณยังสามารถลองใช้ได้ใน Playground บนหน้านี้โดยไม่ต้องเขียนโค้ด

Instagram Post Details by URL API ราคาเท่าไร?

$0.001 ต่อครั้ง ทุกองค์กรจะได้รับคำขอฟรี 100 ครั้งต่อวัน UTC โดยใช้ร่วมกันใน SandBase APIs ที่เข้าเงื่อนไขรวมถึงรายการนี้ หลังจากนั้นแต่ละคำขอจะคิดค่าบริการตามราคานี้จากยอดคงเหลือ SandBase ของคุณ ไม่มีค่าสมาชิกรายเดือน

Instagram Post Details by URL API รับพารามิเตอร์อะไรบ้าง?

ที่ต้องระบุ: post_url (string). ตาราง Parameters และ Playground ในหน้านี้แสดงทุกฟิลด์

Instagram Post Details by URL API ส่งคืนอะไร?

การตอบกลับ JSON ที่ส่งกลับในคำขอ HTTP เดียวกัน (แบบซิงโครนัส) README บนหน้านี้มีตัวอย่างการตอบกลับ

ฉันจำเป็นต้องมีบัญชีนักพัฒนาหรือ API key ของ Instagram ไหม?

ไม่จำเป็น Instagram Post Details by URL ทำงานผ่าน SandBase ดังนั้น SandBase API key เดียวครอบคลุม endpoint นี้และทุก API กับโมเดลอื่นในแค็ตตาล็อก คุณไม่ต้องสมัครขอสิทธิ์เข้าถึง Instagram API แยกต่างหาก