Mastodon Server Directory API

The curated Mastodon server directory of joinmastodon.org: domain, Mastodon version, description, languages, region, topics, registered users, users active last week, whether sign-up needs approval and the thumbnail, filtered by language, topic, region, sign-up and size.

$0.50 per 1,000 records

You pay only for the records you get. Zero records cost zero. 10,000 free records of this API to start (5,000 at the base price of $1 per 1,000), no card.

Try it
Ready-made, maintained by usRecords, 14 fieldsv1.0

Data from joinmastodon.org/servers

Get this data

Try it here with a few records, download the sample, fill a Google Sheet, or call it from your own code.

Try it

Languageoptional
Only servers for this language, as a two- or three-letter code such as en, de, ja, es or fr (optional).
Example: en
Categoryoptional
Only servers on this topic (optional).
Regionoptional
Only servers in this part of the world (optional).
Registrationsoptional
Only servers where anyone can sign up at once (open) or where sign-up needs approval (approval). Optional.
Minimum usersoptional
Only servers with at least this many registered users (optional).
Example: 1000

Run it on this page, or call it from your code with the endpoint in the developer section. A free key covers 10,000 records of this API, no card. Create a free key

For developers: the API and MCPThe endpoint, code in curl, JavaScript and Python, every input, and files for your tools
Endpoint
POSThttps://pullrow.dev/v1/apis/mastodon-server-directory/run
  • Small runs answer in the same request; longer ones answer 202 with a run to poll.
  • fields returns only the fields you name. The examples send the ones picked on this page.
  • Idempotency-Key is optional. A retry with it is never charged twice.
  • You pay for records returned. Zero records cost zero.

Every run option, explained

Calling it needs a key
10,000 free records of this API to start. No card.
curl
curl -X POST "https://pullrow.dev/v1/apis/mastodon-server-directory/run" \
  -H "Authorization: Bearer $PULLROW_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"input":{"language":"en"},"max_items":50}'

Inputs

Send them as input in the request body. Leave one out to use its default.

languagetext
Only servers for this language, as a two- or three-letter code such as en, de, ja, es or fr (optional).
example: en
categorytext
Only servers on this topic (optional).
example: techone of: general, regional, tech, games, lgbt, activism, music, furry, art, academia, books, hobby, journalism, religion, food…
regiontext
Only servers in this part of the world (optional).
example: europeone of: europe, north_america, south_america, asia, africa, oceania
registrationstext
Only servers where anyone can sign up at once (open) or where sign-up needs approval (approval). Optional.
example: openone of: open, approval
min_usersnumber
Only servers with at least this many registered users (optional).
example: 1000

What's in each record

14 fields.

Basics

  • Domain

    The server's domain, such as mastodon.social.

    Example mastodon.social

  • Version

    Mastodon version the server runs, as it reports it.

    Example 5.0.0

  • Description

    The server's short description in plain text.

    Example The original server of Mastodon, operated by Mastodon GmbH for the common good.

  • Language

    The server's main language code, such as en.

    Example en

  • Languages

    Language codes the directory lists the server under.

    Example en

  • Category

    The server's main topic, such as general or tech.

    Example general

  • Categories

    Every topic the directory lists the server under.

    Example general

  • Total users

    Registered users.

    Example 921,100

  • Active users last week

    Users active in the past seven days.

    Example 274,360

  • Approval required

    Whether a new account needs the server's approval (false: anyone can sign up at once).

    Example No

  • Operator type

    Who runs the server as the directory lists it: organisation or individual.

    Example individual

Location

  • Region

    Part of the world, such as europe or north_america.

    Example north_america

Pictures and media

Technical detailsField names and types for developers

Field names and types

The names your code reads in each record. "Filled" counts how many of the 3 sample records carry the field.

Field nameTypeShown on this page asFilled
domaintextDomain3 of 3
urllinkLink3 of 3
versiontextVersion3 of 3
descriptiontextDescription3 of 3
languagetextLanguage3 of 3
languageslistLanguages3 of 3
regiontextRegion2 of 3
categorytextCategory3 of 3
categorieslistCategories3 of 3
total_usersnumberTotal users3 of 3
active_users_last_weeknumberActive users last week3 of 3
is_approval_requiredyes or noApproval required3 of 3
operator_typetextOperator type2 of 3
thumbnail_urlimage linkThumbnail3 of 3

How it reads the site

Runs on a reader we built and maintain by hand for this site.

Sample records

Sample records
RecordDomainVersionDescriptionLanguageLanguagesCategoryCategoriesTotal usersActive users last weekApproval requiredOperator typeRegionLinkThumbnail
1mastodon.social5.0.0The original server of Mastodon, operated by Mastodon GmbH for the common good.enengeneralgeneral921,100274,360No——mastodon.socialproxy.joinmastodon.org/de816a7e564f2dfeca7582c83a7ad365a6a7d210/68747470733a2f2f66696c65732e6d6173746f646f6e2e736f6369616c2f736974655f75706c6f6164732f66696c65732f3030302f3030302f3030312f4031782f353763313266343431643038336364652e706e67
2infosec.exchange5.0.0+glitchA Mastodon instance for info/cyber security-minded people.enentechtech45,93510,471Yesindividualnorth_americainfosec.exchangeproxy.joinmastodon.org/3c980cda8c7d9653dc771565048a4a6efc2320db/68747470733a2f2f6d656469612e696e666f7365632e65786368616e67652f696e666f7365632e65786368616e67652f736974655f75706c6f6164732f66696c65732f3030302f3030302f3030372f4031782f626263366138396235346332343938612e706e67
3mstdn.jp4.7.6Mastodon日本鯖です. よろしくお願いいたします。 (Maintained by Sujitech, LLC)jajageneralgeneral305,93910,150Yesorganisationasiamstdn.jpproxy.joinmastodon.org/1547b4f56bc7883c59c86a57ba06812fc1908aed/68747470733a2f2f6d7374646e2e6a702f7061636b732f6173736574732f707265766965772d76535573465869642e706e67

Sample records from the example output this API publishes. Email addresses and phone numbers in them are masked. Hover over a column name to see the field name your code reads.

Reliability

Counted from real runs. Our own health checks are left out. A run succeeded when it finished and the site neither blocked it nor broke it.

Incidents and repairs

How it is kept working What a repair can't do

A ready-made API, maintained by us. It is not part of the daily check or the automatic rebuild yet.

  • You pay only for records returned. A run that returns none costs nothing.
Known limits
  • Only the servers joinmastodon.org lists, about 290: a server must commit to Mastodon's Server Covenant to be listed, so most Mastodon servers are not in this directory.
  • The whole filtered directory comes back in one request, in the directory's own order, so a run takes about a second and there is nothing to page.
  • Counts are what each server last reported to the directory: total_users are registered accounts, active_users_last_week those active in the past seven days. The directory's answer may be up to five minutes old.
  • The language, topic, region and sign-up filters are the directory's own: a server matches the languages the directory assigns it, not every language its users write in.
  • region is empty for a few servers, and operator_type only says whether the directory lists a server as run by an organisation or an individual; no operator names are returned.
  • thumbnail_url points to the thumbnail as joinmastodon.org's image service serves it.

Version history

A run uses the live version unless the request names another one with version.