List numeric user ids of accounts an X profile follows.
Endpoint
/v1/twitter/profiles/{handle}/following/ids
Path
X (Twitter) profile handle without the leading @, or a numeric user id.
Query
Requested page size (1–5000).
Opaque pagination cursor returned by a previous response.
Treat the path value as a handle or a numeric user id. Defaults to id when the value is all digits.
const response = await fetch( "https://api.socialfetch.dev/v1/twitter/profiles/nasa/following/ids", { headers: { "x-api-key": "YOUR_API_KEY" } } ); const data = await response.json(); console.log(data);