xAPIs.dev
API Reference · v2
Free Tools{ }OpenAPI YAMLGet API key
API Reference / User / Get follower IDs

Get follower IDs

GET/twitter/user/followers_ids5 credits

Bulk-fetch the numeric IDs of an account’s followers — lightweight, ideal for graph analysis. 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

userName
stringrequired
The @handle to fetch follower IDs for.
cursor
stringoptional
Pagination cursor for the next page.

Response fields

idsarray
Array of user IDs as strings.
has_next_pageboolean
Whether another page of results is available.
next_cursorstring
Cursor for the next page; null or empty when exhausted.
statusstring
Request status: "success" or "error".
msgstring
Status message from the upstream.
codeinteger
Numeric status code (0 = OK).
Request
curl https://v2.xapis.dev/twitter/user/followers_ids \
  -G --data-urlencode "userName=elonmusk" \
  -H "x-api-key: $XAPIS_KEY"
Response200 OK
application/json
{
  "ids": [
    "2074775461637554176"
  ],
  "has_next_page": true,
  "next_cursor": "1870126204471038376",
  "status": "success",
  "msg": "success",
  "code": 0
}
base url · https://v2.xapis.dev
Ready to call Get follower IDs?