FETCHAPI

Get an X user's profile by username API

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.

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
User infoCHEAPESTGET screenname.php$0.00009$0.09 / 1k calls✓ 2026-10-06pricing ↗
twitter-api47RapidAPI listing
By UsernameGET v3/user/by-username$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 one user profile by screenname (rest_id is optional). The answer is a single account, not a list; there is no cursor.
rest_iduser idprofilehandlenamedisplay namedescbiosub_countfollower countfriendsfollowing countstatuses_counttweet countcreated_ataccount creation timeblue_verifiedpaid-verified flagpinned_tweet_ids_strpinned tweet ids

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/screenname.php$0.00009 / call✓ working · tested 2026-10-066.93 s latency
Parameters
ParameterTypeNotes
rest_idstring · queryoptionalTwitter user's id. This parameter overwrites screenname parameter. · default 44196397
screennamestring · queryrequireddefault elonmusk
HTTP
curl "https://fetchapi.co/api/gw/rapidapi-twitter-api45/screenname.php?rest_id=44196397&screenname=elonmusk" \
  -H "x-api-key: YOUR_KEY"
MCP
call_endpoint("rapidapi-twitter-api45.user_info", {"rest_id": "44196397", "screenname": "elonmusk"})
Real example answer (trimmed) · 2026-10-03
{
  "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"
}
Other routes for this job
twitter-api47 · By Username$0.00019
GET /api/gw/rapidapi-twitter-api47/v3/user/by-username$0.00019 / call✓ working · tested 2026-10-060.81 s latency
Parameters
ParameterTypeNotes
usernamestring · queryrequireddefault elonmusk
HTTP
curl "https://fetchapi.co/api/gw/rapidapi-twitter-api47/v3/user/by-username?username=elonmusk" \
  -H "x-api-key: YOUR_KEY"
MCP
call_endpoint("rapidapi-twitter-api47.by_username", {"username": "elonmusk"})

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.