Skip to content

Followers IDs

GET/tw-v2/user/followers-ids

1 API unit per call · How billing works

Description

Get a paginated list of the specified account's follower IDs. Returns string IDs in data and next and previous cursors in pagination.

Parameters

ParameterDescription
userIdstringrequiredUnique Twitter user ID (e.g., '90013690')
countstringoptionalResults per page, as a numeric string (default: 20)
cursorstringoptionalPagination cursor for fetching next page of results. Obtained from previous response.

Code Examples

const params = new URLSearchParams({
  userId: '90013690'
});

const response = await fetch(`https://api.tweetapi.com/tw-v2/user/followers-ids?${params}`, {
  method: 'GET',
  headers: {
    'X-API-Key': 'YOUR_API_KEY'
  }
});

const data = await response.json();
console.log(data);

Response

Success Response (200 OK)

200
{
  "data": [
    "1000000000000001001",
    "1000000000000001002",
    "1000000000000001003",
    "1000000000000001004",
    "1000000000000001005",
    "1000000000000001006",
    "1000000000000001007",
    "1000000000000001008",
    "1000000000000001009",
    "1000000000000001010",
    "1000000000000001011",
    "1000000000000001012",
    "1000000000000001013",
    "1000000000000001014",
    "1000000000000001015",
    "1000000000000001016",
    "1000000000000001017",
    "1000000000000001018",
    "1000000000000001019",
    "1000000000000001020"
  ],
  "pagination": {
    "nextCursor": "NEXT_CURSOR",
    "prevCursor": "0"
  }
}