Search Users
GET/v1/threads/search/users1 credit
Searches Threads accounts by name or username and returns matching users with their profile picture and verification status.
01Query parameters
| Name | Type | Description |
|---|---|---|
| queryrequired | string | Name or username to search for. |
02Request
curl "https://api.scrapesocial.ai/v1/threads/search/users?query=shams" \ -H "x-api-key: $SCRAPESOCIAL_KEY"
03Responses
Real answers from the API. Lists are shortened to 2 items.
GET /v1/threads/search/users?query=shams
{
"success": true,
"credits_remaining": 4980,
"credits_charged": 1,
"users": [
{
"username": "shams",
"pk": "63263616227",
"is_active_on_text_post_app": true,
"full_name": "Shams Charania",
"profile_pic_url": "https://scontent-otp1-1.cdninstagram.com/v/t51.2885-19/482795192_3376548399146227_6340123271493467395_n.jpg?stp=dst-jpg_s206x206_tt6&_nc_cat=1&ccb=7-5&_nc_sid=30ff31&efg=eyJ2ZW5jb2RlX3RhZyI6InByb2ZpbGVfcGljLnd3dy4xMDgwLkMzIn0%3D&_nc_ohc=5iV0yO5IrecQ7kNvwGZ5GV9&_nc_oc=AdrDXmVqAr_6sgzVnT0ke05gJOT97Mkr2zGmCkBHWwEfg0xDQDIc7OMWAV8b99njUk8&_nc_zt=24&_nc_ht=scontent-otp1-1.cdninstagram.com&_nc_ss=7b289&o…",
"is_verified": true,
"has_onboarded_to_text_post_app": true,
"id": "63263616227"
},
{
"username": "shamsintwilight",
"pk": "69648478429",
"is_active_on_text_post_app": true,
"full_name": "",
"profile_pic_url": "https://scontent-otp1-1.cdninstagram.com/v/t51.82787-19/848072476_17952178884326430_3806416225879391242_n.jpg?stp=dst-jpg_s206x206_tt6&_nc_cat=105&ccb=7-5&_nc_sid=30ff31&efg=eyJ2ZW5jb2RlX3RhZyI6InByb2ZpbGVfcGljLnd3dy4xMDgwLkMzIn0%3D&_nc_ohc=Kl48D8HbRQsQ7kNvwG1iSki&_nc_oc=AdruHnZDINGxdCQIsKMIGqqd46HEA71HSXDOHDaf7fabQMzh5H8ibX0GpgHkMWGeklc&_nc_zt=24&_nc_ht=scontent-otp1-1.cdninstagram.com&_nc_gid=jS…",
"is_verified": false,
"has_onboarded_to_text_post_app": true,
"id": "69648478429"
}
]
}Common to every endpoint
Any route can answer these: a missing or wrong key, no credits left, the platform not answering, or a failure on our side. None of them costs credits.
GET /v1/cosmos/profile?handle=design
{
"success": false,
"message": "Invalid API key"
}04Notes
About 8 users, in `users`. There is no paging: one call returns one batch. No matches = an empty list for 0 credits.
05Errors & credits
Every error has success: false, a real HTTP status and costs no credits.
400missing_parameter
A required parameter is missing or invalid.
403private_account
The account is private or age-restricted.
404not_found
No such account.
503upstream_error
The platform did not answer; retry shortly.