Lemmy Post Detail API returns a single Lemmy post by its numeric id as JSON: id, title, url, body (markdown plus plain-text), community, creator, score, upvotes, downvotes, comment count, publish date, thumbnail, cross-posts and moderators. The response also includes the comment tree rebuilt from the dotted path, with content (markdown plus plain-text), score, child count and creator per comment. Comments are best-effort within the same billable request.
Run this endpoint
Endpoint
Parameters
Start with the required fields, then add optional filters only when your use case needs them.
Runnable path
1 required parameter needed before sending a request.
4 optional filters available.
integer
Required
Lemmy post numeric id. Example: 53070436.
1234567890
string
Optional
Comment sort order. One of: Top, New, Old, Hot. Defaults to Top.
example
integer
Optional
Comments per page. Server caps at 50. Defaults to 5.
10
integer
Optional
Maximum comment tree depth to return. Omit for full depth.
10
string
Optional
Lemmy instance hostname. Defaults to lemmy.world. The hostname must resolve to a public address; private, loopback and unresolvable hosts are rejected without charge.
example
Response Schema
Example response fields are illustrative; inspect the JSON before integrating.
Example response fields
Scan these fields before integrating.
data
meta
success
{
"data": {
"post": {
"id": 53070436,
"url": "https://lemmy.world/pictrs/image/def456.jpeg",
"body": "Post body markdown content",
"score": 42,
"title": "A technology post title",
"creator": {
"id": 3100864,
"name": "EatingPies"
},
"upvotes": 45,
"community": {
"id": 2478,
"name": "technology",
"title": "Technology"
},
"downvotes": 3,
"published": "2026-10-10T14:30:00.000000Z",
"body_plain": "Post body plain text",
"moderators": [
{
"id": 1,
"name": "admin"
}
],
"cross_posts": [],
"thumbnail_url": "https://lemmy.world/pictrs/image/ghi789.jpeg",
"comments_count": 167
},
"comments": [
{
"id": 26295573,
"path": "0.26295573",
"score": 12,
"content": "Comment content",
"creator": {
"id": 3100864,
"name": "EatingPies"
},
"replies": [],
"upvotes": 12,
"downvotes": 0,
"published": "2026-10-10T15:00:00.000000Z",
"child_count": 34,
"content_plain": "Comment content",
"distinguished": false
}
],
"comments_has_more": true
},
"meta": {
"billable": true,
"endpoint_family": "post_detail"
},
"success": true
}
Errors
Handle these documented responses before retrying or showing customer-facing failures.
Validation Error
The id parameter is missing or not a positive integer. This response is not billable.
{
"errors": {
"id": [
"The id field is required."
]
},
"message": "The request validation failed"
}Post Not Found
The requested Lemmy post was not found. This response is not billable.
{
"error": {
"code": "NOT_FOUND",
"message": "The requested Lemmy resource was not found."
},
"success": false
}Upstream Unavailable
The Lemmy API is temporarily unavailable. This response is not billable.
{
"error": {
"code": "UPSTREAM_UNAVAILABLE",
"message": "The Lemmy API is temporarily unavailable. Please retry."
},
"success": false
}Generate Code with AI
Copy a ready-made prompt with all the endpoint details, parameters, and example responses. Paste it into ChatGPT, Claude, or any AI assistant to instantly generate working code.
Try It Live
Test this endpoint in our interactive playground with real data.