API DocsthreadsContentGet post detail V2(supports URL)
Get post detail V2(supports URL)
What this API is for
- Get Threads post detail (supports short code and full URL)
- Price: 0.002$ / time
GET
/openapi/api/v1/threads/web/fetch_post_detail_v2Price:Price unavailable · Actual charges depend on free quota and account discounts
Authentication
All API requests require a Bearer project token in the Authorization header
Authorization header
Authorization: Bearer YOUR_API_TOKENRequest parameters
- post_id: 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: Full post URL (optional), for example: https://www.threads.com/@taylorswift/post/DPVUglOjOUu
- Note: At least one of post_id or url must be provided
| Name | Location / type | Required | Notes | Example |
|---|---|---|---|---|
| post_id | query / string | No |
| DPVUglOjOUu |
| url | query / string | No |
| https://www.threads.com/@taylorswift/post/DPVUglOjOUu |
Request examples
curl -X GET "https://api.trmesh.com/openapi/api/v1/threads/web/fetch_post_detail_v2" \ -H "Authorization: Bearer sdc_your_project_token" \ -H "Accept: application/json"
Response fields
- Post data grouped by role:
- post: The requested post itself (a single object), including post_id / code /
- caption / user / like_count / direct_reply_count / repost_count / quote_count /
- image_versions2 / video_versions / carousel_media, etc.
- replies: Comments on the post. Note this is only a small first-screen subset,
- not the full comment list; call /fetch_post_comments for complete comments
- parent_thread: Parent post chain. Non-empty only when the requested post is itself a reply
- author_thread: The author's own thread continuation (subsequent posts by the same author)
- pinned_replies: Pinned comments
- Note: The role is determined by which group a post appears in. Do NOT use a post's own
- is_reply field to infer its role — when the requested post is itself a reply,
- its is_reply is also true
- replies / parent_thread / author_thread / pinned_replies are always arrays,
- empty when there is no data
| Field | Type | Notes | Example |
|---|---|---|---|
| post | unknown |
| |
| replies | unknown |
| |
| parent_thread | unknown |
| |
| author_thread | unknown |
| |
| pinned_replies | unknown |
| |
| Note | unknown |
|
Common response envelope
Common fields for response status, request identifiers and data
| Field | Type | Notes | Example |
|---|---|---|---|
| code | integer |
| |
| request_id | string | null |
| |
| message | string |
| |
| message_zh | string |
| |
| support | string |
| |
| time | string |
| |
| time_stamp | integer |
| |
| time_zone | string |
| |
| docs | string | null |
| |
| cache_message | string | null |
| |
| cache_message_zh | string | null |
| |
| cache_url | string | null |
| |
| router | string |
| |
| params | unknown |
| |
| data | unknown | null |
|
Errors and limits
The docs cover not only success responses, but also auth failures, rate limits, and data-service errors
| Code | Meaning | Notes |
|---|---|---|
| 200 | Success | The request completed and returned the standard response envelope. |
| 401 | Unauthorized | The token is missing, invalid, or no longer active. |
| 429 | Rate limited | The request exceeded token, user, or plan-level throughput limits. |
| 502 | Service unavailable | The gateway could not obtain a healthy result. Retry in a moment. |
Next steps
New to the API? Read the guide or explore examples