X/Twitter Stats API

Views, likes, reposts and replies for a single post on X.

Credits 1 per tweet Input a public post URL (?url=) Caching Age-aware cache (15 min - 7 days)

Request

One GET request with your API key. Same shape on every platform — swap the path, keep the code.

curl "https://api.scrapersocial.com/v1/twitter/stats?url=https%3A%2F%2Fx.com%2FXDevelopers%2Fstatus%2F1861122334455667788" \
  -H "Authorization: Bearer sk_live_..."

Response

Clean JSON in the standard envelope. Responses arrive in seconds; popular content in milliseconds.

{
  "data": {
    "platform": "twitter",
    "entity_id": "1861122334455667788",
    "url": "https://x.com/XDevelopers/status/1861122334455667788",
    "author": {
      "handle": "XDevelopers",
      "name": "Example Creator"
    },
    "posted_at": "2026-06-30T14:05:00Z",
    "metrics": {
      "views": 1204593,
      "likes": 88410,
      "comments": 2314,
      "shares": 10092
    }
  },
  "request_id": "req_01JZX4M8Q2TE9W"
}

What it returns

Views, likes, reposts and replies for a single post on X. Takes a public post URL via ?url= and returns the { data, request_id } envelope . Each call costs 1 credit per tweet returned — check the X-Credits-Charged and X-Credits-Remaining response headers. Cached responses cost the same and set x-cache: hit; add fresh=true to bypass the cache.

Try the X/Twitter Stats endpoint free

100 trial credits on signup — no card, key on screen immediately.

Get your free API key