Skip to content
Browse the docs

Profiles

Profile by user ID

Profile for a numeric user ID. Resolves the username first, up to 4 upstream calls.

GET/api/v1/twitter/users/profile_by_userid/:userId

Price

3 tokens per successful call. 3 per call. Failed calls are refunded; a 404 is charged.

Parameters

userIdpathrequired
Numeric user ID. Example: 44196397

Request

curl
curl "https://api.xscraper.online/api/v1/twitter/users/profile_by_userid/44196397" \
  -H "x-api-key: $XSCRAPER_KEY"

Response

200 OK (example shape)
{
  "success": true,
  "message": "…",
  "data": {
    "userId": "2244994945",
    "username": "XDevelopers",
    "name": "Developers",
    "url": "https://x.com/XDevelopers",
    "biography": "The voice of the X Dev team and your official source for updates, news, and events, related to the X API.",
    "bioLinks": [],
    "location": "127.0.0.1",
    "website": "https://docs.x.com/",
    "avatar": "https://pbs.twimg.com/profile_images/1683501992314798080/xl1POYLw.jpg",
    "banner": "https://pbs.twimg.com/profile_banners/2244994945/1690213128",
    "joined": "2013-12-14T04:35:55.000Z",
    "followersCount": 698112,
    "followingCount": 765,
    "friendsCount": 765,
    "tweetsCount": 4349,
    "likesCount": 2685,
    "mediaCount": 830,
    "listedCount": 2978,
    "pinnedTweetIds": [
      "2019881223666233717"
    ],
    "isPrivate": false,
    "isVerified": false,
    "isBlueVerified": true,
    "verifiedType": "Business",
    "canDm": true,
    "professional": {
      "type": "Business",
      "categories": [
        "Community"
      ]
    },
    "affiliation": {
      "label": "X",
      "url": "https://twitter.com/X",
      "badgeUrl": "https://pbs.twimg.com/profile_images/1955359038532653056/OSHY3ewP_bigger.jpg"
    },
    "parodyLabel": null,
    "defaultProfile": false,
    "defaultProfileImage": false,
    "possiblySensitive": false
  },
  "errors": null
}

Try it

Estimated cost 3 tokens

Kept in this tab only and sent only as the x-api-key header of this request.

Numeric user ID.

GET /api/v1/twitter/users/profile_by_userid/44196397

The response, its status and the tokens it cost appear here.