X

Get an X profile

Fetch an X account: username, name, description, location, the link in the profile, verified, created_at, and public_metrics (followers_count, following_count, tweet_count and more) — named as in X's own API v2. Use this to size an account or enrich a handle.

Give exactly one of username or url to identify the account.

Costs 3 credits, whether the answer is fetched or served from cache. A failed call is refunded automatically.

get/x/profile

Request

  • Base URL: https://api.scrapefield.com/v1
  • URL: https://api.scrapefield.com/v1/x/profile
  • Auth: one of:
    • HTTP bearer
    • none

Query parameters

usernamestring
Example:nasa

The username. A leading @ is fine.

urlstring

The profile URL, on x.com or twitter.com.

freshboolean

Skip the cache and fetch now. Charged normally. Not available on trial credits — buy any pack to unlock it.

demoboolean

With no key: a fixed demo answer in the same shape, charged nothing.

Response

The request succeeded.

Changes

No recorded changes to this operation across all 1 revision of this API.