Following Ids
GET
/tw-v2/user/following-idsDescription
Get a paginated list of users that the specified account is following. Returns user objects with complete profile information.
Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
| userId | string | required | Unique Twitter/X user ID (e.g., '44196397') |
| count | string | optional | Number of results to return per page (max: 100, default: 20) |
| cursor | string | optional | Pagination cursor for fetching next page of results. Obtained from previous response. |
Code Examples
const params = new URLSearchParams({
userId: '44196397'
});
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": [
"64844802",
"121999927",
"1937253135061229568",
"1904142400554995714",
"491719838",
"47293791",
"2269061347",
"1886531809284173824",
"1540897980",
"1376251730183262210",
"1676905146482315264",
"1173974870",
"1695126229446479872",
"1520136498967990274",
"1405410944608477185",
"1072660589061791745",
"1548488713440595968",
"49573859",
"7076492",
"116551076"
],
"pagination": {
"nextCursor": "1842784569137304976",
"prevCursor": "0"
}
}API Playground
GET
/tw-v2/user/following-idsPress ⌘ + 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