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

X (Twitter) Tweet

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

Full public tweet detail: text, author, timestamps, language, edit state, attached media, video variants and engagement counters. Tweet detail merges two public sources, so it returns the engagement counters that a tweet's media detail does not carry on its own.

X (Twitter) Tweet 1 credit/request

Endpoint

Request preview
GET
https://scrappa.co/api/x-twitter/tweet
Auth header
x-api-key
Cost
1 credit/request
id = 1234567890
Response preview
200 OK
{
    "tweet": {
        "id": "1234567890123456789",
        "lang": "en",
        "text": "Public tweet text.",
        "media": [
            {
                "url": "https://pbs.twimg.com/media/example.jpg",
                "type": "photo",
                "focus_rects": [
                    {
                        "h": 100,
                        "w": 100,
                        "x": 0,
...

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.

id string Required

Tweet id, or any public x.com status URL. A full status URL is accepted and the id is extracted from it.

Example value 1234567890

Response Schema

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

Example response fields

Scan these fields before integrating.

tweet
JSON Response
200 OK
{
    "tweet": {
        "id": "1234567890123456789",
        "lang": "en",
        "text": "Public tweet text.",
        "media": [
            {
                "url": "https://pbs.twimg.com/media/example.jpg",
                "type": "photo",
                "focus_rects": [
                    {
                        "h": 100,
                        "w": 100,
                        "x": 0,
                        "y": 0
                    }
                ]
            }
        ],
        "author": {
            "url": "https://x.com/example",
            "name": "Example Account",
            "verified": true,
            "followers": 12840000,
            "screen_name": "example"
        },
        "counters": {
            "likes": 4213,
            "views": 180000,
            "quotes": 31,
            "replies": 88,
            "reposts": 512
        },
        "is_edited": false,
        "created_at": "Tue Mar 05 09:20:00 +0000 2026",
        "counter_sources": {
            "likes": "tweet_detail",
            "replies": "tweet_detail",
            "reposts": "tweet_status"
        },
        "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.