Get followings
GET/twitter/user/followings30 credits
Page through the accounts a user follows. Cursor-paginated. The sample response below is captured from the live API. List endpoints paginate with `has_next_page` and `next_cursor`.
Authentication required
Send your key in the
x-api-key header. Requests without a valid key return 401.Query parameters
userName
stringrequired
The @handle to fetch followings for.
pageSize
integeroptional
Results per page. Defaults to 40.
cursor
stringoptional
Pagination cursor for the next page.
Response fields
followingsarray
Array of followed user objects.
has_next_pageboolean
Whether another page of results is available.
next_cursorstring
Cursor for the next page; null or empty when exhausted.
statusstring
Request status: "success" or "error".
msgstring
Status message from the upstream.
codeinteger
Numeric status code (0 = OK).
Request
Response200 OK
base url · https://v2.xapis.dev
Ready to call Get followings?
Get an API key or explore the full interactive reference.
