
One call returns one user profile by screenname (rest_id is optional). The answer is a single account, not a list; there is no cursor.
2 live routes on X, from $0.00009 per call. Every route below answered our last live test on 2026-10-06; the gateway re-tests them daily.
The upstream price you are metered at, cheapest first. A route without a published price says so.
| Provider | Endpoint | Price |
|---|---|---|
twitter-api45RapidAPI listing | User infoCHEAPESTGET screenname.php | $0.00009$0.09 / 1k calls |
twitter-api47RapidAPI listing | By UsernameGET v3/user/by-username | $0.00019$0.19 / 1k calls |
From a real call to the cheapest route: twitter-api45.
rest_iduser idprofilehandlenamedisplay namedescbiosub_countfollower countfriendsfollowing countstatuses_counttweet countcreated_ataccount creation timeblue_verifiedpaid-verified flagpinned_tweet_ids_strpinned tweet idsHTTP with your key in x-api-key, or the call_endpoint tool of our MCP server.
| Parameter | Type | Notes | |
|---|---|---|---|
| rest_id | string · query | optional | Twitter user's id. This parameter overwrites screenname parameter. · default 44196397 |
| screenname | string · query | required | default elonmusk |
curl "https://fetchapi.co/api/gw/rapidapi-twitter-api45/screenname.php?rest_id=44196397&screenname=elonmusk" \ -H "x-api-key: YOUR_KEY"
call_endpoint("rapidapi-twitter-api45.user_info", {"rest_id": "44196397", "screenname": "elonmusk"}){
"id": "44196397",
"desc": "https://t.co/ZdBx5WABYx",
"name": "Elon Musk",
"avatar": "https://pbs.twimg.com/profile_images/2103567689515954176/aR-Kjpp4_normal.jpg",
"status": "active",
"friends": 1415,
"profile": "elonmusk",
"rest_id": "44196397",
"location": "",
"protected": false,
"sub_count": 241744659,
"affiliates": {
"label": {
"url": {
"url": "https://twitter.com/X",
"urlType": "DeepLink"
},
"badge": {
"url": "https://pbs.twimg.com/profile_images/1955359038532653056/OSHY3ewP_bigger.jpg"
},
"description": "X",
"userLabelType": "BusinessLabel",
"userLabelDisplayType": "Badge"
}
},
"created_at": "Tue Jun 02 20:12:29 +0000 2009",
"media_count": 4728,
"…": "6 more fields"
}| Parameter | Type | Notes | |
|---|---|---|---|
| username | string · query | required | default elonmusk |
curl "https://fetchapi.co/api/gw/rapidapi-twitter-api47/v3/user/by-username?username=elonmusk" \ -H "x-api-key: YOUR_KEY"
call_endpoint("rapidapi-twitter-api47.by_username", {"username": "elonmusk"})Call it over HTTP or from any MCP client. Each key has a rate limit and a monthly cap; calls are metered at the upstream price.