Get Mastodon followers or following
Retrieve up to 80 accounts that follow, or are followed by, a public Mastodon account, with each account’s profile and counters. Page with the returned cursor.
/v1/mastodon/user/connectionsx-api-keyHeaders
Get your API keyYour ScrapeAtlas customer key. Create one on /account/ and set SCRAPEATLAS_API_KEY.
Required account address: user@server, @user@server, a profile URL such as https://fosstodon.org/@user, or a bare username on mastodon.social. Accounts on servers outside the supported list, including other fediverse software, are read from mastodon.social's federated copy (warning federated_view).
max 330 chars
example@mastodon.socialRequired: followers or following.
one of: followers, following
followersOptional cursor from the previous response. Omit for the first page.
Request correlation UUID.
Upstream requests, decoded response bytes and elapsed milliseconds.
Always included.
≥ 0
Always included.
≥ 0
Always included.
≥ 0
True when usable data is returned; inspect status and coverage for omissions.
success, partial, failed or challenged. HTTP 200 can be partial.
one of: success, partial
Public Mastodon page the data describes.
absolute HTTPS URL
UTC retrieval time.
Mastodon server that answered. IDs, cursors and counters are as that server reports them.
min 1 chars
complete is false when a warning names an omission, such as federated_view, counters_hidden or reply_limit.
Always included.
Always included.
Always included.
Account records in source order, at most 80, with the profile fields below.
up to 80 items
Always included.
Always included.
min 1 chars
Always included.
min 1 chars
Always included.
min 3 chars
Always included.
Always included.
Always included.
Always included.
Always included.
Always included.
Always included.
Always included.
Always included.
Always included.
Always included.
Always included.
Optional cursor from the previous response. Omit for the first page.
No fields match.
HTTP 200 returns the success variant. Check status: partial means usable data with warnings, and failed or challenged requests carry a failure object described in Errors & responses.
| HTTP | failure.code | Meaning |
|---|---|---|
| 200 | partial | Usable data with federated_view, counters_hidden, reply_limit, ancestor_limit, activity_unavailable or unsupported_*_omitted warnings. |
| 400 | invalid_request | Missing, duplicate, unsafe or unsupported parameters, a post URL outside the supported servers or an invalid cursor. |
| 401 | unauthorized | Missing or invalid worker API key. |
| 403 | restricted_page | The server does not share this data without login, or the account hides its followers and following. |
| 404 | not_found | Unknown or removed account, post or hashtag. |
| 429 | upstream_rate_limited | The server’s rate limit is exhausted for every available network identity. |
| 502 | upstream_challenged | The server answered with a challenge or non-JSON page. |
| 502 | unsupported_page | Malformed, mismatched or looping source data. |
| 502 | response_too_large payload_too_complex | Response exceeded byte or parsing limits. |
| 502 | unsafe_redirect request_limit upstream_error | Bounded source retrieval could not complete. |
| 503 | busy | All worker slots and queue places are occupied. |
| 504 | timeout | Total request deadline expired. |