Lemmy
What Lemmy data is for.
Use Lemmy when you need comments and reviews, posts, videos and catalog records, search and discovery, public profiles and creator metadata without maintaining a separate adapter for each route. Start with the lowest-cost live operation, then add search or list endpoints only when the response shape fits your product.
Live
13
Paid only
0
Price floor
1 cr
Use cases
Get Lemmy comment
Call /v1/lemmy/comment when you need a normalized get lemmy comment response with the same credit and cache rules as the rest of the catalog.
List latest Lemmy comments
Call /v1/lemmy/comments when you need a normalized list latest lemmy comments response with the same credit and cache rules as the rest of the catalog.
List Lemmy communities
Call /v1/lemmy/communities when you need a normalized list lemmy communities response with the same credit and cache rules as the rest of the catalog.
Auth & error contract.
Auth
Send x-api-key: cf_live_... or Authorization: Bearer cf_live_.... A missing or invalid key returns 401.
Billing
Successful lookups charge the listed credits. Cache hits, 5xx responses and mapped 503 routes cost 0 credits.
Limits
429 includes Retry-After and costs nothing. Paid-only routes return 403 plan_required before any provider call.
Mapped routes
1 routes are cataloged but not connected. They return 503 upstream_not_configured and never charge.
Operations
Live / 13
readyGet Lemmy comment
/v1/lemmy/comment| Name | Type | Required | Description |
|---|---|---|---|
| instance | string | yes | Mastodon instance hostname, for example mastodon.social. |
| id | string | yes | Numeric item id. |
curl -s "https://api.cleanfetch.dev/v1/lemmy/comment?instance=mastodon.social&id=8863" \ -H "x-api-key: $CLEANFETCH_API_KEY"
{
"data": {
"platform": "lemmy",
"count": 1,
"items": [
{
"id": "123456",
"url": "https://example.com/item/123456",
"text": "Example public post returned by this endpoint.",
"createdAt": "2026-11-30T00:00:00.000Z",
"author": {
"username": "nasa",
"name": "NASA"
}
}
]
},
"meta": {
"lookupStatus": "found",
"creditsCharged": 1,
"cached": false
}
}Returns
platformcountitems[].iditems[].urlitems[].textitems[].createdAtInput notes
- • Free accounts can call this endpoint up to 3 times per day.
- • Responses are cached for 6h.
- • A public record that does not exist returns not_found and is charged once.
List latest Lemmy comments
/v1/lemmy/comments| Name | Type | Required | Description |
|---|---|---|---|
| instance | string | yes | Mastodon instance hostname, for example mastodon.social. |
| community | string | no | Lookup parameter. |
| scope | string | no | Lookup parameter. |
| sort | string | no | Lookup parameter. |
| page | string | no | Lookup parameter. |
| cursor | string | no | Lookup parameter. |
| limit | string | no | Maximum records to return, from 1 to 20. |
curl -s "https://api.cleanfetch.dev/v1/lemmy/comments?instance=mastodon.social" \ -H "x-api-key: $CLEANFETCH_API_KEY"
{
"data": {
"platform": "lemmy",
"count": 1,
"items": [
{
"id": "123456",
"url": "https://example.com/item/123456",
"text": "Example public post returned by this endpoint.",
"createdAt": "2026-11-30T00:00:00.000Z",
"author": {
"username": "nasa",
"name": "NASA"
}
}
]
},
"meta": {
"lookupStatus": "found",
"creditsCharged": 1,
"cached": false
}
}Returns
platformcountitems[].iditems[].urlitems[].textitems[].createdAtInput notes
- • Free accounts can call this endpoint up to 3 times per day.
- • Responses are cached for 6h.
- • A public record that does not exist returns not_found and is charged once.
List Lemmy communities
/v1/lemmy/communities| Name | Type | Required | Description |
|---|---|---|---|
| instance | string | yes | Mastodon instance hostname, for example mastodon.social. |
| scope | string | no | Lookup parameter. |
| sort | string | no | Lookup parameter. |
| nsfw | string | no | Lookup parameter. |
| page | string | no | Lookup parameter. |
| cursor | string | no | Lookup parameter. |
| limit | string | no | Maximum records to return, from 1 to 20. |
curl -s "https://api.cleanfetch.dev/v1/lemmy/communities?instance=mastodon.social" \ -H "x-api-key: $CLEANFETCH_API_KEY"
{
"data": {
"platform": "lemmy",
"count": 1,
"items": [
{
"id": "123456",
"url": "https://example.com/item/123456",
"text": "Example public post returned by this endpoint.",
"createdAt": "2026-11-30T00:00:00.000Z",
"author": {
"username": "nasa",
"name": "NASA"
}
}
]
},
"meta": {
"lookupStatus": "found",
"creditsCharged": 1,
"cached": false
}
}Returns
platformcountitems[].iditems[].urlitems[].textitems[].createdAtInput notes
- • Free accounts can call this endpoint up to 3 times per day.
- • Responses are cached for 6h.
- • A public record that does not exist returns not_found and is charged once.
Get Lemmy community
/v1/lemmy/community| Name | Type | Required | Description |
|---|---|---|---|
| instance | string | yes | Mastodon instance hostname, for example mastodon.social. |
| name | string | no | Package name. |
| id | string | no | Numeric item id. |
curl -s "https://api.cleanfetch.dev/v1/lemmy/community?instance=mastodon.social" \ -H "x-api-key: $CLEANFETCH_API_KEY"
{
"data": {
"platform": "lemmy",
"count": 1,
"items": [
{
"id": "123456",
"url": "https://example.com/item/123456",
"text": "Example public post returned by this endpoint.",
"createdAt": "2026-11-30T00:00:00.000Z",
"author": {
"username": "nasa",
"name": "NASA"
}
}
]
},
"meta": {
"lookupStatus": "found",
"creditsCharged": 1,
"cached": false
}
}Returns
platformcountitems[].iditems[].urlitems[].textitems[].createdAtInput notes
- • Free accounts can call this endpoint up to 3 times per day.
- • Responses are cached for 6h.
- • A public record that does not exist returns not_found and is charged once.
Get Lemmy instance
/v1/lemmy/instance| Name | Type | Required | Description |
|---|---|---|---|
| instance | string | yes | Mastodon instance hostname, for example mastodon.social. |
| include | string | no | Lookup parameter. |
curl -s "https://api.cleanfetch.dev/v1/lemmy/instance?instance=mastodon.social" \ -H "x-api-key: $CLEANFETCH_API_KEY"
{
"data": {
"platform": "lemmy",
"count": 1,
"items": [
{
"id": "123456",
"url": "https://example.com/item/123456",
"text": "Example public post returned by this endpoint.",
"createdAt": "2026-11-30T00:00:00.000Z",
"author": {
"username": "nasa",
"name": "NASA"
}
}
]
},
"meta": {
"lookupStatus": "found",
"creditsCharged": 1,
"cached": false
}
}Returns
platformcountitems[].iditems[].urlitems[].textitems[].createdAtInput notes
- • Free accounts can call this endpoint up to 3 times per day.
- • Responses are cached for 6h.
- • A public record that does not exist returns not_found and is charged once.
List Lemmy instance moderation log
/v1/lemmy/modlog| Name | Type | Required | Description |
|---|---|---|---|
| instance | string | yes | Mastodon instance hostname, for example mastodon.social. |
| kind | string | no | Lookup parameter. |
| communityId | string | no | Lookup parameter. |
| modPersonId | string | no | Lookup parameter. |
| otherPersonId | string | no | Lookup parameter. |
| page | string | no | Lookup parameter. |
| cursor | string | no | Lookup parameter. |
| limit | string | no | Maximum records to return, from 1 to 20. |
curl -s "https://api.cleanfetch.dev/v1/lemmy/modlog?instance=mastodon.social" \ -H "x-api-key: $CLEANFETCH_API_KEY"
{
"data": {
"platform": "lemmy",
"count": 1,
"items": [
{
"id": "123456",
"url": "https://example.com/item/123456",
"text": "Example public post returned by this endpoint.",
"createdAt": "2026-11-30T00:00:00.000Z",
"author": {
"username": "nasa",
"name": "NASA"
}
}
]
},
"meta": {
"lookupStatus": "found",
"creditsCharged": 1,
"cached": false
}
}Returns
platformcountitems[].iditems[].urlitems[].textitems[].createdAtInput notes
- • Free accounts can call this endpoint up to 3 times per day.
- • Responses are cached for 6h.
- • A public record that does not exist returns not_found and is charged once.
Get Lemmy post
/v1/lemmy/post| Name | Type | Required | Description |
|---|---|---|---|
| instance | string | yes | Mastodon instance hostname, for example mastodon.social. |
| id | string | no | Numeric item id. |
| commentId | string | no | Lookup parameter. |
curl -s "https://api.cleanfetch.dev/v1/lemmy/post?instance=mastodon.social" \ -H "x-api-key: $CLEANFETCH_API_KEY"
{
"data": {
"platform": "lemmy",
"count": 1,
"items": [
{
"id": "123456",
"url": "https://example.com/item/123456",
"text": "Example public post returned by this endpoint.",
"createdAt": "2026-11-30T00:00:00.000Z",
"author": {
"username": "nasa",
"name": "NASA"
}
}
]
},
"meta": {
"lookupStatus": "found",
"creditsCharged": 1,
"cached": false
}
}Returns
platformcountitems[].iditems[].urlitems[].textitems[].createdAtInput notes
- • Free accounts can call this endpoint up to 3 times per day.
- • Responses are cached for 6h.
- • A public record that does not exist returns not_found and is charged once.
List Lemmy post comments
/v1/lemmy/post/comments| Name | Type | Required | Description |
|---|---|---|---|
| instance | string | yes | Mastodon instance hostname, for example mastodon.social. |
| postId | string | no | Lookup parameter. |
| parentId | string | no | Lookup parameter. |
| sort | string | no | Lookup parameter. |
| page | string | no | Lookup parameter. |
| cursor | string | no | Lookup parameter. |
| limit | string | no | Maximum records to return, from 1 to 20. |
| labels | string | no | Lookup parameter. |
curl -s "https://api.cleanfetch.dev/v1/lemmy/post/comments?instance=mastodon.social" \ -H "x-api-key: $CLEANFETCH_API_KEY"
{
"data": {
"platform": "lemmy",
"count": 1,
"items": [
{
"id": "123456",
"url": "https://example.com/item/123456",
"text": "Example public post returned by this endpoint.",
"createdAt": "2026-11-30T00:00:00.000Z",
"author": {
"username": "nasa",
"name": "NASA"
}
}
]
},
"meta": {
"lookupStatus": "found",
"creditsCharged": 1,
"cached": false
}
}Returns
platformcountitems[].iditems[].urlitems[].textitems[].createdAtInput notes
- • Free accounts can call this endpoint up to 3 times per day.
- • Responses are cached for 6h.
- • A public record that does not exist returns not_found and is charged once.
List Lemmy posts
/v1/lemmy/posts| Name | Type | Required | Description |
|---|---|---|---|
| instance | string | yes | Mastodon instance hostname, for example mastodon.social. |
| community | string | no | Lookup parameter. |
| scope | string | no | Lookup parameter. |
| sort | string | no | Lookup parameter. |
| nsfw | string | no | Lookup parameter. |
| page | string | no | Lookup parameter. |
| cursor | string | no | Lookup parameter. |
| limit | string | no | Maximum records to return, from 1 to 20. |
curl -s "https://api.cleanfetch.dev/v1/lemmy/posts?instance=mastodon.social" \ -H "x-api-key: $CLEANFETCH_API_KEY"
{
"data": {
"platform": "lemmy",
"count": 1,
"items": [
{
"id": "123456",
"url": "https://example.com/item/123456",
"text": "Example public post returned by this endpoint.",
"createdAt": "2026-11-30T00:00:00.000Z",
"author": {
"username": "nasa",
"name": "NASA"
}
}
]
},
"meta": {
"lookupStatus": "found",
"creditsCharged": 1,
"cached": false
}
}Returns
platformcountitems[].iditems[].urlitems[].textitems[].createdAtInput notes
- • Free accounts can call this endpoint up to 3 times per day.
- • Responses are cached for 6h.
- • A public record that does not exist returns not_found and is charged once.
Search Lemmy instance
/v1/lemmy/search| Name | Type | Required | Description |
|---|---|---|---|
| instance | string | yes | Mastodon instance hostname, for example mastodon.social. |
| query | string | yes | Search query or keyword. |
| type | string | no | Lookup parameter. |
| sort | string | no | Lookup parameter. |
| community | string | no | Lookup parameter. |
| author | string | no | Lookup parameter. |
| scope | string | no | Lookup parameter. |
| page | string | no | Lookup parameter. |
| cursor | string | no | Lookup parameter. |
| limit | string | no | Maximum records to return, from 1 to 20. |
curl -s "https://api.cleanfetch.dev/v1/lemmy/search?instance=mastodon.social&query=nike" \ -H "x-api-key: $CLEANFETCH_API_KEY"
{
"data": {
"platform": "lemmy",
"count": 1,
"items": [
{
"id": "123456",
"url": "https://example.com/item/123456",
"text": "Example public post returned by this endpoint.",
"createdAt": "2026-11-30T00:00:00.000Z",
"author": {
"username": "nasa",
"name": "NASA"
}
}
]
},
"meta": {
"lookupStatus": "found",
"creditsCharged": 1,
"cached": false
}
}Returns
platformcountitems[].iditems[].urlitems[].textitems[].createdAtInput notes
- • Free accounts can call this endpoint up to 3 times per day.
- • Responses are cached for 6h.
- • A public record that does not exist returns not_found and is charged once.
Get Lemmy user
/v1/lemmy/user| Name | Type | Required | Description |
|---|---|---|---|
| instance | string | yes | Mastodon instance hostname, for example mastodon.social. |
| username | string | no | Public handle without the @ prefix. |
| id | string | no | Numeric item id. |
curl -s "https://api.cleanfetch.dev/v1/lemmy/user?instance=mastodon.social" \ -H "x-api-key: $CLEANFETCH_API_KEY"
{
"data": {
"platform": "lemmy",
"count": 1,
"items": [
{
"id": "123456",
"url": "https://example.com/item/123456",
"text": "Example public post returned by this endpoint.",
"createdAt": "2026-11-30T00:00:00.000Z",
"author": {
"username": "nasa",
"name": "NASA"
}
}
]
},
"meta": {
"lookupStatus": "found",
"creditsCharged": 1,
"cached": false
}
}Returns
platformcountitems[].iditems[].urlitems[].textitems[].createdAtInput notes
- • Free accounts can call this endpoint up to 3 times per day.
- • Responses are cached for 6h.
- • A public record that does not exist returns not_found and is charged once.
List Lemmy user comments
/v1/lemmy/user/comments| Name | Type | Required | Description |
|---|---|---|---|
| instance | string | yes | Mastodon instance hostname, for example mastodon.social. |
| username | string | yes | Public handle without the @ prefix. |
| sort | string | no | Lookup parameter. |
| page | string | no | Lookup parameter. |
| cursor | string | no | Lookup parameter. |
| limit | string | no | Maximum records to return, from 1 to 20. |
curl -s "https://api.cleanfetch.dev/v1/lemmy/user/comments?instance=mastodon.social&username=nasa" \ -H "x-api-key: $CLEANFETCH_API_KEY"
{
"data": {
"platform": "lemmy",
"count": 1,
"items": [
{
"id": "123456",
"url": "https://example.com/item/123456",
"text": "Example public post returned by this endpoint.",
"createdAt": "2026-11-30T00:00:00.000Z",
"author": {
"username": "nasa",
"name": "NASA"
}
}
]
},
"meta": {
"lookupStatus": "found",
"creditsCharged": 1,
"cached": false
}
}Returns
platformcountitems[].iditems[].urlitems[].textitems[].createdAtInput notes
- • Free accounts can call this endpoint up to 3 times per day.
- • Responses are cached for 6h.
- • A public record that does not exist returns not_found and is charged once.
List Lemmy user posts
/v1/lemmy/user/posts| Name | Type | Required | Description |
|---|---|---|---|
| instance | string | yes | Mastodon instance hostname, for example mastodon.social. |
| username | string | yes | Public handle without the @ prefix. |
| sort | string | no | Lookup parameter. |
| page | string | no | Lookup parameter. |
| cursor | string | no | Lookup parameter. |
| limit | string | no | Maximum records to return, from 1 to 20. |
curl -s "https://api.cleanfetch.dev/v1/lemmy/user/posts?instance=mastodon.social&username=nasa" \ -H "x-api-key: $CLEANFETCH_API_KEY"
{
"data": {
"platform": "lemmy",
"count": 1,
"items": [
{
"id": "123456",
"url": "https://example.com/item/123456",
"text": "Example public post returned by this endpoint.",
"createdAt": "2026-11-30T00:00:00.000Z",
"author": {
"username": "nasa",
"name": "NASA"
}
}
]
},
"meta": {
"lookupStatus": "found",
"creditsCharged": 1,
"cached": false
}
}Returns
platformcountitems[].iditems[].urlitems[].textitems[].createdAtInput notes
- • Free accounts can call this endpoint up to 3 times per day.
- • Responses are cached for 6h.
- • A public record that does not exist returns not_found and is charged once.
Mapped / 1
503 · 0 creditsList Lemmy federated instances
/v1/lemmy/instances
Common Lemmy API questions
How many Lemmy operations are live?
13 of 14 cataloged operations are live. 1 mapped operation returns 503 upstream_not_configured and cost 0 credits.
What does a Lemmy call cost?
Live operations range from 1 to 1 credits. 13 are available on the free daily cap and 0 are paid-only. Cache hits cost 0 credits.
Are Lemmy responses cached?
Successful responses are cached between 6h and 6h. A cache hit costs 0 credits and does not consume the free daily cap.
How do I authenticate Lemmy requests?
Send x-api-key or Authorization: Bearer with a CleanFetch key. Missing or invalid keys return 401; paid-only routes return 403 plan_required; rate limits return 429 with Retry-After. A 5xx or timeout costs 0 credits.