GET /2/users/by/username/{username}/following

Auth X-Hub-Key from API_HUB_KEYExecute GET /run/x_unified_api/2/users/by/username/{username}/followingCache cached 1s, never served stale past that windowCost free · weight 0 · standard rate classSource billing free

Read accounts followed by an X profile

Parameters

nameintypedescription
cursorquerystroptional
example:
max_resultsqueryintoptional
default: 20
example: 20
user_fieldsquerystroptional
example: name,username
usernamepathstrrequired
example: jack

Response

type: object
pagination: cursor
sample: {
  "data": "array[3]",
  "meta": "object"
}

Safe request

Reads the credential from API_HUB_KEY; it never appears in the URL.

curl -sH "X-Hub-Key: $API_HUB_KEY" "https://openapihub.dev/run/x_unified_api/2/users/by/username/jack/following?cursor=&max_results=20&user_fields=name%2Cusername"