x_profile
Fetch a public X (Twitter) profile's name, handle, bio, and follower counts as JSON by providing a username or user ID.
Instructions
Scrape an X (Twitter) profile via Scrapingdog (/x/profile). Returns the profile's name, handle, follower counts, bio, and other public metadata as JSON. Pass a username or user ID.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"profileId": "<profileId>"
},
"name": "x_profile"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| api_key | No | Override the configured Scrapingdog API key for this call. If omitted, the key is read from SCRAPINGDOG_API_KEY or a local .env file. | |
| profileId | Yes | The user ID or username of the X profile to scrape, e.g. 'elonmusk' or 'nasa'. |