twitter_user_by_username
Get a public Twitter profile by username (handle), returning ID, name, description, verified status, and follower/following/tweet counts. Use it to compare sports accounts and their metrics.
Instructions
One account's public profile by @handle (without the @).
Returns: {data:{id, username, name, description, verified, public_metrics:{followers_count, following_count, tweet_count}}}
Example: The NBA's official account {"username": "NBA"}
Auth: needs your own key in X_BEARER_TOKEN.
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": {
"username": "<username>"
},
"name": "twitter_user_by_username"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| username | Yes | Handle without the @ (e.g. NBA, AFL, wojespn). Required — part of the URL path. | |
| user_fields | No | User fields (CSV). | created_at,description,public_metrics,verified |