Threads replies API
The replies Threads shows under a post, top or newest first.
GET /v1/threads/posts/{shortcode}/repliesBeta1 credit per callRefunded on failureimport os, requests
res = requests.get(
"https://api.groundsocial.dev/v1/threads/posts/DZpPDXbCeTt/replies",
headers={"Authorization": f"Bearer {os.environ['GROUNDSOCIAL_API_KEY']}"},
)
res.raise_for_status()
data = res.json()Response
200 · 1 credit{ "posts": [ { "pk": "3921099103001956733", "id": "3921099103001956733_68846958679", "code": "DZqitv7iNF9", "url": "https://www.threads.com/@johnthomaswhitby/post/DZqitv7iNF9", "taken_at": 1781651460, "text": "May i ask is there a operating manual with instructions please? 🙏", "media_type": 19, "user": { "pk": "68846958679", "username": "johnthomaswhitby", "full_name": "John Thomas Whitby", "profile_pic_url": "https://scontent-lax7-1.cdninstagram.com/v/t51.75761-19/497863373_17880977388294680_599591422638706129_n.jpg?stp=dst-jpg…", "is_verified": false }, "like_count": 4, "reply_count": 0, "repost_count": 0, "quote_count": 0, "reshare_count": null, "is_reply": true, "reply_to_post_id": "3920731152608519405", "reply_to_username": "zuck", "language": "en" }, { "pk": "3923603953112809700", "id": "3923603953112809700_77525489946", "code": "DZzcQHYm4Dk", "url": "https://www.threads.com/@vivian74126/post/DZzcQHYm4Dk", "taken_at": 1781950061, "text": "Your very welcome about this platform that people appreciate 👍 Mr. Zuckerberg 💫💕 and I'm one. \n🌏✨", "media_type": 19, "user": { "pk": "77525489946", "username": "vivian74126", "full_name": "vivian", "profile_pic_url": "https://scontent-lax3-1.cdninstagram.com/v/t51.82787-19/802561807_17901323277585947_8497669154935728371_n.jpg?stp=dst-jp…", "is_verified": false }, "like_count": 3, "reply_count": 0, "repost_count": 0, "quote_count": 0, "reshare_count": null, "is_reply": true, "reply_to_post_id": "3920731152608519405", "reply_to_username": "zuck", "language": "en" }, "… 4 more" ], "next_cursor": null}Parameters
| Name | Type | Description |
|---|---|---|
shortcodepath · required | string | A post shortcode, or its URL (threads.com or threads.net /@user/post/<code>). Example: DZpPDXbCeTt. |
sortquery | "top" | "recent" | top (default, Threads’ ranking) or recent (newest first). One of top, recent. |
Response fields
200 with a ThreadsPostList, in the shape of Threads’ own post and user objects.
| Field | Type | Description |
|---|---|---|
posts | ThreadsPost[] | |
next_cursor | string | null | Pass as cursor for the next page; null on the last page. |
Status codes
| Status | Meaning |
|---|---|
200 | The replies. |
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.