x

Get following IDs for an X user

Return only the numeric user IDs that an X user follows as a cursor-paginated list, without the full profile bodies. Useful for efficiently capturing an account's outbound follow graph for overlap and diffing analysis.

get/x/users/{id}/following/ids

Request

  • Base URL: https://api.unifapi.com
  • URL: https://api.unifapi.com/x/users/{id}/following/ids
  • Auth: HTTP bearer

Path parameters

idstring required

X resource id.

Query parameters

expansionsstring
tweet.fieldsstring
user.fieldsstring
media.fieldsstring
place.fieldsstring
poll.fieldsstring
pagination_tokenstring
next_tokenstring
max_resultsinteger

Headers

Unifapi-Version'2026-07-01'

Pin the API version an integration was built against (date-based, e.g. 2026-07-01). Omit to use the current version. Public URL paths stay stable and unversioned; breaking changes ship under a new dated version and are announced with Deprecation and Sunset response headers. The served version is echoed in every response's Unifapi-Version header. Policy: https://unifapi.com/versioning.md

Response

OK

request_idstring required

UnifAPI request id for support and ledger correlation.

dataXId[] required

Changes

No recorded changes to this operation across all 1 revision of this API.