Skip to content
Scrappa Get API key
X (Twitter) API 1 credit/request

X (Twitter) Profile

GET https://scrappa.co/api/x-twitter/profile

A public profile with its counters merged with the about-page detail: bio, location, join date, website and verification state.

X (Twitter) Profile 1 credit/request

Endpoint

Request preview
GET
https://scrappa.co/api/x-twitter/profile
Auth header
x-api-key
Cost
1 credit/request
handle = example
Response preview
200 OK
{
    "user": {
        "url": "https://x.com/elonmusk",
        "name": "Elon Musk",
        "joined": "June 2009",
        "website": "https://example.com",
        "location": "Earth",
        "statuses": 45000,
        "followers": 218000000,
        "following": 2400,
        "protected": false,
        "description": "Public bio.",
        "media_count": 3100,
        "screen_name": "elonmusk",
...

Parameters

Start with the required fields, then add optional filters only when your use case needs them.

Runnable path

1 required parameter needed before sending a request.

2 optional filters available.

handle string Required

Screen name, with or without the leading @.

Example value example
rest_id string Optional

Numeric account id. Accepted only together with a tweet_id, because no public route turns a bare numeric id into a screen name.

Example value 1234567890
tweet_id string Optional

A tweet id by the same author. Required when rest_id is supplied without a handle.

Example value 1234567890

Response Schema

Example response fields are illustrative; inspect the JSON before integrating.

Example response fields

Scan these fields before integrating.

user counters_provenance
JSON Response
200 OK
{
    "user": {
        "url": "https://x.com/elonmusk",
        "name": "Elon Musk",
        "joined": "June 2009",
        "website": "https://example.com",
        "location": "Earth",
        "statuses": 45000,
        "followers": 218000000,
        "following": 2400,
        "protected": false,
        "description": "Public bio.",
        "media_count": 3100,
        "screen_name": "elonmusk",
        "verification": {
            "verified": true
        }
    },
    "counters_provenance": "Engagement counters are public, third-party-visible values, not X-attested metrics. estimated_view_count is X's estimated-view signal and is a different quantity from a view count."
}

Generate Code with AI

Copy a ready-made prompt with all the endpoint details, parameters, and example responses. Paste it into ChatGPT, Claude, or any AI assistant to instantly generate working code.

Try It Live

Test this endpoint in our interactive playground with real data.