xAPIs.dev
API Reference · v2
Free Tools{ }OpenAPI YAMLGet API key
API Reference / User / Get followings

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
curl https://v2.xapis.dev/twitter/user/followings \
  -G --data-urlencode "userName=elonmusk" \
  -G --data-urlencode "pageSize=40" \
  -H "x-api-key: $XAPIS_KEY"
Response200 OK
application/json
{
  "followings": [
    {
      "id": "70057560",
      "name": "Stepan Goncharov",
      "screen_name": "stepango",
      "userName": "stepango",
      "location": "Bay Area",
      "url": "https://t.co/pRvq96KGQO",
      "description": "Advancing Humanity @xAI",
      "email": null,
      "protected": false,
      "verified": false,
      "followers_count": 3124,
      "following_count": 852,
      "friends_count": 852,
      "favourites_count": 6047,
      "statuses_count": 3334,
      "media_tweets_count": 220,
      "created_at": "Sun Aug 30 05:24:13 +0000 2009",
      "profile_banner_url": "https://pbs.twimg.com/profile_banners/70057560/1478860786",
      "profile_image_url_https": "https://pbs.twimg.com/profile_images/1324014015597568002/YYNmRAZ6_normal.jpg",
      "can_dm": false
    }
  ],
  "has_next_page": true,
  "next_cursor": "1865330825849874517",
  "status": "success",
  "msg": "success",
  "code": 0
}
base url · https://v2.xapis.dev
Ready to call Get followings?