Threads post API
One post by URL or shortcode, with counts, media, the quoted post and the author’s thread.
GET /v1/threads/posts/{shortcode}Beta1 credit per callRefunded on failureimport os, requests
res = requests.get(
"https://api.groundsocial.dev/v1/threads/posts/DZpPDXbCeTt",
headers={"Authorization": f"Bearer {os.environ['GROUNDSOCIAL_API_KEY']}"},
)
res.raise_for_status()
data = res.json()Response
200 · 1 credit{ "post": { "pk": "3920731152608519405", "id": "3920731152608519405_63055343223", "code": "DZpPDXbCeTt", "url": "https://www.threads.com/@zuck/post/DZpPDXbCeTt", "taken_at": 1781607596, "text": "500M monthly actives on Threads in less than 3 years. Thanks for making this platform what it is. 🙏", "media_type": 19, "user": { "pk": "63055343223", "username": "zuck", "full_name": "Mark Zuckerberg", "profile_pic_url": "https://scontent-lax7-1.cdninstagram.com/v/t51.82787-19/825322135_17989325280103224_1252773933700107438_n.jpg?stp=dst-jp…", "is_verified": true }, "like_count": 18059, "reply_count": 4682, "repost_count": 581, "quote_count": 248, "reshare_count": 503, "is_reply": false, "reply_to_post_id": null, "reply_to_username": null, "language": "en" }, "thread": []}Parameters
| Name | Type | Description |
|---|---|---|
shortcodepath · required | string | A post shortcode, or its URL (threads.com or threads.net /@user/post/<code>). Example: DZpPDXbCeTt. |
Response fields
200 with a ThreadsPostResponse, in the shape of Threads’ own post and user objects.
| Field | Type | Description |
|---|---|---|
post | ThreadsPost | |
thread | ThreadsPost[] | The author’s own follow-ups in the same thread, in order. |
Status codes
| Status | Meaning |
|---|---|
200 | The post and its thread. |
400 | Invalid input. Nothing was charged. |
401 | Missing or invalid API key. |
402 | Not enough credits, a spend cap was reached, or payment is required. |
403 | The target is private, or the account is suspended. |
404 | The account or post does not exist, or was removed. |
429 | Too many requests. Wait for Retry-After seconds. |
503 | Threads is temporarily unavailable. Retryable; nothing was charged. |
Every error has code, message, hint and retryable. All error codes
Threads is a trademark of Instagram, LLC (Meta Platforms, Inc.). We are not affiliated with or endorsed by Threads, Instagram or Meta.