Lemmy scraper API
The InsightSocial Lemmy API has 14 endpoints, from 20 credits a call. A community call costs 20 credits, about $0.02 on Pro, and your first 10 calls up to 100 credits each are free.
Lemmy as JSON on any instance: communities with their counts and moderators, posts and comment threads, users, search, the moderation log and an instance's federation table.
14 endpoints · from 20 credits a call · 10 free calls up to 100 credits each · no credit card
curl "https://api.insightsocial.app/v1/lemmy/community?instance=lemmy.world&name=technology" \-H "x-api-key: $INSIGHTSOCIAL_API_KEY"
What Lemmy data can you get?
Public Lemmy data only, in the same JSON envelope as every other platform. Every Lemmy endpoint is beta: inside data it returns Lemmy's own structure under our naming rules (snake_case keys, string ids, ISO times where Lemmy gives a timestamp), not the shared profile and post schema, and fields may change.
Communities
One community with subscriber, post and comment counts, active users and moderators, and the communities on an instance, local or federated.
Posts and comments
Posts across an instance or in one community in the order you ask, one post with its cross-posts, its comments or the replies to one comment, and the latest comments.
Users and search
A user with counts and moderator roles, their posts and comments, and search over posts, comments, communities, users or URLs.
Instances and moderation
An instance's version, counts and registration settings, the instances it federates with, and its moderation log.
What people build with the Lemmy API
Community research
Compare the same topic's communities across instances by subscribers, posts and daily active users.
Cross-platform listening
Search Lemmy alongside Reddit for the same keyword and keep both in one table with the same envelope.
Moderation studies
Read an instance's moderation log by kind or community, and its federation table, to see how a server is run.
Lemmy API endpoints
All 14 Lemmy endpoints and their price in credits. Every one has a fixed price.
| Endpoint | Credits | What it returns |
|---|---|---|
| /comment | 20 | Get one Lemmy comment with its post, community, creator and moderation flags. |
| /comments | 20 | List the latest Lemmy comments across an instance or community. |
| /communities | 20 | List Lemmy communities, local or federated, in the order asked for. |
| /community | 20 | Get one Lemmy community with its counts, active users and moderators. |
| /instance | 20 | Get Lemmy instance version, counts, registration and federation settings. |
| /instances | 40 | List Lemmy federated instances with software, version and delivery status. |
| /modlog | 20 | List the Lemmy moderation log by kind, community or moderator. |
| /post | 20 | Get one Lemmy post with its community, cross-posts and moderators. |
| /post/comments | 20 | List comments on one Lemmy post, or the replies to one comment. |
| /posts | 20 | List Lemmy posts, optionally for one community, in the order asked for. |
| /search | 20 | Search Lemmy posts, comments, communities, users or exact URLs; All and Comments can take longer. |
| /user | 20 | Get one Lemmy user with counts, moderator roles and latest activity. |
| /user/comments | 20 | List Lemmy comments by one user, in the order asked for. |
| /user/posts | 20 | List Lemmy posts by one user, in the order asked for. |
Parameters, response fields and examples for each endpoint are in the Lemmy API reference.
InsightSocial vs the official Lemmy API
Every Lemmy instance serves its own free HTTP API, and public data can be read without an account. If you only read Lemmy, it is a good place to start.
| InsightSocial API | Official Lemmy API | |
|---|---|---|
| Setup | Sign in and copy a key | None for public reads |
| Instances | Any instance through one base URL | One base URL per instance |
| Other platforms | Reddit, Mastodon and 58 more on the same key | Lemmy only |
| Cost per call | 20 credits | Free; each instance sets its own limits |
The official API is the right tool for posting, messaging or managing accounts you own. This one is read-only public data.
How much does the Lemmy API cost?
Lemmy calls start at 20 credits. Every endpoint's price is in the table above and in the free GET /v1/endpoints catalogue, so you know the cost before you call. Pro's 10,000 monthly credits cover about 500 community lookups at 20 credits each.
Failed calls are free
A call that errors or finds nothing costs 0 credits.
Repeats and retries
A repeat call is charged again: the full price when it fetches new data, 2 credits when the answer comes from the shared cache. Add fresh=1 to force a new read. Only a retry with the same Idempotency-Key is free.
One balance
API calls and Chrome extension exports share the same credits. The free plan includes 500 a month.
Not writing code?
Connect InsightSocial to Claude or ChatGPT and ask for Lemmy data in plain English. Same account, same credits.
Lemmy API: frequently asked questions
You can, for free. This API is for when Lemmy is one source among several: the same key, envelope and credit balance cover Reddit, Mastodon and the rest, and you switch instances with one parameter.
Any public one. Every endpoint takes an instance such as lemmy.world. A community on another instance can be named as technology@lemmy.world, and ids and counts belong to the instance you ask.
/v1/lemmy/post/comments returns the comments on a post, or the replies to one comment, in the order you ask for.
They return Lemmy's own record shapes under our naming rules (snake_case keys, string ids, ISO times) rather than the shared profile and post entities, so fields may change. Every Lemmy endpoint is 20 credits a call, except the federated instances list, which is 40. Calls that fail or find nothing are free.
No. There is no Lemmy app, OAuth flow or review. One API key in the x-api-key header works for Lemmy and the other 60 platforms.
Yes. Your first 10 calls priced at 100 credits or less are free, and the free plan includes 500 credits every month. No credit card is needed to get a key.
60 requests a minute and 10 requests in flight at once, per API key. Going over either returns a 429 with a Retry-After header, and a rejected request costs nothing. There is no daily quota: past those two limits, your credit balance is what bounds volume.
List endpoints return rows in data.items and a pagination object with next_cursor and has_more. Send next_cursor back unchanged as the cursor parameter for the next page, and stop when has_more is false. A handful of endpoints page with their own parameter instead; their reference pages name it.
No. A call that errors or finds nothing costs 0 credits. A live fetch costs the endpoint's price, or for a metered endpoint what it actually read. A repeat call is charged again: the full price when it fetches new data, 2 credits when the answer comes from the shared cache. Add fresh=1 to force a new read. Only a retry with the same Idempotency-Key is free.
A call fetches live unless a recent copy is in the shared cache, and every response says which with the cached field; a cached answer costs 2 credits. Add fresh=1 or send Cache-Control: no-cache to skip the cache; that call is charged at the normal price.
Collecting publicly available data is generally treated differently from accessing private data, but the answer depends on your jurisdiction, Lemmy's terms and what you do with personal data afterwards. The API reads public data only. Talk to a lawyer for anything commercial.
Lemmy API guides
The same key works for 60 more platforms
- TikTok scraper API
- LinkedIn scraper API
- Twitter/X scraper API
- YouTube scraper API
- Reddit scraper API
- Pinterest scraper API
- Bluesky scraper API
- Truth Social scraper API
- Snapchat scraper API
- Telegram scraper API
- Twitch scraper API
- Kick scraper API
- Rumble scraper API
- Kwai scraper API
- Douyin scraper API
- Xiaohongshu (RedNote) scraper API
- Quora scraper API
- TikTok Shop scraper API
- Weibo scraper API
- Zhihu scraper API
- Substack scraper API
- Nextdoor scraper API
- Amazon scraper API
- App Store scraper API
- Apple Music scraper API
- Behance scraper API
- Dailymotion scraper API
- Deezer scraper API
- DEV Community scraper API
- Discord scraper API
- Dribbble scraper API
- Fandom scraper API
- Flickr scraper API
- GitHub scraper API
- Google Ads Transparency scraper API
- Google News scraper API
- Google Trends scraper API
- Gumroad scraper API
- Hacker News scraper API
- Hugging Face scraper API
- Ko-fi scraper API
- Letterboxd scraper API
- Linktree scraper API
- Lnk.Bio scraper API
- Mastodon scraper API
- Medium scraper API
- MyAnimeList scraper API
- npm scraper API
- Polymarket scraper API
- Product Hunt scraper API
- Shopify scraper API
- SoundCloud scraper API
- Spotify scraper API
- Stack Overflow scraper API
- Stan Store scraper API
- Steam scraper API
- Vimeo scraper API
- Wikipedia scraper API
- Yahoo Finance scraper API
- Yelp scraper API