Docs / Platforms / Lemmy14 operations / 13 live / 1 mapped

Lemmy

Lemmy is exposed through 13 live operations covering comments and reviews, posts, videos and catalog records, search and discovery, public profiles and creator metadata. The full reference is below; mapped routes are explicitly disabled and never charge credits.
Overview & use cases

What Lemmy data is for.

Live Lemmy capabilities, credit floor, and typical lookup workflows.

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.

Contract / auth

Auth & error contract.

The platform follows the same gateway and billing rules as the rest of CleanFetch.

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.

Reference / 14

Operations

Live routes are expanded first with parameters, request example and response fields. Mapped routes are compact placeholders.

Live / 13

ready
GET

Get Lemmy comment

/v1/lemmy/comment
1 credits3/day free6h cache
NameTypeRequiredDescription
instancestringyesMastodon instance hostname, for example mastodon.social.
idstringyesNumeric item id.
Request
curl -s "https://api.cleanfetch.dev/v1/lemmy/comment?instance=mastodon.social&id=8863" \
  -H "x-api-key: $CLEANFETCH_API_KEY"
Response
{
  "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[].createdAt

Input 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

List latest Lemmy comments

/v1/lemmy/comments
1 credits3/day free6h cache
NameTypeRequiredDescription
instancestringyesMastodon instance hostname, for example mastodon.social.
communitystringnoLookup parameter.
scopestringnoLookup parameter.
sortstringnoLookup parameter.
pagestringnoLookup parameter.
cursorstringnoLookup parameter.
limitstringnoMaximum records to return, from 1 to 20.
Request
curl -s "https://api.cleanfetch.dev/v1/lemmy/comments?instance=mastodon.social" \
  -H "x-api-key: $CLEANFETCH_API_KEY"
Response
{
  "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[].createdAt

Input 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

List Lemmy communities

/v1/lemmy/communities
1 credits3/day free6h cache
NameTypeRequiredDescription
instancestringyesMastodon instance hostname, for example mastodon.social.
scopestringnoLookup parameter.
sortstringnoLookup parameter.
nsfwstringnoLookup parameter.
pagestringnoLookup parameter.
cursorstringnoLookup parameter.
limitstringnoMaximum records to return, from 1 to 20.
Request
curl -s "https://api.cleanfetch.dev/v1/lemmy/communities?instance=mastodon.social" \
  -H "x-api-key: $CLEANFETCH_API_KEY"
Response
{
  "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[].createdAt

Input 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

Get Lemmy community

/v1/lemmy/community
1 credits3/day free6h cache
NameTypeRequiredDescription
instancestringyesMastodon instance hostname, for example mastodon.social.
namestringnoPackage name.
idstringnoNumeric item id.
Request
curl -s "https://api.cleanfetch.dev/v1/lemmy/community?instance=mastodon.social" \
  -H "x-api-key: $CLEANFETCH_API_KEY"
Response
{
  "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[].createdAt

Input 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

Get Lemmy instance

/v1/lemmy/instance
1 credits3/day free6h cache
NameTypeRequiredDescription
instancestringyesMastodon instance hostname, for example mastodon.social.
includestringnoLookup parameter.
Request
curl -s "https://api.cleanfetch.dev/v1/lemmy/instance?instance=mastodon.social" \
  -H "x-api-key: $CLEANFETCH_API_KEY"
Response
{
  "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[].createdAt

Input 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

List Lemmy instance moderation log

/v1/lemmy/modlog
1 credits3/day free6h cache
NameTypeRequiredDescription
instancestringyesMastodon instance hostname, for example mastodon.social.
kindstringnoLookup parameter.
communityIdstringnoLookup parameter.
modPersonIdstringnoLookup parameter.
otherPersonIdstringnoLookup parameter.
pagestringnoLookup parameter.
cursorstringnoLookup parameter.
limitstringnoMaximum records to return, from 1 to 20.
Request
curl -s "https://api.cleanfetch.dev/v1/lemmy/modlog?instance=mastodon.social" \
  -H "x-api-key: $CLEANFETCH_API_KEY"
Response
{
  "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[].createdAt

Input 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

Get Lemmy post

/v1/lemmy/post
1 credits3/day free6h cache
NameTypeRequiredDescription
instancestringyesMastodon instance hostname, for example mastodon.social.
idstringnoNumeric item id.
commentIdstringnoLookup parameter.
Request
curl -s "https://api.cleanfetch.dev/v1/lemmy/post?instance=mastodon.social" \
  -H "x-api-key: $CLEANFETCH_API_KEY"
Response
{
  "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[].createdAt

Input 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

List Lemmy post comments

/v1/lemmy/post/comments
1 credits3/day free6h cache
NameTypeRequiredDescription
instancestringyesMastodon instance hostname, for example mastodon.social.
postIdstringnoLookup parameter.
parentIdstringnoLookup parameter.
sortstringnoLookup parameter.
pagestringnoLookup parameter.
cursorstringnoLookup parameter.
limitstringnoMaximum records to return, from 1 to 20.
labelsstringnoLookup parameter.
Request
curl -s "https://api.cleanfetch.dev/v1/lemmy/post/comments?instance=mastodon.social" \
  -H "x-api-key: $CLEANFETCH_API_KEY"
Response
{
  "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[].createdAt

Input 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

List Lemmy posts

/v1/lemmy/posts
1 credits3/day free6h cache
NameTypeRequiredDescription
instancestringyesMastodon instance hostname, for example mastodon.social.
communitystringnoLookup parameter.
scopestringnoLookup parameter.
sortstringnoLookup parameter.
nsfwstringnoLookup parameter.
pagestringnoLookup parameter.
cursorstringnoLookup parameter.
limitstringnoMaximum records to return, from 1 to 20.
Request
curl -s "https://api.cleanfetch.dev/v1/lemmy/posts?instance=mastodon.social" \
  -H "x-api-key: $CLEANFETCH_API_KEY"
Response
{
  "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[].createdAt

Input 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

Get Lemmy user

/v1/lemmy/user
1 credits3/day free6h cache
NameTypeRequiredDescription
instancestringyesMastodon instance hostname, for example mastodon.social.
usernamestringnoPublic handle without the @ prefix.
idstringnoNumeric item id.
Request
curl -s "https://api.cleanfetch.dev/v1/lemmy/user?instance=mastodon.social" \
  -H "x-api-key: $CLEANFETCH_API_KEY"
Response
{
  "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[].createdAt

Input 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

List Lemmy user comments

/v1/lemmy/user/comments
1 credits3/day free6h cache
NameTypeRequiredDescription
instancestringyesMastodon instance hostname, for example mastodon.social.
usernamestringyesPublic handle without the @ prefix.
sortstringnoLookup parameter.
pagestringnoLookup parameter.
cursorstringnoLookup parameter.
limitstringnoMaximum records to return, from 1 to 20.
Request
curl -s "https://api.cleanfetch.dev/v1/lemmy/user/comments?instance=mastodon.social&username=nasa" \
  -H "x-api-key: $CLEANFETCH_API_KEY"
Response
{
  "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[].createdAt

Input 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

List Lemmy user posts

/v1/lemmy/user/posts
1 credits3/day free6h cache
NameTypeRequiredDescription
instancestringyesMastodon instance hostname, for example mastodon.social.
usernamestringyesPublic handle without the @ prefix.
sortstringnoLookup parameter.
pagestringnoLookup parameter.
cursorstringnoLookup parameter.
limitstringnoMaximum records to return, from 1 to 20.
Request
curl -s "https://api.cleanfetch.dev/v1/lemmy/user/posts?instance=mastodon.social&username=nasa" \
  -H "x-api-key: $CLEANFETCH_API_KEY"
Response
{
  "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[].createdAt

Input 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 credits
GET

List Lemmy federated instances

/v1/lemmy/instances

503 upstream_not_configured · 0 credits
FAQ / Lemmy

Common Lemmy API questions

Pricing, caching, authentication, and placeholder behavior.
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.

ready