Platforms · X (Twitter)

X (Twitter) Profile Full Scraper API

avg_engagement_rate is view-based: the mean of each post's (likes + comments + shares) / views, so only posts that carry a view count contribute, and it is null when none does. avg_engagement_rate_by_followers is the mean of likes + comments per post divided by the account's follower count, over every post that carries both, so it covers posts with no view count. The profile leg is the only critical leg: if posts can't be fetched the call still returns the profile with post-dependent metrics null, and every leg's status is surfaced in legs[].

GET /api/v1/data/x/profile-full · 5 credits per page · The same call repeated within 15 minutes may get the same answer, so data can be up to 15 minutes old.

Inputs

  • handle (required): X username or handle, with or without a leading @. One of the identity params is required.
  • posts: How many of the fetched recent posts to return and compute the metrics over (1-100, default 25).
  • 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.
  • source_data.computed (object): Analytics worked out from the posts read, not from the whole account.
  • source_data.computed.avg_engagement_rate (number): The mean of each post's own engagement rate over the posts read, as a ratio (0.05 is 5%). Null when no post carries a view count.
  • source_data.computed.avg_engagement_rate_by_followers (number): The mean likes plus comments per post, divided by the follower count, as a ratio. Null when the follower count or the likes and comments are missing.
  • source_data.computed.cadence_window_days (number): Null with fewer than two dated posts.
  • source_data.computed.format_mix (object): How many of the posts read fall in each format. The keys are `video`, `image` and `text`, and a format with no posts is left out. Empty when no post was read.
  • source_data.computed.posts_per_week (number): How many posts the account publishes a week, from the span of the posts read. Null with fewer than two dated posts.
  • source_data.computed.top_post (object): The post with the most engagement among those read. Null when no post was read.
  • source_data.computed.top_post.engagement_total (number): The post's views, likes, comments, shares and saves added together.
  • source_data.computed.top_post.url (string)
  • source_data.posts (array): The account's recent posts, newest first, each with its computed block.
  • source_data.posts.computed (object): Server-computed analytics fields (consistent across platforms)
  • source_data.posts.post (object): Canonical Post object (unified across all platforms)
  • source_data.profile (object)
  • 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 5 credits. A call that finds nothing, or fails, is free.
  • Each call returns one page. To get the next page, send next_cursor from the answer as cursor.
  • The same call repeated within 15 minutes may get the same answer, so data can be up to 15 minutes old.

Example call

GET /api/v1/data/x/profile-full?handle=mrbeast

Questions

How much does the X (Twitter) Profile Full API cost?

Each page costs 5 credits. A call that finds nothing, or fails, costs nothing.

What do I send?

You must send handle. 1 more input is optional: posts. 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. 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 15 minutes may get the same answer, so data can be up to 15 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

  • Profile: Get X user profile. 1 credit a call
  • Profile About: Get a X account's About details. 2 credits a call

More X (Twitter) scraper APIs