Lemmy
Lemmy API reference: 14 endpoints for communities, posts, comments, users and search. Per-endpoint credit prices and cURL examples.
Lemmy communities, posts, comments, users, search, moderation logs and federated instances, on any instance. Pass the instance, e.g. lemmy.world.
Base path: /v1/lemmy/...
Quickstart
curl "https://api.insightsocial.app/v1/lemmy/comment?instance=lemmy.world&id=1000" \
-H "x-api-key: $INSIGHTSOCIAL_API_KEY"Endpoints
Every endpoint here has a fixed price.
Every endpoint here is beta: it returns the platform's own structure under our naming rules (snake_case keys, string ids, ISO times where the platform gives a timestamp), not a schema-2 entity, and its fields may change. See Beta endpoints.
| Endpoint | Credits | What it returns | Key parameters |
|---|---|---|---|
/comment | 20 | Get one Lemmy comment with its post, community, creator and moderation flags. Beta. | instance, id |
/comments | 20 | List the latest Lemmy comments across an instance or community. Beta. | instance |
/communities | 20 | List Lemmy communities, local or federated, in the order asked for. Beta. | instance |
/community | 20 | Get one Lemmy community with its counts, active users and moderators. Beta. | instance |
/instance | 20 | Get Lemmy instance version, counts, registration and federation settings. Beta. | instance |
/instances | 40 | List Lemmy federated instances with software, version and delivery status. Beta. | source |
/modlog | 20 | List the Lemmy moderation log by kind, community or moderator. Beta. | instance |
/post | 20 | Get one Lemmy post with its community, cross-posts and moderators. Beta. | instance |
/post/comments | 20 | List comments on one Lemmy post, or the replies to one comment. Beta. | instance |
/posts | 20 | List Lemmy posts, optionally for one community, in the order asked for. Beta. | instance |
/search | 20 | Search Lemmy posts, comments, communities, users or exact URLs; All and Comments can take longer. Beta. | instance, query |
/user | 20 | Get one Lemmy user with counts, moderator roles and latest activity. Beta. | instance |
/user/comments | 20 | List Lemmy comments by one user, in the order asked for. Beta. | instance, username |
/user/posts | 20 | List Lemmy posts by one user, in the order asked for. Beta. | instance, username |