Social

X (Twitter) profile

X (formerly Twitter) profile: followers, following, post and media counts, bio, website, location, join date, verification type, and the "based in" country from X's About-this-account panel. No X API key or login. "X" and "Twitter" refer to the same platform throughout.

Provide exactly one of: handle, url.

Credits: 1 (refunded on failure).

get/api/v1/social/x/profile

Request

  • Base URL: https://scrapewhale.dev
  • URL: https://scrapewhale.dev/api/v1/social/x/profile
  • Auth: one of:
    • HTTP bearer
    • API key in header x-api-key

Query parameters

handlestring

X handle, with or without the leading @. Provide this or url.

urlstring uri

An x.com/<handle> or twitter.com/<handle> profile URL.

format'json' | 'markdown' | 'both'

Response shape: "json" (structured data only), "markdown" (markdown only), or "both".

Response

Success.

idstring required
status'completed' required
extractorstring required

Extractor name, e.g. "traffic", "meta-ads", "instagram-profile".

titlestring nullable
sourceUrlstring nullable

Canonical public URL of the extracted source.

creditsChargedinteger required

0 when served from the shared cache.

cachedboolean

True when served from the shared extraction cache (free).

createdAtinteger required

Unix epoch milliseconds.

dataobject nullable

Raw structured payload from the source.

markdownstring

Clean markdown rendering of the payload.

Changes

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