Platforms · X (Twitter)

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 for
  • cursor: 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 picture
  • items[].author.bio (string): Profile biography or description
  • items[].author.display_name (string): Display name or full name
  • items[].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 followed
  • items[].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 surfaced
  • items[].author.posts_count (number): Total number of posts / videos / tracks / episodes
  • items[].author.private (boolean): Whether the account is private.
  • items[].author.url (string): Direct URL to the profile page
  • items[].author.username (string): User handle or username
  • items[].author.verified (boolean): Whether the account is verified
  • next_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

More X (Twitter) scraper APIs