RRadar
Media, text & files

Lemmy Scraper

Scrape Lemmy posts, comments, community stats and keyword search from lemmy.world, lemmy.ml and any other instance. No API key, no login, no proxy: official open Lemmy API, so it does not break. Only-new mode for keyword alerts. $0.25 per 1000 results.

Example request

curl -X POST https://radarbg.com/v1/lemmy-posts-comments-scraper \
  -H "X-API-Key: YOUR_KEY" -H "Content-Type: application/json" \
  -d '{"instances": ["lemmy.world"], "communities": ["technology"], "sort": "New", "includeComments": false}'

Answer: {"ok": true, "count": N, "items": [...], "usage": {...}}. Failed calls are not counted.

Inputs

FieldTypeDescription
instancesarrayLemmy servers to read, as domains (lemmy.world, lemmy.ml, sh.itjust.works, feddit.org). Search and plain community names run on every instance listed.
communitiesarrayCommunities to scrape: a name (technology), name@instance (technology@lemmy.world) or a full community URL (https://lemmy.world/c/technology).
searchQueriesarrayKeywords to search in posts on every listed instance (brand names, products, topics). Combine with Only new results for a keyword monitor.
postUrlsarraySingle Lemmy post URLs (https://lemmy.world/post/12345). The post is saved, plus its comments when Include comments is on.
sortstringOrder of posts for communities and searches. Use New with Only new results for monitoring.
includeCommentsbooleanAlso save comments for every post. Each comment is one result row.
maxCommentsPerPostintegerUpper limit of comments saved for each post.
listCommunitiesbooleanOutput community rows (name, title, subscribers, posts, comments, active users per month, NSFW, URL). Lists the most active communities of each instance, or the stats of the communities you entered.
maxItemsintegerHard limit on rows saved in total (posts + comments + communities), and the most you pay for.
onlyNewbooleanMonitoring mode: return only posts and comments not returned in earlier runs with the same Monitor ID.
monitorIdstringName of the memory used by monitoring mode. Use a different ID for each set of searches.

Price

Included in every plan: 100 calls a month free, then from €9 a month for 3,000 calls across all APIs.

Related APIs

Audio TranscriptionBulk Image DownloaderImage to Text OCRKeyword TrendsMastodon ScraperVideo Frame Extractor