# Get subreddit

Get a community's description, creation date, activity figures, and rules. `data: null` means the community does not exist.

- Platform: Reddit
- Request: `GET https://api.toolzerhub.com/v1/reddit/subreddit-info`
- Auth: `x-api-key` header
- Cost: 1 credit per successful request. Failed requests are not billed.
- Page: https://docs.toolzerhub.com/reference/reddit/subreddit/get-reddit-subreddit-info-v2

| Parameter | In | Required | Type | Description |
| --- | --- | --- | --- | --- |
| `subreddit` | query | yes | string | Community name, e.g. technology. Accepts r/technology or a URL. 2-21 letters, digits or underscores. An unknown community returns data: null. |

## Example request

```bash
curl "https://api.toolzerhub.com/v1/reddit/subreddit-info?subreddit=<subreddit>" \
  -H "x-api-key: $TOOLZERHUB_API_KEY"
```

Success responses are wrapped as `{ "data": ... }`. Errors return `{ "error": { "code", "status", "message", "retryable", "details" } }`. See https://docs.toolzerhub.com/docs/responses-and-errors.
