API · X
GET /x/users/{username}/followers
Accounts that follow an X account, paginated (needs logged-in sessions).
| |
|---|
| Request | GET /v1/x/users/{username}/followers |
| Operation id | x.user.followers |
| Cost | 10 credits, refunded if the call fails |
| Auth | API key: Authorization: Bearer <key> or x-api-key. |
Accounts that follow an X account, paginated (needs logged-in sessions).
| Name | Type | Required | Description |
|---|
username | string | yes | Handle, with or without the @, or a profile URL. Example: NASA. |
| Name | Type | Required | Description |
|---|
after | string | no | Cursor: the previous page's meta.next_token. |
| Status | Meaning | Schema |
|---|
200 | A page of followers, with a next_token. | XUsersResponse |
400 | Invalid input. Nothing was charged. | Error |
401 | Missing or invalid API key. | Error |
402 | Not enough credits, a spend cap was reached, or payment is required. | Error |
403 | The target is private, or the account is suspended. | Error |
404 | The post or account does not exist, was deleted, or is suspended. | Error |
429 | Too many requests. Wait for Retry-After seconds. | Error |
503 | X is temporarily unavailable. Retryable; nothing was charged. | Error |
| Field | Type | Description |
|---|
data | XUser[] | |
meta | object | |
Errors use one shape everywhere; see Errors for every code and what to do.