xAPIs.dev
API Reference · v2
Free Tools{ }OpenAPI YAMLGet API key
API Reference / User / Batch user info by IDs

Batch user info by IDs

GET/twitter/user/batch_info_by_ids1 credit

Fetch multiple user profiles in one call by numeric user IDs. The sample response below is captured from the live API. List endpoints paginate with `has_next_page` and `next_cursor`.

Authentication required
Send your key in the x-api-key header. Requests without a valid key return 401.

Query parameters

userIds
stringrequired
Comma-separated list of numeric user IDs.

Response fields

usersarray
Array of user profile objects.
statusstring
Request status: "success" or "error".
msgstring
Status message from the upstream.
Request
curl https://v2.xapis.dev/twitter/user/batch_info_by_ids \
  -G --data-urlencode "userIds=44196397,1494877848" \
  -H "x-api-key: $XAPIS_KEY"
Response200 OK
application/json
{
  "status": "success",
  "msg": "success",
  "users": [
    {
      "id": "44196397",
      "name": "Elon Musk",
      "userName": "elonmusk",
      "location": "",
      "url": "",
      "description": "Starmind",
      "entities": {
        "description": {}
      },
      "protected": false,
      "isVerified": false,
      "isBlueVerified": true,
      "verifiedType": null,
      "followers": 240742086,
      "following": 1366,
      "favouritesCount": 238191,
      "statusesCount": 105322,
      "mediaCount": 4593,
      "createdAt": "2009-06-02T20:12:29.000000Z",
      "coverPicture": "https://pbs.twimg.com/profile_banners/44196397/1774145451",
      "profilePicture": "https://pbs.twimg.com/profile_images/2053244804520427520/m8mdWZCG_normal.jpg",
      "canDm": false,
      "affiliatesHighlightedLabel": {},
      "isAutomated": false,
      "automatedBy": null,
      "pinnedTweetIds": [
        "2073311697474076672"
      ]
    }
  ]
}
base url · https://v2.xapis.dev
Ready to call Batch user info by IDs?