Lemmy API

Lemmy API for Fediverse Communities, Posts, Comments, and User Profiles

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.

500 free credits
No card needed
From $0.20 / 1k
Pay as you go
Structured JSON
Ready for apps
API key access
Test in minutes
5
Endpoints
Lemmy
Source coverage
$0.20
Per 1k requests

Try it now

Make one request. Inspect structured JSON.

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.

Request preview
Request
curl -X GET "https://scrappa.co/api/lemmy/community?name=technology" \
  -H "Accept: application/json" \
  -H "X-API-KEY: YOUR_API_KEY"
JSON response
{
  "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 }
}

What you can build

Structured data for real applications. Here are some ideas.

Community Analytics

Track public Lemmy communities with subscriber counts, post counts and active user metrics for fediverse research.

Content Monitoring

Read community posts with scores, upvotes and comment counts to monitor topics and discussions in real time.

Comment Analysis

Fetch full post details with the comment tree to analyze public reaction and discussion threads.

User Research

Read public user profiles with post and comment counts, bios and avatars for influencer and community research.

Lemmy scraper API

Lemmy API for fediverse communities, posts, and user profiles

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.

Choose the right Lemmy API endpoint

Use Community for fediverse research

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 docs

Use Community Posts for content monitoring

Pass 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 docs

Use Post Detail for comment analysis

Pass 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 docs

Use User Profile for community research

Pass 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 docs

Use Search for cross-type discovery

Pass a query and type filter to the search endpoint to read posts, communities, users and comments in one envelope.

Open Lemmy Search API docs

Available endpoints

Everything you need in one API.

Scrappa vs ScrapingBee / ScraperAPI

See how Scrappa compares to the official API.

Lemmy data as JSON
Scrappa:
ScrapingBee / ScraperAPI: Build your own parser
Comment tree rebuilt
Scrappa: From dotted path
ScrapingBee / ScraperAPI: Parse it yourself
Cursor pagination
Scrappa: next_page cursor
ScrapingBee / ScraperAPI: Handle it yourself
Cross-type search
Scrappa: One call
ScrapingBee / ScraperAPI: Separate queries
Price per 1k requests
Scrappa: From $0.20
ScrapingBee / ScraperAPI: Varies by credits per request
Unified API key
Scrappa: Yes (80+ APIs)
ScrapingBee / ScraperAPI: Scraping only
Free tier
Scrappa: 500 credits/month
ScrapingBee / ScraperAPI: Trial credits

Key features

Public Lemmy community profiles with subscriber counts, post counts and active user metrics
Community posts with scores, upvotes, downvotes and comment counts
Post details with the comment tree rebuilt from the dotted path
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

Frequently asked questions

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.

Start using the Lemmy API

Sign up and get 500 free credits. No credit card required.