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 platform user ID (e.g., '90013690') |
| 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: '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-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