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.
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
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
- Small runs answer in the same request; longer ones answer
202with a run to poll. fieldsreturns only the fields you name. The examples send the ones picked on this page.Idempotency-Keyis optional. A retry with it is never charged twice.- You pay for records returned. Zero records cost zero.
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.
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
Links
- Link
Link to the comment.
Example lemmy.world/comment/27218250
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 name | Type | Shown on this page as | Filled |
|---|---|---|---|
comment_id | text | Comment ID (hidden) | 3 of 3 |
post_id | text | Post ID (hidden) | 3 of 3 |
post_title | text | Post title | 3 of 3 |
community | text | Community | 3 of 3 |
text | text | Text | 3 of 3 |
score | number | Score | 3 of 3 |
upvotes | number | Upvotes | 3 of 3 |
downvotes | number | Downvotes | 3 of 3 |
author | text | Author | 3 of 3 |
published_at | date and time | Published | 3 of 3 |
url | link | Link | 3 of 3 |
How it reads the site
Runs on a reader we built and maintain by hand for this site.
Save as pipeline
A pipeline remembers this API, your inputs and the fields you picked. It can run on a schedule and email you the results.
Sample records
| Record | Text | Post title | Community | Score | Upvotes | Downvotes | Author | Published | Link |
|---|---|---|---|---|---|---|---|---|---|
| 1 | oh 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 media | t•••@piefed.social | 1 | 1 | 0 | vikingtons | Dec 6, 2026 | lemmy.world/comment/27218250 |
| 2 | It 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.world | 1 | 1 | 0 | other_cat | Dec 6, 2026 | lemmy.zip/comment/30740092 |
| 3 | Along 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.zip | 1 | 1 | 0 | mote | Dec 6, 2026 | lemmy.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.
- 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.
Manage this API
Only your workspace sees this part.
Automatic repair
Off: a rebuilt version is stored and waits for you in the version history.
Delete this API
Removes the API, its versions and the saved records of its runs. Calls to its address then answer 404. Records already charged stay charged. This cannot be undone.