> **For coding agents and LLMs:** This is one Social Fetch marketing page (markdown export). For API orientation start with [`/llms.txt`](https://www.socialfetch.dev/llms.txt); for auth and crawl rules use [`/agents.txt`](https://www.socialfetch.dev/agents.txt); for every operation use [`/llms-endpoints.txt`](https://www.socialfetch.dev/llms-endpoints.txt).

## This page

- **On-site (HTML):** <https://www.socialfetch.dev/answers/is-there-a-lemmy-api-for-communities-posts-and-comments>
- **Markdown (.mdx) URL:** <https://www.socialfetch.dev/answers/is-there-a-lemmy-api-for-communities-posts-and-comments.mdx>

---

# Is there a Lemmy API for communities, posts and comments?

Yes. Social Fetch has fourteen Lemmy routes under /v1/lemmy: instance, federated instances, community lists, one community, post lists, one post, post comments, latest comments, one comment, a user, that user's posts and comments, search, and the public moderation log. Authenticate with your Social Fetch API key in x-api-key.

Source: [Lemmy data API](https://www.socialfetch.dev/platforms/lemmy)

## Related questions

- [What happens with a private instance or a host that is not Lemmy?](https://www.socialfetch.dev/answers/what-happens-with-a-private-instance-or-a-host-that-is-not-lemmy)
- [How much does the Lemmy API cost?](https://www.socialfetch.dev/answers/how-much-does-the-lemmy-api-cost)
- [Can I use the Lemmy routes from agents or MCP?](https://www.socialfetch.dev/answers/can-i-use-the-lemmy-routes-from-agents-or-mcp)
