Community
/api/lemmy/community
Retrieve a public Lemmy community with subscriber and post counts
Scrappa's Lemmy API returns structured JSON from Lemmy, the federated Reddit alternative. Retrieve public community profiles with subscriber and post counts, read community posts with cursor pagination, fetch full post details with the comment tree, read user profiles with posts and comments, and search across posts, communities, users and comments. Scrappa is an independent service and is not affiliated with or endorsed by Lemmy.
Try it now
Use the first endpoint in this API family with a Scrappa API key. Every account includes 500 free monthly credits, so you can validate the response shape before buying credits.
curl -X GET "https://scrappa.co/api/lemmy/community?name=technology" \
-H "Accept: application/json" \
-H "X-API-KEY: YOUR_API_KEY"
{
"success": true,
"data": {
"community": {
"id": 2478,
"name": "technology",
"title": "Technology",
"description": "A community for technology news and discussion.",
"actor_id": "https://lemmy.world/c/technology",
"subscribers": 88756,
"posts": 22225,
"comments": 970289,
"users_active_day": 4727,
"users_active_week": 9031,
"users_active_month": 14620,
"users_active_half_year": 29834,
"subscribers_local": 41267,
"nsfw": false,
"published": "2019-04-25T12:00:00.000000Z"
}
},
"meta": { "endpoint_family": "community_detail", "billable": true }
}
Structured data for real applications. Here are some ideas.
Track public Lemmy communities with subscriber counts, post counts and active user metrics for fediverse research.
Read community posts with scores, upvotes and comment counts to monitor topics and discussions in real time.
Fetch full post details with the comment tree to analyze public reaction and discussion threads.
Read public user profiles with post and comment counts, bios and avatars for influencer and community research.
Lemmy scraper API
The Lemmy API is built for fediverse analytics, community monitoring, and content research. Each endpoint returns structured JSON from public Lemmy data: community profiles with subscriber and post counts, community posts with cursor pagination, post details with the comment tree, user profiles with posts and comments, and search across the fediverse.
Retrieve public community profiles with subscriber counts, post counts and active user metrics.
Read community posts with scores, upvotes, downvotes and comment counts.
Fetch full post details with the comment tree rebuilt from the dotted path.
Read public user profiles with post and comment counts, bios and avatars.
Search across posts, communities, users and comments in one call.
All data is public; no login or account credentials required.
Pass a community name to the community endpoint to get the public profile with subscriber count, post count, comment count and active user metrics.
Open Lemmy Community API docsPass a community name and sort order to the posts endpoint to read a page of public posts with scores, upvotes and comment counts already parsed.
Open Lemmy Community Posts API docsPass a post id to the post endpoint to get the full post detail with the comment tree rebuilt from the dotted path, including content, score and child count per comment.
Open Lemmy Post Detail API docsPass a username to the user endpoint to get the public profile with post count, comment count, bio and avatar, plus recent posts and comments.
Open Lemmy User Profile API docsPass a query and type filter to the search endpoint to read posts, communities, users and comments in one envelope.
Open Lemmy Search API docsEverything you need in one API.
/api/lemmy/community
Retrieve a public Lemmy community with subscriber and post counts
/api/lemmy/posts
Retrieve posts from a Lemmy community with cursor pagination
/api/lemmy/post
Retrieve a Lemmy post with its comment tree
/api/lemmy/user
Retrieve a public Lemmy user profile with posts and comments
/api/lemmy/search
Search Lemmy posts, communities, users and comments
See how Scrappa compares to the official API.
| Feature | Scrappa | ScrapingBee / ScraperAPI |
|---|---|---|
| Lemmy data as JSON | Build your own parser | |
| Comment tree rebuilt | From dotted path | Parse it yourself |
| Cursor pagination | next_page cursor | Handle it yourself |
| Cross-type search | One call | Separate queries |
| Price per 1k requests | From $0.20 | Varies by credits per request |
| Unified API key | Yes (80+ APIs) | Scraping only |
| Free tier | 500 credits/month | Trial credits |
No. Scrappa is an independent service and is not affiliated with or endorsed by Lemmy. The Lemmy API returns structured JSON from public Lemmy data through a Scrappa API key.
Every Scrappa account includes 500 free credits each month. After that, each request costs one credit, which works out to $0.20 to $0.30 per 1,000 requests depending on the credit pack or plan. Failed requests are never charged.
Yes. Pass the instance query parameter with any public Lemmy hostname (for example lemmy.world, lemmy.ml or beehaw.org). The default is lemmy.world. Only public hostnames are accepted; IP addresses and private ranges are blocked.
The post endpoint returns the comment tree rebuilt from the dotted path. Lemmy sends no parent id, so the tree is derived from the path field. The comments_has_more field indicates when more comments exist beyond the requested limit.