Lemmy Community API
One community with its counts, moderators and languages, by name or numeric id.
GET /v1/lemmy/community1 credit Failed requests are free
About this endpoint
GET /v1/lemmy/community?instance=lemmy.world&name=technology returns data.community with id, name, title, handle, host, icon, banner, description, publishedAt, updatedAt, subscriberCount, localSubscriberCount, postCount, commentCount, activeUsers, postingRestrictedToMods, visibility, moderators and languageIds.
Ask by name or by numeric id, not both. A name can be local (technology) or remote (technology@lemmy.world); a remote lookup through another instance is the network's own resolution, and its counts may be the copy that instance holds. languageIds are numeric because the instance's language table is returned by the instance route. A missing community returns lookupStatus: not_found.
Lemmy Community API FAQ
Should I ask by name or id?
Give exactly one of name or id. An id is only meaningful on the instance that issued it, so keep the instance beside it. A name is easier to carry between instances.
How do I resolve a community on another instance?
Use name@host, for example technology@lemmy.world. The instance you ask resolves the remote community, and the counts are the ones it holds for that community.
What are languageIds?
Numeric discussion language ids. The instance route returns the instance's language table, which maps each id to a code and name.
How many credits does a community lookup cost?
Pricing is documented on the operation in the API registry (shown on this page). Confirm on every response with meta.creditsCharged: that field is the billing source of truth.