API reference
Read followers / following
x_read_connections — Read who follows a person, or who they follow, live on X (up to 5000).
x_read_connections · Live read on X (creates a job)
Read who follows a person, or who they follow, live on X (up to 5000). Long lists may not finish within wait_seconds: poll job_get. Counts against Read.
| REST | POST /api/public/v1/accounts/{account}/reads/connections |
| MCP tool | x_read_connections |
| Permission needed | accounts.run — Owner, Manager, Operator |
| Scope group | x:read |
| Group | Live reads on X |
| Shown up front in profiles | Operate X accounts |
Input
| Field | Type | Required | Description |
|---|---|---|---|
account |
string (1–100 chars) | Yes | The X account to use: its X-Buddy account_id (from account_list) or its @handle. Ambiguous names return candidates instead of guessing. |
person |
string (1–60 chars) | Yes | Person on X: @handle (or handle) or numeric user id prefixed with #, e.g. #44196397 |
direction |
followers · following |
Yes | followers = people who follow them; following = people they follow. |
max |
integer (1–5000) | No | Most people to read. |
Result
Creates a job for the X account's VPS. REST waits up to wait seconds (default 15, max 20): when done it returns 200 with the result, otherwise 202 with Location: /api/public/v1/jobs/{job_id}. The final status is succeeded, failed, cancelled or unknown.
Example
Call over REST
curl -X POST "https://reach-link-craft.lovable.app/api/public/v1/accounts/%40your_x_account/reads/connections" \
-H "Authorization: Bearer $XBUDDY_API_KEY" \
-H "Content-Type: application/json" \
-d '{"person":"@example_person","direction":"followers"}'
Call over MCP
{
"method": "tools/call",
"params": {
"name": "x_read_connections",
"arguments": {
"account": "@your_x_account",
"person": "@example_person",
"direction": "followers"
}
}
}
Errors you may get
| Code | HTTP | Retryable |
|---|---|---|
unauthorized |
401 | No |
key_expired |
401 | No |
integration_revoked |
401 | No |
connection_not_linked |
403 | No |
integration_paused |
403 | No |
workspace_integrations_paused |
403 | No |
integration_authorization_lost |
403 | No |
workspace_suspended |
403 | No |
forbidden |
403 | No |
invalid_input |
422 | No |
rate_limited |
429 | Yes |
internal |
500 | Yes |
ambiguous_account |
409 | No |
account_not_allowed |
403 | No |
not_found |
404 | No |
agent_too_old |
422 | No |
unsupported_by_account |
422 | No |