
One call returns profiles for the comma-separated user ids in rest_ids. One item in users[] is one account. Our call returned 2 users; there is no cursor. Many counts (friends, statuses_count, media_count) are null here, so use user_info for full counts.
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 | Profiles By RestIdsCHEAPESTGET screennames.php | $0.00009$0.09 / 1k calls |
twitter-api47RapidAPI listing | By User IDsGET v3/user/by-ids | $0.00019$0.19 / 1k calls |
From a real call to the cheapest route: twitter-api45.
users[].rest_iduser idusers[].profilehandle (screen name)users[].namedisplay nameusers[].avataravatar urlusers[].locationlocationusers[].created_ataccount creation timeusers[].blue_verifiedpaid-verified flagusers[].protectedprotected account flagusers[].statusaccount statusHTTP with your key in x-api-key, or the call_endpoint tool of our MCP server.
| Parameter | Type | Notes | |
|---|---|---|---|
| rest_ids | string · query | required | default 44196397,34743251 |
curl "https://fetchapi.co/api/gw/rapidapi-twitter-api45/screennames.php?rest_ids=44196397,34743251" \ -H "x-api-key: YOUR_KEY"
call_endpoint("rapidapi-twitter-api45.profiles_by_restids", {"rest_ids": "44196397,34743251"}){
"users": [
{
"id": "44196397",
"desc": null,
"name": "Elon Musk",
"avatar": "https://pbs.twimg.com/profile_images/2103567689515954176/aR-Kjpp4_normal.jpg",
"can_dm": null,
"status": "active",
"friends": null,
"profile": "elonmusk",
"rest_id": "44196397",
"location": "",
"protected": false,
"sub_count": null,
"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",
"…": "7 more fields"
},
{
"id": "34743251",
"desc": null,
"name": "SpaceX",
"avatar": "https://pbs.twimg.com/profile_images/1697749409851985920/HbrI04tM_normal.jpg",
"can_dm": null,
"status": "active",
"friends": null,
"profile": "SpaceX",
"rest_id": "34743251",
"location": "Earth",
"protected": false,
"sub_count": null,
"affiliates": [],
"created_at": "Thu Apr 23 21:53:30 +0000 2009",
"…": "7 more fields"
}
]
}| Parameter | Type | Notes | |
|---|---|---|---|
| userIds | string · query | required | default 1223455,12213124231,12312312e.g. 44196397,34743251 |
curl "https://fetchapi.co/api/gw/rapidapi-twitter-api47/v3/user/by-ids?userIds=44196397,34743251" \ -H "x-api-key: YOUR_KEY"
call_endpoint("rapidapi-twitter-api47.by_user_ids", {"userIds": "44196397,34743251"})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.