# Lemmy Community API Documentation

<p><strong>Lemmy Community API</strong> returns the public profile of a Lemmy community: name, title, description, actor id, subscriber and post counts, active user metrics, NSFW flag and publish date. A valid community with zero subscribers or an empty description is still a successful response.</p>

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

## 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 |
| --- | --- | --- | --- |
| `name` | string | Yes | Lemmy community name. Example: technology. |
| `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": {
        "community": {
            "id": 2478,
            "icon": "https://lemmy.world/pictrs/image/abc123.jpeg",
            "name": "technology",
            "nsfw": false,
            "posts": 22225,
            "title": "Technology",
            "actor_id": "https://lemmy.world/c/technology",
            "comments": 970289,
            "published": "2019-04-25T12:00:00.000000Z",
            "description": "A community for technology news and discussion.",
            "subscribers": 88756,
            "users_active_day": 4727,
            "subscribers_local": 41267,
            "users_active_week": 9031,
            "users_active_month": 14620,
            "users_active_half_year": 29834
        }
    },
    "meta": {
        "billable": true,
        "endpoint_family": "community_detail"
    },
    "success": true
}
```

## Errors

| Status | Error | Description |
| --- | --- | --- |
| 422 | Validation Error | The name parameter is missing or invalid. This response is not billable. |
| 404 | Community Not Found | The requested Lemmy community 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)
