Lemmy REST API
The Lemmy REST API provides programmatic access to all core platform features including creating and managing posts, comments, communities, and user accounts. Developers can use the API to vote on content, follow communities, search across the federated network, moderate communities, send private messages, manage multi-communities, and administer instances. Authentication uses JWT bearer tokens. The API is versioned at /api/v4/ and is available on any public Lemmy instance, with lemmy.world being the largest instance. Rate limits are configurable per instance; common defaults include 50 comments per 10 minutes, 100 search requests per 10 minutes, and 5 registrations per day.
Documentation
Documentation
https://join-lemmy.org/docs/
Authentication
https://join-lemmy.org/docs/client_development/authentication.html
RateLimits
https://raw.githubusercontent.com/api-evangelist/lemmy/refs/heads/main/rate-limits/lemmy-rate-limits.yml
Specifications
SDKs
GitHubRepository
https://github.com/LemmyNet/lemmy
GitHubRepository
https://github.com/LemmyNet/lemmy-js-client
Examples
Example
https://raw.githubusercontent.com/api-evangelist/lemmy/refs/heads/main/examples/login.json
Example
https://raw.githubusercontent.com/api-evangelist/lemmy/refs/heads/main/examples/create-post.json
Example
https://raw.githubusercontent.com/api-evangelist/lemmy/refs/heads/main/examples/search.json
Schemas & Data
JSONSchema
https://raw.githubusercontent.com/api-evangelist/lemmy/refs/heads/main/json-schema/post.json
JSONSchema
https://raw.githubusercontent.com/api-evangelist/lemmy/refs/heads/main/json-schema/comment.json
JSONSchema
https://raw.githubusercontent.com/api-evangelist/lemmy/refs/heads/main/json-schema/community.json
Other Resources
JSONLDContext
https://raw.githubusercontent.com/api-evangelist/lemmy/refs/heads/main/json-ld/lemmy-context.jsonld
Vocabulary
https://raw.githubusercontent.com/api-evangelist/lemmy/refs/heads/main/vocabulary/lemmy-vocabulary.yml
Plans
https://raw.githubusercontent.com/api-evangelist/lemmy/refs/heads/main/plans/lemmy-plans-pricing.yml
FinOps
https://raw.githubusercontent.com/api-evangelist/lemmy/refs/heads/main/finops/lemmy-finops.yml