post_urlstringจำเป็น
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.
เอาต์พุตของคุณจะแสดงที่นี่
กรอกอินพุตให้ครบ แล้วคลิก Run
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.
เริ่มสร้าง
เอ็นด์พอยต์ของ Platform API ที่มีการยืนยันตัวตนและการติดตามการใช้งานแบบรวมศูนย์
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/"
}'ตั้งค่า SandBase API key ของคุณในสภาพแวดล้อมฝั่งเซิร์ฟเวอร์ คำขอจะใช้การยืนยันตัวตนแบบ Bearer
export SANDBASE_API_KEY="YOUR_API_KEY"เก็บ key ไว้บนเซิร์ฟเวอร์ อย่าเปิดเผยในโค้ดฝั่งเบราว์เซอร์
post_urlstringจำเป็นPost URL
บันทึกตัวอย่างการตอบกลับสำหรับ API นี้; จะไม่มีการส่งคำขอจริงเมื่อเปิดดู
ยังไม่มีการเผยแพร่การตอบกลับที่บันทึกไว้ ให้รัน API ใน Playground เพื่อดูการตอบกลับ
สำรวจเพิ่มเติม
| 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
คำถาม
ส่งคำขอ POST ไปที่ https://api.sandbase.ai/v1/api/instagram/v1/post-by-url-v2 โดยใส่ SandBase API key ของคุณใน Authorization header (Bearer) และส่งพารามิเตอร์เป็น JSON body คุณยังสามารถลองใช้ได้ใน Playground บนหน้านี้โดยไม่ต้องเขียนโค้ด
$0.001 ต่อครั้ง คิดจากยอดคงเหลือ SandBase ของคุณ คุณจะถูกเรียกเก็บเฉพาะคำขอที่คุณส่งเท่านั้น ไม่มีค่าสมาชิกรายเดือน
ที่ต้องระบุ: post_url (string). ตาราง Parameters และ Playground ในหน้านี้แสดงทุกฟิลด์
การตอบกลับ JSON ที่ส่งกลับในคำขอ HTTP เดียวกัน (แบบซิงโครนัส) README บนหน้านี้มีตัวอย่างการตอบกลับ
ไม่จำเป็น Instagram Post Details by URL (V2) ทำงานผ่าน SandBase ดังนั้น SandBase API key เดียวครอบคลุม endpoint นี้และทุก API กับโมเดลอื่นในแค็ตตาล็อก คุณไม่ต้องสมัครขอสิทธิ์เข้าถึง Instagram API แยกต่างหาก