# Lemmy Post Detail API Documentation

<p><strong>Lemmy Post Detail API</strong> 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.</p>

- **Documentation:** [https://scrappa.co/docs/lemmy-api/lemmy_post](https://scrappa.co/docs/lemmy-api/lemmy_post)
- **API group:** Lemmy API
- **Endpoint:** `GET https://scrappa.co/api/lemmy/post`

## Authentication

Send your Scrappa API key in the `X-API-KEY` request header. Paid endpoints also support accountless x402 payments when called without an API key.

## Parameters

| Parameter | Type | Required | Description |
| --- | --- | --- | --- |
| `id` | integer | Yes | Lemmy post numeric id. Example: 53070436. |
| `comment_sort` | string | No | Comment sort order. One of: Top, New, Old, Hot. Defaults to Top. |
| `comment_limit` | integer | No | Comments per page. Server caps at 50. Defaults to 5. |
| `max_depth` | integer | No | Maximum comment tree depth to return. Omit for full depth. |
| `instance` | string | No | 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

```json
{
    "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

| Status | Error | Description |
| --- | --- | --- |
| 422 | Validation Error | The id parameter is missing or not a positive integer. This response is not billable. |
| 404 | Post Not Found | The requested Lemmy post was not found. This response is not billable. |
| 503 | Upstream Unavailable | The Lemmy API is temporarily unavailable. This response is not billable. |

## More Scrappa resources

- [API documentation](https://scrappa.co/docs)
- [Full LLM-readable API reference](https://scrappa.co/llms-full.txt)
- [OpenAPI specification](https://scrappa.co/docs/api.json)
- [Pricing](https://scrappa.co/pricing)
