Lemmy Comments API

Search the comments on a Lemmy server by words and get each as a flat row: text, score, votes, the post it answers, its community, the public username and time. Find mentions of a brand or topic in Lemmy discussions.

$0.50 per 1,000 records

You pay only for the records you get. Zero records cost zero. 10,000 free records of this API to start (5,000 at the base price of $1 per 1,000), no card.

Try it
Ready-made, maintained by usPosts, 11 fieldsv1.0

Data from lemmy.world/api/v3/search

Get this data

Try it here with a few records, download the sample, fill a Google Sheet, or call it from your own code.

Try it

Search
Words to find in comments.
Example: linux
Instanceoptional
Lemmy server to ask, such as lemmy.world.
Example: lemmy.world
Maximum resultsoptional
Most comments to return.
Example: 200

Run it on this page, or call it from your code with the endpoint in the developer section. A free key covers 10,000 records of this API, no card. Create a free key

For developers: the API and MCPThe endpoint, code in curl, JavaScript and Python, every input, and files for your tools
Endpoint
POSThttps://pullrow.dev/v1/apis/lemmy-comments/run
  • Small runs answer in the same request; longer ones answer 202 with a run to poll.
  • fields returns only the fields you name. The examples send the ones picked on this page.
  • Idempotency-Key is optional. A retry with it is never charged twice.
  • You pay for records returned. Zero records cost zero.

Every run option, explained

Calling it needs a key
10,000 free records of this API to start. No card.
curl
curl -X POST "https://pullrow.dev/v1/apis/lemmy-comments/run" \
  -H "Authorization: Bearer $PULLROW_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"input":{"search":"linux"},"max_items":50}'

Inputs

Send them as input in the request body. Leave one out to use its default.

searchtextrequired
Words to find in comments.
example: linux
instancetext
Lemmy server to ask, such as lemmy.world.
default: lemmy.worldexample: lemmy.world
max_resultsnumber
Most comments to return.
default: 50example: 200

What's in each record

11 fields: 9 here, 2 technical ones under Technical details.

Basics

  • Post title

    Title of that post.

    Example Commodore Callback - The smart flip phone with no social media

  • Community

    Community the post belongs to, as name@server.

    Example t•••@piefed.social

  • Text

    Comment text in plain text.

    Example oh I thought it ran android, I'd otherwise ask if it could potentially run graphene instead. I suppose I'm more…

  • Score

    Upvotes minus downvotes.

    Example 1

  • Upvotes

    Example 1

  • Downvotes

    Example 0

  • Author

    Public username of the commenter.

    Example vikingtons

Dates

  • Published

    When it was posted (UTC).

    Example Dec 6, 2026

Technical detailsField names and types for developers, and the 2 fields hidden above

Hidden by default

These 2 fields come with each record too. They are internal codes, notes about how the record was read or a copy of what was searched for, so the lists above leave them out.

  • Comment ID comment_idThe comment's id on that server.
  • Post ID post_idId of the post the comment is under.

Field names and types

The names your code reads in each record. "Filled" counts how many of the 3 sample records carry the field.

Field nameTypeShown on this page asFilled
comment_idtextComment ID (hidden)3 of 3
post_idtextPost ID (hidden)3 of 3
post_titletextPost title3 of 3
communitytextCommunity3 of 3
texttextText3 of 3
scorenumberScore3 of 3
upvotesnumberUpvotes3 of 3
downvotesnumberDownvotes3 of 3
authortextAuthor3 of 3
published_atdate and timePublished3 of 3
urllinkLink3 of 3

How it reads the site

Runs on a reader we built and maintain by hand for this site.

Sample records

Sample records
RecordTextPost titleCommunityScoreUpvotesDownvotesAuthorPublishedLink
1oh I thought it ran android, I'd otherwise ask if it could potentially run graphene instead. I suppose I'm more comfortable that this little guy runs a "full" linux distro under the hood?Commodore Callback - The smart flip phone with no social mediat•••@piefed.social110vikingtonsDec 6, 2026lemmy.world/comment/27218250
2It is tiring. But treat it like a marathon not a sprint. One small step every time is still a step in the right direction. And there's a lot of steps you can take. I definitely have a long way to go myself; I would like to switch to grapheneOS on my phone, for example, but it…Anyone Else Feel Like the World is Going Crazy?a•••@lemmy.world110other_catDec 6, 2026lemmy.zip/comment/30740092
3Along with the other two answers, the Linux drive naming convention tells us this is the primary nvme (nvme0) with your Windows install. Drop down the top thing and choose /dev/nvme1p? (p1, p2 etc. mean partition) to use the second drive for Linux. (edit: ignore the n1 part,…Installing Linux for my first time. What does this screen mean?l•••@lemmy.zip110moteDec 6, 2026lemmy.ca/comment/26994182

Sample records from the example output this API publishes. Email addresses and phone numbers in them are masked. Hover over a column name to see the field name your code reads.

Reliability

Counted from real runs. Our own health checks are left out. A run succeeded when it finished and the site neither blocked it nor broke it.

Incidents and repairs

How it is kept working What a repair can't do

A ready-made API, maintained by us. It is not part of the daily check or the automatic rebuild yet.

  • You pay only for records returned. A run that returns none costs nothing.
Known limits
  • One Lemmy server per run (lemmy.world by default); results are the comments that server knows about, including federated ones, newest first.
  • A search word is required. Servers cap how deep paging goes and set their own rate limits; requests go about one every 0.6 seconds, so 200 comments take a few seconds.
  • text is the comment as plain text, cut at 1,000 characters. Removed or deleted comments are skipped.
  • author is the public Lemmy username shown next to the comment, not a real name.
  • Servers running a much newer or older Lemmy version may answer differently or not at all.
  • Public data of the chosen server; comments belong to their authors. Not made or endorsed by Lemmy.

Version history

A run uses the live version unless the request names another one with version.