Lemmy

Get Lemmy instance

Get Lemmy instance version, counts, registration and federation settings.

GET/v1/lemmy/instance
1credit
x-api-keystringheader

API key (`sfk_...`)

Parameters
2
instancestringrequiredquery

The Lemmy instance, e.g. `lemmy.world`. A URL on the instance is also accepted. Ids and counts belong to this instance.

includearrayoptionalquery

Extra heavy parts to return: `emoji`, `blockedUrls`, `taglines`, comma-separated. Default: none; the site object can be megabytes of custom emoji.

any of: emoji, blockedUrls, taglines (comma-separated)

Response fields
113

Endpoint-specific response payload.

datalookupStatus
string

`found`, `not_found` (the entity is missing, or the host name does not resolve), `private` (the instance does not allow public lists) or `not_compatible` (the host is not a Lemmy instance, or its version does not serve this operation). See `reason`.

one of: found, not_found, private, not_compatible

datainstance
string

The instance that was asked.

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

datareasoncode
string

Machine-readable reason.

one of: instance_private, not_a_lemmy_instance, not_available, deleted, host_not_found

datareasonmessage
string

Plain-language explanation.

The site object when `lookupStatus` is `found`.

datasitename
string

Instance name.

datasitedescription
stringnullable

Short description.

datasitesidebar
stringnullable

Sidebar text as Markdown.

datasiteicon
stringnullable

Icon URL.

datasitebanner
stringnullable

Banner URL.

datasiteactorId
stringnullable

Canonical ActivityPub id.

datasitepublishedAt
stringnullable

When the instance was created.

datasiteupdatedAt
stringnullable

When its settings last changed.

datasitehost
string

The instance host.

Software and version.

datasitesoftwarename
string

`lemmy`.

datasitesoftwareversion
stringnullable

Version the instance reports.

How the instance handles registration.

datasiteregistrationmode
stringnullable

`Open`, `RequireApplication` or `Closed`.

datasiteregistrationrequiresEmail
booleannullable

Whether an email verification is required.

datasiteregistrationquestion
stringnullable

The application question, when registration requires one.

datasiteregistrationcaptcha
booleannullable

Whether registration asks for a verification challenge.

datasiteisPrivate
booleannullable

Whether the instance is private, so it does not allow public lists.

datasitefederationEnabled
booleannullable

Whether federation is on.

datasitedownvotesEnabled
booleannullable

Whether downvotes are enabled.

datasitensfwEnabled
booleannullable

Whether NSFW content is allowed.

datasitecommunityCreationAdminOnly
booleannullable

Whether only administrators may create communities.

datasitehidesModeratorNames
booleannullable

Whether the modlog hides moderator names.

datasitelegalInformation
stringnullable

Legal information.

datasitedefaultSort
stringnullable

The instance's default sort.

datasitedefaultListing
stringnullable

The instance's default post listing.

The request limits the instance publishes.

The instance's own search limit.

datasitelimitssearchrequests
integernullable

Searches allowed per window.

datasitelimitssearchwindowSeconds
integernullable

Window length in seconds.

Counts the instance publishes.

datasitestatsusers
integernullable

Registered users.

datasitestatsposts
integernullable

Posts.

datasitestatscomments
integernullable

Comments.

datasitestatscommunities
integernullable

Communities.

datasitestatsactiveDay
integernullable

Users active today.

datasitestatsactiveWeek
integernullable

Users active this week.

datasitestatsactiveMonth
integernullable

Users active this month.

datasitestatsactiveHalfYear
integernullable

Users active in the last six months.

Instance administrators with their counts.

datasiteadmins[]id
integer

User id on this instance.

datasiteadmins[]name
string

Username without the host.

datasiteadmins[]displayName
stringnullable

Display name.

datasiteadmins[]bio
stringnullable

Profile text as Markdown.

datasiteadmins[]avatar
stringnullable

Avatar URL.

datasiteadmins[]banner
stringnullable

Banner URL.

datasiteadmins[]actorId
stringnullable

Canonical ActivityPub id.

datasiteadmins[]host
stringnullable

Host the account lives on.

datasiteadmins[]handle
stringnullable

`user@host`.

datasiteadmins[]publishedAt
stringnullable

When the account was created.

datasiteadmins[]updatedAt
stringnullable

When the profile last changed.

datasiteadmins[]banned
booleannullable

Whether the account is banned.

datasiteadmins[]banExpiresAt
stringnullable

When the ban ends.

datasiteadmins[]deleted
booleannullable

Whether the account was deleted.

datasiteadmins[]isBot
booleannullable

Whether the account is a bot.

datasiteadmins[]isLocal
booleannullable

Whether the account lives on the instance asked.

datasiteadmins[]matrixUserId
stringnullable

Matrix id the user chose to publish.

datasiteadmins[]postCount
integernullable

Posts the user has made.

datasiteadmins[]commentCount
integernullable

Comments the user has made.

datasiteadmins[]postScore
integernullable

Combined score of the user's posts, when the instance reports it.

datasiteadmins[]commentScore
integernullable

Combined score of the user's comments, when the instance reports it.

datasiteadmins[]isAdmin
booleannullable

Whether the user is an instance administrator.

Communities the user moderates; null when the answer did not carry them.

datasiteadmins[]moderates[]id
integer

Community id on this instance.

datasiteadmins[]moderates[]name
string

Community name without the host.

datasiteadmins[]moderates[]title
stringnullable

Display title.

datasiteadmins[]moderates[]actorId
stringnullable

Canonical ActivityPub id.

datasiteadmins[]moderates[]host
stringnullable

Host the community lives on.

datasiteadmins[]moderates[]handle
stringnullable

`name@host`.

datasiteadmins[]moderates[]icon
stringnullable

Community icon URL.

datasiteadmins[]moderates[]nsfw
booleannullable

Whether the community is NSFW.

datasiteadmins[]moderates[]isLocal
booleannullable

Whether the community lives on the instance asked.

Every language the instance knows.

datasitelanguages[]id
integer

Language id used by `languageId`.

datasitelanguages[]code
string

Two- or three-letter code, e.g. `en`.

datasitelanguages[]name
string

English name.

The languages the instance discusses in.

datasitediscussionLanguages[]id
integer

Language id used by `languageId`.

datasitediscussionLanguages[]code
string

Two- or three-letter code, e.g. `en`.

datasitediscussionLanguages[]name
string

English name.

Taglines; null unless `include=taglines` was asked for.

datasitetaglines[]content
string

Tagline text.

Custom emoji; null unless `include=emoji` was asked for.

datasitecustomEmojis[]shortcode
string

Shortcode without colons.

datasitecustomEmojis[]imageUrl
string

Emoji image URL.

datasitecustomEmojis[]altText
stringnullable

Alt text.

datasitecustomEmojis[]category
stringnullable

Category the instance files it under; null when empty.

Search keywords; null when the instance does not publish them.

datasitecustomEmojis[]keywords[]
stringoptional

URLs the instance blocks from its links; null unless `include=blockedUrls` was asked for.

datasiteblockedUrls[]
stringoptional

The host's NodeInfo document; null when it is not available, in which case `site` is still returned.

The software the host reports.

datanodeinfosoftwarename
stringnullable

Software name, e.g. `lemmy`.

datanodeinfosoftwareversion
stringnullable

Software version.

Usage counts.

datanodeinfousageusersTotal
integernullable

Registered users.

datanodeinfousageactiveHalfYear
integernullable

Active users in six months.

datanodeinfousageactiveMonth
integernullable

Active users in a month.

datanodeinfousagelocalPosts
integernullable

Local posts.

datanodeinfousagelocalComments
integernullable

Local comments.

datanodeinfoopenRegistrations
booleannullable

Whether the host reports open registrations.

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/lemmy/instance?instance=lemmy.world" \
  -H "x-api-key: YOUR_API_KEY"

Responses

Instance.