List following ids of a Twitter profile

List numeric user ids of accounts an X profile follows.

GET/v1/twitter/profiles/{handle}/following/ids
1credit
x-api-keystringheader

API key (`sfk_...`)

Parameters
4
handlestringrequiredpath

X (Twitter) profile handle without the leading @, or a numeric user id.

limitintegeroptionalquery

Requested page size (1–5000).

≥ 1 · ≤ 5000

cursorstringoptionalquery

Opaque pagination cursor returned by a previous response.

min 1 chars

bystringoptionalquery

Treat the path value as a handle or a numeric user id. Defaults to id when the value is all digits.

one of: id, handle

Response fields
12

Endpoint-specific response payload.

datalookupStatus
string

Whether the id list was resolved.

one of: found, not_found, private

Numeric X user ids returned for this page.

dataids[]
stringoptional

Cursor pagination for this id list.

datapagehasMore
boolean

Whether another page is available.

datapagenextCursor
stringnullable

Cursor to pass in the next request when more pages exist; null on the last page.

Metadata describing the request and billing outcome.

metarequestId
string

Unique request identifier for tracing this API call.

min 1 chars

metacreditsCharged
integer

Credits charged for this request.

≥ 0

metaversion
string

Public API version that served the response.

one of: v1

metacached
booleanoptional

True when served from shared response cache. Credits still apply (full endpoint price); Age header may be present.

Code example

curl "https://api.socialfetch.dev/v1/twitter/profiles/nasa/following/ids" \
  -H "x-api-key: YOUR_API_KEY"

Responses

Following id listing.