Lemmy Posts & Communities Scraper avatar

Lemmy Posts & Communities Scraper

Pricing

from $2.00 / 1,000 results

Go to Apify Store
Lemmy Posts & Communities Scraper

Lemmy Posts & Communities Scraper

Scrape Lemmy instances for posts, comments, communities. Works with any instance. Sort by Hot, New, Top. No login needed.

Pricing

from $2.00 / 1,000 results

Rating

0.0

(0)

Developer

deusex machine

deusex machine

Maintained by Community

Actor stats

0

Bookmarked

2

Total users

1

Monthly active users

4 days ago

Last modified

Categories

Share

Scrapes posts, comments, and community data from any Lemmy instance using its public API. Works with lemmy.world, lemmy.ml, beehaw.org, or any other Lemmy server.

What data does it extract?

FieldDescription
typeItem type: post, comment, or community
idLemmy item ID
titlePost title or community title
bodyPost/comment body text or community description
authorAuthor username
authorDisplayNameAuthor display name
communityCommunity short name
communityTitleCommunity full title
scoreNet score (upvotes minus downvotes)
upvotesNumber of upvotes
downvotesNumber of downvotes
commentCountNumber of comments (posts) or child comments (comments)
urlExternal link (posts) or community actor ID
postUrlActivityPub permalink
publishedPublication date
thumbnailUrlThumbnail image URL
nsfwNSFW flag
subscribersSubscriber count (communities only)
postsCountTotal posts (communities only)
activeUsersMonthly active users (communities only)
instanceLemmy instance hostname
scrapedAtISO 8601 scrape timestamp

Use cases

  • Fediverse monitoring -- Track discussions and trending topics across Lemmy instances.
  • Community analytics -- Compare subscriber counts, activity, and growth across communities.
  • Content research -- Collect posts on specific topics for analysis or content ideas.
  • Reddit alternative tracking -- Monitor the Lemmy ecosystem as users migrate from Reddit.
  • Sentiment analysis -- Gather comments from specific communities to gauge public opinion.

How to use

Hot posts from the technology community on lemmy.world:

{
"instance": "lemmy.world",
"mode": "posts",
"communities": ["technology"],
"sort": "Hot",
"maxResults": 100
}

Search across all communities:

{
"instance": "lemmy.world",
"mode": "search",
"searchQuery": "rust programming",
"maxResults": 50
}

List the most active communities:

{
"instance": "lemmy.ml",
"mode": "communities",
"sort": "Top",
"maxResults": 50
}

Input parameters

ParameterTypeDefaultDescription
instancestringlemmy.worldLemmy instance hostname (without https://)
modestringpostsWhat to scrape: posts, comments, communities, search
communitiesstring[][]Filter to specific community names. Empty = all
searchQuerystring""Search query (required for search mode)
sortstringHotSort order: Hot, New, Top, Old, MostComments
maxResultsinteger50Max items to return (1-500)

Output example

{
"type": "post",
"id": 12847561,
"title": "Firefox 130 released with per-site cookie controls",
"body": null,
"author": "techfan42",
"authorDisplayName": "TechFan",
"community": "technology",
"communityTitle": "Technology",
"score": 487,
"upvotes": 512,
"downvotes": 25,
"commentCount": 83,
"url": "https://blog.mozilla.org/en/firefox-130",
"postUrl": "https://lemmy.world/post/12847561",
"published": "2026-03-27T18:45:00.000Z",
"thumbnailUrl": "https://lemmy.world/pictrs/image/abc123.jpg",
"nsfw": false,
"instance": "lemmy.world",
"scrapedAt": "2026-03-28T14:00:00.000Z"
}

Performance & cost

  • Pure HTTP requests, no browser. Fetches up to 50 items per API page.
  • A typical run of 100 posts finishes in under 5 seconds.
  • Costs well under $0.01 per run on the Apify platform.

FAQ

Can I scrape any Lemmy instance? Yes, as long as the instance has its API publicly accessible. Most Lemmy instances do by default.

What's the difference between posts mode and search mode? posts mode lists posts from the instance feed (optionally filtered by community). search mode does full-text search and returns a mix of posts, comments, and communities that match your query.

Do I need an account on the Lemmy instance? No. The actor uses the public API endpoints that don't require authentication.

Why did I get fewer results than maxResults? The instance may simply have fewer matching items than you requested. Small or new communities often have limited content.