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);}curl --request GET \ --url 'https://api.relayxapi.com/twitter/user/followers_ids' \ --header 'X-API-Key: <api-key>'import requests
res = requests.get( "https://api.relayxapi.com/twitter/user/followers_ids", headers={"X-API-Key": "<api-key>"},)print(res.json())Return follower ids only, in large pages. The cheapest way to snapshot a big follower graph before hydrating the profiles you care about.
Parameters
Section titled “ Parameters ”Query Parameters
Section titled “Query Parameters”userName
Username
string
userId
Userid
string
count
Count
integer
cursor
Cursor
integer
Header Parameters
Section titled “Header Parameters”x-api-key
X-Api-Key
string
Responses
Section titled “ Responses ”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>
ValidationErrorobject
loc
required
Location
Array
msg
required
Message
string
type
required
Error Type
string
Examplegenerated
{ "detail": [ { "loc": [ "example" ], "msg": "example", "type": "example" } ]}