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 freeRead accounts followed by an X profile
Parameters
| name | in | type | description | |
|---|---|---|---|---|
cursor | query | str | optional | example: |
max_results | query | int | optional | default: 20example: 20 |
user_fields | query | str | optional | example: name,username |
username | path | str | required | 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"