Threads account search API
Threads accounts whose username or name matches a query.
GET /v1/threads/search/usersBeta1 credit per callRefunded on failureimport os, requests
res = requests.get(
"https://api.groundsocial.dev/v1/threads/search/users?q=coffee",
headers={"Authorization": f"Bearer {os.environ['GROUNDSOCIAL_API_KEY']}"},
)
res.raise_for_status()
data = res.json()Response
200 · 1 credit{ "users": [ { "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, "biography": "Mostly superintelligence and MMA takes" }, { "pk": "23060834392", "username": "zuckkhotaa", "full_name": "Leenu", "profile_pic_url": "https://scontent-lax3-1.cdninstagram.com/v/t51.82787-19/924568130_18135345838770393_7085172483261371733_n.jpg?stp=dst-jp…", "is_verified": false, "biography": "For you a thousand times over" }, "… 2 more" ]}Parameters
| Name | Type | Description |
|---|---|---|
qquery · required | string | Search text. Example: coffee. |
Response fields
200 with a ThreadsUsers, in the shape of Threads’ own post and user objects.
| Field | Type | Description |
|---|---|---|
users | object[] |
Status codes
| Status | Meaning |
|---|---|
200 | Matching accounts. |
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.