post_idstring
Post short code (optional), for example: DPVUglOjOUu, can be extracted from post URL, e.g., DPVUglOjOUu in https://www.threads.com/@taylorswift/post/DPVUglOjOUu
https://api.sandbase.ai/v1/api/threads/web/post-detail-v2Returns detailed information for a specific Threads post. Queries can be performed using either a full post link or a post short code as input.
เอาต์พุตของคุณจะแสดงที่นี่
กรอกอินพุตให้ครบ แล้วคลิก Run
Returns the details of one Threads post, including its caption, media, engagement counts, author, and a list of replies. It needs either a full post link in url or the post short code in post_id.
curl -X POST "https://api.sandbase.ai/v1/api/threads/web/post-detail-v2" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{"post_id": "DPVUglOjOUu", "url": "https://www.threads.com/@taylorswift/post/DPVUglOjOUu"}'
The result is returned in outputs[0].data.
| Name | Type | Required | Description |
|---|---|---|---|
post_id | string | No | Post short code (optional), for example: DPVUglOjOUu, can be extracted from post URL, e.g., DPVUglOjOUu in https://www.threads.com/@taylorswift/post/DPVUglOjOUu |
url | string | No | Full post URL (optional), for example: https://www.threads.com/@taylorswift/post/DPVUglOjOUu |
Real response for the request above, trimmed: lists keep their first item and long strings are cut.
{
"author_thread": [],
"parent_thread": [],
"pinned_replies": [],
"post": {
"accessibility_caption": null,
"can_inline_expand_below": false,
"caption": "I can’t tell you how proud I am to share this with you, an album that just feels…",
"caption_is_edited": false,
"carousel_media": [
{
"accessibility_caption": null,
"id": "3734981661403426835_66109110437",
"image_versions2": {
"candidates": [
{
"height": 1440,
"url": "https://scontent-ord5-2.cdninstagram.com/v/t51.82787-15/558969126_17913678132206…",
"width": 2159
}
]
},
"media_type": 1,
"original_height": 1440,
"original_width": 2159,
"pk": "3734981661403426835",
"video_versions": []
}
],
"code": "DPVUglOjOUu",
"direct_reply_count": 10079,
"image_versions2": {
"candidates": [
{
"height": 1440,
"url": "https://scontent-ord5-2.cdninstagram.com/v/t51.82787-15/558969126_17913678132206…",
"width": 2159
}
]
},
"is_pinned_to_profile": false,
"is_post_unavailable": false,
"is_reply": false,
"like_count": 139993
},
"raw_json_size": 611771,
"replies": [
{
"accessibility_caption": null,
"can_inline_expand_below": false,
"caption": "I LOVE YOU SO MUCH TAYLOR!!! THIS ALBUM ASWELL AS ALL YOUR OTHER ALBUMS IS AMAZI…",
"caption_is_edited": false,
"carousel_media": [],
"code": "DPXoFfxjQUQ",
"direct_reply_count": 0,
"image_versions2": {
"candidates": []
},
"is_pinned_to_profile": false,
"is_post_unavailable": false,
"is_reply": true,
"like_count": 1
}
],
"success": true
}
| Field | Meaning |
|---|---|
post.caption | The text of the post. post.caption_is_edited shows whether the author edited it. |
post.code / post.post_id | code is the short code used in the post link. post_id is the long numeric ID of the same post. |
post.like_count / post.direct_reply_count / post.quote_count / post.repost_count / post.reshare_count | Engagement counts for the post: likes, direct replies, quotes, reposts, and reshares. |
post.taken_at | Time the post was published, as a Unix timestamp in seconds. |
post.user.username / post.user.full_name / post.user.is_verified | The author's handle, display name, and verification flag. |
post.carousel_media[].image_versions2.candidates[] | Image files for each carousel item. Each entry has url, width, and height, with several sizes per image. |
post.media_type | A numeric code for the post format. This post has 8 and a carousel_media list with 3 images. |
replies[] | Replies to the post. Each item uses the same structure as post, with its own caption, like_count, code, and user. |
replies[].is_reply | Is true for items in the reply list. |
author_thread[] / parent_thread[] / pinned_replies[] | Related thread lists. They are empty in this response. |
post_id or url. The short code is the last part of a post link, for example DPVUglOjOUu in https://www.threads.com/@taylorswift/post/DPVUglOjOUu.post.post_id differs from the short post.code. To look up a post by its numeric ID, use Threads Post Detail.$0.002 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/threads/web/post-detail-v2" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"url": "https://www.threads.com/@taylorswift/post/DPVUglOjOUu",
"post_id": "DPVUglOjOUu"
}'ตั้งค่า SandBase API key ของคุณในสภาพแวดล้อมฝั่งเซิร์ฟเวอร์ คำขอจะใช้การยืนยันตัวตนแบบ Bearer
export SANDBASE_API_KEY="YOUR_API_KEY"เก็บ key ไว้บนเซิร์ฟเวอร์ อย่าเปิดเผยในโค้ดฝั่งเบราว์เซอร์
post_idstringPost short code (optional), for example: DPVUglOjOUu, can be extracted from post URL, e.g., DPVUglOjOUu in https://www.threads.com/@taylorswift/post/DPVUglOjOUu
urlstringFull post URL (optional), for example: https://www.threads.com/@taylorswift/post/DPVUglOjOUu
บันทึกตัวอย่างการตอบกลับสำหรับ API นี้; จะไม่มีการส่งคำขอจริงเมื่อเปิดดู
ยังไม่มีการเผยแพร่การตอบกลับที่บันทึกไว้ ให้รัน API ใน Playground เพื่อดูการตอบกลับ
สำรวจเพิ่มเติม
| API | ราคา | การตอบกลับ |
|---|---|---|
Threads Post Detail (V2)API นี้ Threads | $0.002 ต่อการเรียก | JSON |
Threads | $0.002 ต่อการเรียก | JSON |
Threads | $0.003 ต่อการเรียก | JSON |
Threads | $0.002 ต่อการเรียก | JSON |
Threads | $0.002 ต่อการเรียก | JSON |
Threads | $0.002 ต่อการเรียก | JSON |
คำถาม
ส่งคำขอ POST ไปที่ https://api.sandbase.ai/v1/api/threads/web/post-detail-v2 โดยใส่ SandBase API key ของคุณใน Authorization header (Bearer) และส่งพารามิเตอร์เป็น JSON body คุณยังสามารถลองใช้ได้ใน Playground บนหน้านี้โดยไม่ต้องเขียนโค้ด
$0.002 ต่อครั้ง คิดจากยอดคงเหลือ SandBase ของคุณ คุณจะถูกเรียกเก็บเฉพาะคำขอที่คุณส่งเท่านั้น ไม่มีค่าสมาชิกรายเดือน
ไม่ต้องระบุพารามิเตอร์ ตัวเลือก: post_id (string) และ url (string). ตาราง Parameters และ Playground ในหน้านี้แสดงทุกฟิลด์
การตอบกลับ JSON ที่ส่งกลับในคำขอ HTTP เดียวกัน (แบบซิงโครนัส) README บนหน้านี้มีตัวอย่างการตอบกลับ
ไม่จำเป็น Threads Post Detail (V2) ทำงานผ่าน SandBase ดังนั้น SandBase API key เดียวครอบคลุม endpoint นี้และทุก API กับโมเดลอื่นในแค็ตตาล็อก คุณไม่ต้องสมัครขอสิทธิ์เข้าถึง Threads API แยกต่างหาก