InsightSocial API

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
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.

EndpointCreditsWhat it returnsKey parameters
/comment20Get one Lemmy comment with its post, community, creator and moderation flags. Beta.instance, id
/comments20List the latest Lemmy comments across an instance or community. Beta.instance
/communities20List Lemmy communities, local or federated, in the order asked for. Beta.instance
/community20Get one Lemmy community with its counts, active users and moderators. Beta.instance
/instance20Get Lemmy instance version, counts, registration and federation settings. Beta.instance
/instances40List Lemmy federated instances with software, version and delivery status. Beta.source
/modlog20List the Lemmy moderation log by kind, community or moderator. Beta.instance
/post20Get one Lemmy post with its community, cross-posts and moderators. Beta.instance
/post/comments20List comments on one Lemmy post, or the replies to one comment. Beta.instance
/posts20List Lemmy posts, optionally for one community, in the order asked for. Beta.instance
/search20Search Lemmy posts, comments, communities, users or exact URLs; All and Comments can take longer. Beta.instance, query
/user20Get one Lemmy user with counts, moderator roles and latest activity. Beta.instance
/user/comments20List Lemmy comments by one user, in the order asked for. Beta.instance, username
/user/posts20List Lemmy posts by one user, in the order asked for. Beta.instance, username

On this page