Skip to content

Get follower ids (bulk)

GET
/twitter/user/followers_ids
const url = 'https://api.relayxapi.com/twitter/user/followers_ids';
const options = {
method: 'GET',
headers: { 'X-API-Key': '<api-key>' },
};
try {
const res = await fetch(url, options);
const data = await res.json();
console.log(data);
} catch (err) {
console.error(err);
}

Return follower ids only, in large pages. The cheapest way to snapshot a big follower graph before hydrating the profiles you care about.

userName
Username
string
userId
Userid
string
count
Count
integer
default: 5000
cursor
Cursor
integer
default: -1
x-api-key
X-Api-Key
string

Successful Response

Media typeapplication/json
Example
{
"ids": [
"1000000000000000001",
"1000000000000000002"
],
"has_next_page": true,
"next_cursor": "1877311931212438332",
"status": "success",
"msg": ""
}

Validation Error

Media typeapplication/json
HTTPValidationError
object
detail
Detail
Array<object>
ValidationError
object
loc
required
Location
Array
msg
required
Message
string
type
required
Error Type
string
Examplegenerated
{
"detail": [
{
"loc": [
"example"
],
"msg": "example",
"type": "example"
}
]
}