Appearance
Search Users
GET /v1/threads/search/users
Searches for Threads users by username, returning matching profiles with username, full_name, profile_pic_url, is_verified, and pk. Useful for finding user accounts before fetching their profile or posts.
Authentication
All requests require the x-api-key header. Get your key at scrapecreators.com.
Query Parameters
| Name | Type | Required | Description | Example |
|---|---|---|---|---|
query | string | yes | Username to search for | shams |
Example Request
curl
bash
curl 'https://api.scrapecreators.com/v1/threads/search/users?query=shams' \
-H 'x-api-key: $SCRAPECREATORS_API_KEY'Node / TypeScript
js
const params = new URLSearchParams({ query: 'shams' });
const res = await fetch(`https://api.scrapecreators.com/v1/threads/search/users?${params}`, {
headers: { 'x-api-key': process.env.SCRAPECREATORS_API_KEY }
});
const data = await res.json();
console.log(data);Python
python
import os, requests
r = requests.get(
'https://api.scrapecreators.com/v1/threads/search/users',
headers={'x-api-key': os.environ['SCRAPECREATORS_API_KEY']},
params={'query': 'shams'},
)
r.raise_for_status()
print(r.json())CLI
bash
scrapecreators threads search-users --helpExample Response
json
{
"success": true,
"users": [
{
"username": "shams",
"pk": "5951152863",
"is_active_on_text_post_app": true,
"full_name": "Shams Charania",
"profile_pic_url": "https://instagram.flas1-2.fna.fbcdn.net/v/t51.2885-19/482795192_3376548399146227_6340123271493467395_n.jpg?stp=dst-jpg_s150x150_tt6&_nc_ht=instagram.flas1-2.fna.fbcdn.net&_nc_cat=1&_nc_oc=Q6cZ2QGGqXP9vnbg6p9G1kF4lrIwvuvWx0OeJ6C8nPcAyo-_4m8XC-91nKJBOJb8u0utyuiAJMdjpjH1-dv5DBfEeQFp&_nc_ohc=SCH32yXVc04Q7kNvwEaKg6u&_nc_gid=7vwZl0t6h0jZxQ23lXCMVw&edm=AHhEZX8BAAAA&ccb=7-5&oh=00_AfEIzDlsXrO-ShRXs19ZmpyYb_9IbJC9dWAUyvar-NvZ_A&oe=681B5320&_nc_sid=e8efdc",
"is_verified": true,
"has_onboarded_to_text_post_app": true,
"id": "5951152863"
}
]
}Credits
Most ScrapeCreators endpoints consume 1 credit per successful response. Some heavier endpoints (transcripts, AI-driven enrichment, ad detail lookups) may cost more. Check GET /v1/credit-balance for your remaining balance.
Errors
| Status | Meaning | Action |
|---|---|---|
| 200 | Success. | Use the JSON payload. |
| 400 | Invalid or missing parameter. | Verify required parameters and value format. |
| 401 | Missing or invalid x-api-key. | Pass a valid API key in the header. |
| 402 | Out of credits. | Top up at scrapecreators.com or wait for plan reset. |
| 404 | Resource not found or private. | Confirm the handle, URL, or id and that the resource is public. |
| 429 | Rate limited. | Backoff and retry with exponential delay. |
| 500 | Server error or upstream platform failure. | Retry with backoff; report persistent errors to support. |