X (Twitter) Search Users Scraper API
Searches X for user accounts matching a name, handle, or keyword. Each match includes the username, display name, bio, avatar, follower and following counts, post count, location, verification status, join date, and whether the account is private. Matching covers handle and display-name tokens with no spelling correction, so a misspelled handle surfaces lookalike and parody accounts rather than the real one; verify the returned handle before relying on it.
GET /api/v1/data/x/search-users · 1 credit per page · The same call repeated within 2 minutes may get the same answer, so data can be up to 2 minutes old.
Inputs
query(required): Name, handle, or keyword to search accounts forcursor: Leave it out for the first page. For the next page, send next_cursor from the previous answer.
What comes back
result_status(string): success, or not_available when the item does not exist, was removed or is not public.items[].author.avatar_url(string): URL to profile pictureitems[].author.bio(string): Profile biography or descriptionitems[].author.display_name(string): Display name or full nameitems[].author.ext.bio_link(string): The website set in the Threads bio.items[].author.ext.business_hours(array)items[].author.ext.cover_url(string): URL of the page banner or cover image.items[].author.ext.products(array): Null when it lists none.items[].author.followers(number): Follower or subscriber count as an integer. YouTube above 1,000 subscribers is YouTube's published three-significant-figure figure. When the integer is a published/rounded value, `author.ext.followers_approximate` is true.items[].author.following(number): Number of accounts followeditems[].author.id(string): Platform-specific user ID (always a string; platform-specific prefixes like `did:`, `spotify:artist:`, `t2_` are stripped)items[].author.joined_at(string): When the account was created, as an ISO 8601 date (YYYY-MM-DD).items[].author.location(string): ISO region code (e.g. `US`) or freeform location string when surfaceditems[].author.posts_count(number): Total number of posts / videos / tracks / episodesitems[].author.private(boolean): Whether the account is private.items[].author.url(string): Direct URL to the profile pageitems[].author.username(string): User handle or usernameitems[].author.verified(boolean): Whether the account is verifiednext_cursor(string): Send it as cursor to get the next page; null when there is none.has_more(boolean): Whether there is another page.source_data(object): Everything the platform sent for this call, as it came.
Good to know
- Each page costs 1 credit. A call that finds nothing, or fails, is free.
- Each call returns one page of about 20 rows. To get the next page, send next_cursor from the answer as cursor.
- The same call repeated within 2 minutes may get the same answer, so data can be up to 2 minutes old.
Example call
GET /api/v1/data/x/search-users?query=news24
Questions
How much does the X (Twitter) Search Users API cost?
Each page costs 1 credit. A call that finds nothing, or fails, costs nothing.
What do I send?
You must send query. Inputs go in the query string of a GET, or as JSON in a POST, along with your API key.
How do I get the next page?
Each call returns one page of about 20 rows. The answer carries next_cursor: send it back as cursor to get the page after. Each page is charged on its own, and an empty page is free.
How fresh is the data?
The same call repeated within 2 minutes may get the same answer, so data can be up to 2 minutes old.
Do I need an X (Twitter) account or developer app?
No. You call SocialHz with your SocialHz API key, and the same key works for every platform.
Can I try it before paying?
Yes. Signing up gives you 10 free credits, with no card needed.
Related X (Twitter) endpoints
- Search Hashtag: Search X posts carrying a hashtag. 1 credit a page
- Search Mentions: Search X posts that mention an account. 1 credit a page
More X (Twitter) scraper APIs
- X (Twitter) AI Search Scraper API
- X (Twitter) Community Scraper API
- X (Twitter) Community Posts Scraper API
- X (Twitter) Post Reposters Scraper API
- X (Twitter) Post Transcript Scraper API
- X (Twitter) Profile Scraper API
- X (Twitter) Profile About Scraper API
- X (Twitter) Profile Full Scraper API
- X (Twitter) Search Hashtag Scraper API
- X (Twitter) Search Mentions Scraper API
- X (Twitter) User Followers Scraper API
- X (Twitter) User Following Scraper API
- X (Twitter) User Media Scraper API