FETCHAPI

Get several X user profiles by user ids API

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.

Get a keySee it in the catalogUse it from MCP

Price per call, by route

The upstream price you are metered at, cheapest first. A route without a published price says so.

ProviderEndpointPriceTested
twitter-api45RapidAPI listing
Profiles By RestIdsCHEAPESTGET screennames.php$0.00009$0.09 / 1k calls✓ 2026-10-06pricing ↗
twitter-api47RapidAPI listing
By User IDsGET v3/user/by-ids$0.00019$0.19 / 1k calls✓ 2026-10-06pricing ↗

What it returns

From a real call to the cheapest route: twitter-api45.

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.
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 status

Call it

HTTP with your key in x-api-key, or the call_endpoint tool of our MCP server.

GET /api/gw/rapidapi-twitter-api45/screennames.php$0.00009 / call✓ working · tested 2026-10-066.73 s latency
Parameters
ParameterTypeNotes
rest_idsstring · queryrequireddefault 44196397,34743251
HTTP
curl "https://fetchapi.co/api/gw/rapidapi-twitter-api45/screennames.php?rest_ids=44196397,34743251" \
  -H "x-api-key: YOUR_KEY"
MCP
call_endpoint("rapidapi-twitter-api45.profiles_by_restids", {"rest_ids": "44196397,34743251"})
Real example answer (trimmed) · 2026-10-03
{
  "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"
    }
  ]
}
Other routes for this job
twitter-api47 · By User IDs$0.00019
GET /api/gw/rapidapi-twitter-api47/v3/user/by-ids$0.00019 / call✓ working · tested 2026-10-060.94 s latency
Parameters
ParameterTypeNotes
userIdsstring · queryrequireddefault 1223455,12213124231,12312312e.g. 44196397,34743251
HTTP
curl "https://fetchapi.co/api/gw/rapidapi-twitter-api47/v3/user/by-ids?userIds=44196397,34743251" \
  -H "x-api-key: YOUR_KEY"
MCP
call_endpoint("rapidapi-twitter-api47.by_user_ids", {"userIds": "44196397,34743251"})

Related X APIs

All 36 X jobs →

One key for every API on this page.

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.