Skip to main content
GET
https://scrape.st
/
x
/
user
curl -X GET "https://scrape.st/x/user?username=elonmusk" \
  -H "x-api-key: YOUR_API_KEY"
{
  "id": "44196397",
  "rest_id": "44196397",
  "legacy": {
    "created_at": "Tue Jun 02 20:12:29 +0000 2009",
    "description": "",
    "entities": {
      "description": {
        "urls": []
      }
    },
    "favourites_count": 25724,
    "followers_count": 170949281,
    "friends_count": 529,
    "location": "",
    "name": "Elon Musk",
    "screen_name": "elonmusk",
    "statuses_count": 36980,
    "verified": true
  }
  // ... full object
}
Retrieve full profile information for a specific Twitter user directly from the scraper.
This endpoint supports dual authentication: - Admin Access: Use x-admin-key for unlimited access. - Standard Access: Use x-api-key (subject to rate limits).
x-admin-key
string
The administrative API key configured in the deployment environment (ADMIN_API_KEY).
x-api-key
string
Your standard API key. Requests using this key are limited to 2 requests per minute.
username
string
required
The Twitter screen name (handle) of the user to fetch (e.g., elonmusk).
data
object
The raw user object as returned by Twitter’s GraphQL API. The structure typically includes id, rest_id, legacy (profile info), and professional fields.
{
  "id": "44196397",
  "rest_id": "44196397",
  "legacy": {
    "created_at": "Tue Jun 02 20:12:29 +0000 2009",
    "description": "",
    "entities": {
      "description": {
        "urls": []
      }
    },
    "favourites_count": 25724,
    "followers_count": 170949281,
    "friends_count": 529,
    "location": "",
    "name": "Elon Musk",
    "screen_name": "elonmusk",
    "statuses_count": 36980,
    "verified": true
  }
  // ... full object
}
curl -X GET "https://scrape.st/x/user?username=elonmusk" \
  -H "x-api-key: YOUR_API_KEY"