Mastodon

Get Mastodon server

Get a Mastodon server's public profile, rules and statistics.

GET/v1/mastodon/servers/{host}
1credit
x-api-keystringheader

API key (`sfk_...`)

Parameters
2
hoststringrequiredpath

The Mastodon server to ask, e.g. `mastodon.social`. A server URL is also accepted. The server you name is the one that answers.

includearrayoptionalquery

Comma-separated extras: `rules` (the server's rules) and `about` (its long description).

any of: rules, about (comma-separated)

Response fields
119

Endpoint-specific response payload.

datalookupStatus
string

`found`, `not_found`, `restricted` (login required or closed), `unsupported` (this server does not offer it) or `not_compatible` (the host is not a Mastodon-compatible server). See `reason`.

one of: found, not_found, restricted, unsupported, not_compatible

datahost
string

The server that was asked.

datasoftware
stringnullable

Server software when known (`mastodon`, `pleroma`, `akkoma`, `hometown`, `kmyblue`, ...), else null.

Why `lookupStatus` is not `found`, or null when it is `found`.

datareasoncode
string

Machine-readable reason.

one of: login_required, closed_by_operator, hidden_by_owner, suspended, not_implemented, disabled_by_operator, not_a_mastodon_server, unsupported_server_software, host_not_found, post_not_visible

datareasonmessage
string

Plain-language explanation.

The server's profile when `lookupStatus` is `found`; otherwise null.

dataservertitle
stringnullable

The server's public name.

dataserverdescription
stringnullable

Short description of the server.

dataserverversion
stringnullable

The server's own version string.

dataserversoftwareVersion
stringnullable

Version of the software behind the server, when known.

dataserversourceUrl
stringnullable

Source code page for the server software.

Languages the server lists, as ISO codes.

dataserverlanguages[]
stringoptional

Server thumbnail, when it has one.

dataserverthumbnailurl
stringnullable

Server thumbnail image.

dataserverthumbnailblurhash
stringnullable

Blurhash placeholder for the thumbnail.

Icons the server publishes.

dataservericons[]src
string

Icon file.

dataservericons[]size
stringnullable

Icon size, such as `192x192`.

How registration works on this server.

dataserverregistrationsopen
booleannullable

True when anyone may register.

dataserverregistrationsapprovalRequired
booleannullable

True when an operator must approve new registrations.

dataserverregistrationsreasonRequired
booleannullable

True when a reason is required to register.

dataserverregistrationsminAge
integernullable

Minimum age to register, in years.

dataserverregistrationsmessageHtml
stringnullable

Registration message as sanitised HTML.

The operator's public contact account. The contact email is never returned.

dataservercontactAccountid
string

Account id on `host`.

dataservercontactAccounthost
string

The server this record came from.

dataservercontactAccounthandle
string

`user@host`, with the account's home server.

dataservercontactAccountusername
string

Username without the host.

dataservercontactAccounturl
stringnullable

Profile page.

dataservercontactAccountactorUri
stringnullable

ActivityPub id, when the server shows it.

dataservercontactAccountdisplayName
stringnullable

Display name.

dataservercontactAccountbioHtml
stringnullable

Bio as sanitised HTML.

dataservercontactAccountbio
stringnullable

Bio as plain text.

An avatar or header image.

dataservercontactAccountavatarurl
stringnullable

Image URL on the server or its media store.

dataservercontactAccountavatarstaticUrl
stringnullable

Still frame of an animated image.

dataservercontactAccountavatardescription
stringnullable

Alt text.

An avatar or header image.

dataservercontactAccountheaderurl
stringnullable

Image URL on the server or its media store.

dataservercontactAccountheaderstaticUrl
stringnullable

Still frame of an animated image.

dataservercontactAccountheaderdescription
stringnullable

Alt text.

dataservercontactAccountcreatedAt
stringnullable

Account creation, rounded to midnight UTC by the server.

dataservercontactAccountlastPostDate
stringnullable

Date of the latest post (a date, not a time).

The server's own counters.

dataservercontactAccountstatsfollowers
integernullable

Accounts following this account.

dataservercontactAccountstatsfollowing
integernullable

Accounts this account follows.

dataservercontactAccountstatsposts
integernullable

Posts by this account.

dataservercontactAccountisBot
boolean

True when the account is marked as a bot.

dataservercontactAccountisGroup
boolean

True when the account is a group.

dataservercontactAccountisLocked
boolean

Follow requests need approval. Public posts are still public.

dataservercontactAccountisLimited
boolean

The server's moderators limited (silenced) the account.

dataservercontactAccountisSuspended
boolean

True when the server suspended the account.

dataservercontactAccountisDiscoverable
booleannullable

The owner's opt-in to the profile directory and recommendations. null on servers that do not report it.

dataservercontactAccountisIndexable
booleannullable

The owner's opt-in to search engines indexing public posts. null when not reported.

dataservercontactAccountnoIndex
booleannullable

The owner asks search engines to skip the profile. null when not reported.

dataservercontactAccounthidesNetwork
booleannullable

The owner hides the follower and following lists. null when not reported.

The account this one moved to.

dataservercontactAccountmovedToid
stringnullable

Account id on the server that returned it.

dataservercontactAccountmovedTohandle
string

`user@host` of the account this one moved to.

dataservercontactAccountmovedTourl
stringnullable

Profile page of the new account.

dataservercontactAccountmovedTodisplayName
stringnullable

Display name of the new account.

Profile metadata fields, in the owner's order.

dataservercontactAccountfields[]name
string

Label.

dataservercontactAccountfields[]valueHtml
string

Value as sanitised HTML.

dataservercontactAccountfields[]value
string

Value as plain text.

dataservercontactAccountfields[]verifiedAt
stringnullable

When a link in the value was verified with rel=me.

Custom emojis used in the display name or bio.

dataservercontactAccountemojis[]shortcode
string

Shortcode without colons.

dataservercontactAccountemojis[]url
stringnullable

Emoji image.

dataservercontactAccountemojis[]staticUrl
stringnullable

Still frame.

Public badges such as Owner or Moderator.

dataservercontactAccountroles[]id
stringnullable

Role id on `host`.

dataservercontactAccountroles[]name
string

Role name, such as Owner or Moderator.

dataservercontactAccountroles[]color
stringnullable

Badge colour as a hex value, when set.

Posting limits the server reports.

dataserverlimitspostCharacters
integernullable

Maximum characters in a post.

dataserverlimitsmediaPerPost
integernullable

Maximum media attachments in one post.

dataserverlimitspollOptions
integernullable

Maximum options in a poll.

dataserverlimitsimageBytes
integernullable

Maximum image size, in bytes.

dataserverlimitsvideoBytes
integernullable

Maximum video size, in bytes.

dataserverlimitsfeaturedTags
integernullable

Maximum featured hashtags per account.

The server's own counters.

dataserverstatsusers
integernullable

Accounts on the server.

dataserverstatsposts
integernullable

Posts on the server.

dataserverstatsknownDomains
integernullable

Servers this one has seen.

dataserverstatsactiveUsersMonth
integernullable

Accounts active in the last month.

Pages the operator links from the server.

dataserverlinksabout
stringnullable

The server's about page.

dataserverlinksprivacyPolicy
stringnullable

The server's privacy policy.

dataserverlinkstermsOfService
stringnullable

The server's terms of service.

dataserverlinksstatus
stringnullable

The server's status page.

dataserverlinksdonation
stringnullable

The server's donation page.

Features the server reports.

dataserverfeaturestranslation
booleannullable

True when the server offers post translation.

dataserverfeaturessearch
booleannullable

True when the server offers public search.

dataserverfeatureslimitedFederation
booleannullable

True when the server limits federation.

Who may read the public timelines without a login. Null on servers older than Mastodon 4.5.

Access to the live public timeline.

dataserveraccessliveFeedslocal
string

`public` anyone, `authenticated` login required, `disabled` switched off.

one of: public, authenticated, disabled

dataserveraccessliveFeedsremote
string

`public` anyone, `authenticated` login required, `disabled` switched off.

one of: public, authenticated, disabled

Access to hashtag timelines.

dataserveraccesshashtagFeedslocal
string

`public` anyone, `authenticated` login required, `disabled` switched off.

one of: public, authenticated, disabled

dataserveraccesshashtagFeedsremote
string

`public` anyone, `authenticated` login required, `disabled` switched off.

one of: public, authenticated, disabled

Access to trending link lists.

dataserveraccesstrendingLinkFeedslocal
string

`public` anyone, `authenticated` login required, `disabled` switched off.

one of: public, authenticated, disabled

dataserveraccesstrendingLinkFeedsremote
string

`public` anyone, `authenticated` login required, `disabled` switched off.

one of: public, authenticated, disabled

Rules when `include=rules`, else null.

dataserverrules[]id
string

Rule id on `host`.

dataserverrules[]text
string

Rule text.

dataserverrules[]hint
stringnullable

Extra guidance for the rule.

dataserveraboutHtml
stringnullable

Long description when `include=about`, else null.

Metadata describing the request and billing outcome.

metarequestId
string

Unique request identifier for tracing this API call.

min 1 chars

metacreditsCharged
integer

Credits charged for this request.

≥ 0

metaversion
string

Public API version that served the response.

one of: v1

Code example

curl "https://api.socialfetch.dev/v1/mastodon/servers/mastodon.social?include=rules" \
  -H "x-api-key: YOUR_API_KEY"

Responses

The server's public profile.