Free trial: 3 of 3 test requests left. Get your own API key with 100 free credits. No credit card.
List the domains a Mastodon server federates with.
Endpoint
/v1/mastodon/servers/{host}/peers
Path
The Mastodon server to ask, e.g. `mastodon.social`. A server URL is also accepted. The server you name is the one that answers.
Query
Only domains containing this text.
Pass `page.nextCursor` from the previous response to get the next page.
Items per page, 1 to 1000. Default: 100.
const response = await fetch( "https://api.socialfetch.dev/v1/mastodon/servers/mastodon.social/peers", { headers: { "x-api-key": "YOUR_API_KEY" } } ); const data = await response.json(); console.log(data);