Following Ids

GET/tw-v2/user/following-ids

Description

Get a paginated list of users that the specified account is following. Returns user objects with complete profile information.

Parameters

ParameterTypeRequiredDescription
userIdstringrequiredUnique platform user ID (e.g., '90013690')
countstringoptionalNumeric result count string (default: 20; no explicit backend maximum)
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/following-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": [
    "10088980",
    "100788754",
    "1001725635885283840",
    "1007279781545554210",
    "100849850",
    "10081545",
    "1007949731",
    "1003792412575786288",
    "1001361025",
    "1001359723661677634",
    "1005427224324788504",
    "1005612830",
    "1001004927889873081",
    "1001826983839195269",
    "1001140180846719767",
    "1004724182165837366",
    "1001910612794548107",
    "10016059",
    "20099468",
    "100334094"
  ],
  "pagination": {
    "nextCursor": "1842784569137304976",
    "prevCursor": "0"
  }
}

API Playground

GET/tw-v2/user/following-ids

Press ⌘ + Enter to execute

curl -X GET "https://api.tweetapi.com/tw-v2/user/following-ids" \
  -H "X-API-Key: YOUR_API_KEY"
Response

Click "Try It!" to see the response