# Reddit Subreddit info API (reddit.subreddit_info)

- Canonical page: [https://everyinfra.com/en/reddit-api/subreddit_info](https://everyinfra.com/en/reddit-api/subreddit_info?utm_medium=ai_doc&utm_campaign=page_md)
- Endpoint: POST https://api.everyinfra.com/api/v1/social with {"platform": "reddit", "action": "subreddit_info", "params": {...}}
- Price: $0.000792 per call ($0.79 per 1,000 requests); failed calls and empty results are not charged
- Returns: single object
- Mode: sync; add "mode": "async" for slow tasks

## Health

- Live health (24h percent, hourly and daily trends): https://api.everyinfra.com/api/v1/social/availability?platform=reddit&action=subreddit_info

## Parameters

| name | type | required | default | description |
|---|---|---|---|---|
| subreddit | not declared | yes | not declared | The community to look up: a name (`python` or `r/python`) or a community link. One community per call. |

## Response fields (items in `results`)

| field | meaning |
|---|---|
| community | platform-native meaning |
| community_id | Reddit's ID for the community, starting with t5_ (`subreddit_info`, `subreddit_rules`, `search_suggest`, `user_subreddits`, `explore`, `topic_subreddits`). |
| url | Link to the record on the platform. |
| title | Title. null when the platform has no titles (for example text-only posts). |
| description | Summary or description, usually shorter than text. |
| member_count | How many members the community has (`subreddit_info`, `user_subreddits`). A few requests come back without it. |
| weekly_visitor_count | Weekly visitors to the community as Reddit shows it (`subreddit_info`, `explore`, `topic_subreddits`). In `search_suggest` it is the rounded figure from the dropdown, so 93K is recorded as 93000, and not every row has it. |
| weekly_contribution_count | Weekly contributions to the community, as shown on its page (`subreddit_info`). |
| created_at | Creation time, same format as posted_at. |
| community_type | Type of the community: `public`, `restricted` or `private` (`subreddit_info`). |
| icon_url | Image URL of the icon: the community icon (`subreddit_info`, `subreddit_rules`, `search_suggest`, `user_subreddits`, `explore`, `topic_subreddits`) or the achievement icon (`user_trophies`). |
| banner_url | Image URL of the banner on the community page (`subreddit_info`, `subreddit_rules`) or on the user's profile (`profile`). |
| platform | Source platform identifier, the same as platform in the request (for example xiaohongshu, tiktok). |

## Example

```bash
curl -X POST 'https://api.everyinfra.com/api/v1/social' \
  -H "Authorization: Bearer $EVERYINFRA_API_KEY" \
  -H 'Content-Type: application/json' \
  --data-raw '{
  "platform": "reddit",
  "action": "subreddit_info",
  "params": {
    "subreddit": "python"
  }
}'
```

```python
import os
import requests

response = requests.post(
    "https://api.everyinfra.com/api/v1/social",
    headers={"Authorization": f"Bearer {os.environ['EVERYINFRA_API_KEY']}"},
    json={
        "platform": "reddit",
        "action": "subreddit_info",
        "params": {
            "subreddit": "python",
        },
    },
    timeout=120,
)
print(response.status_code)
print(response.json())
```

## Response example

No real sample for these example parameters yet: structure only, every value is a placeholder (…).

```text
{
  "id": "req_…",
  "platform": "reddit",
  "action": "subreddit_info",
  "results": {
    "community": …,
    "community_id": …,
    "url": …,
    "title": …,
    "description": …,
    "member_count": …,
    "weekly_visitor_count": …,
    "weekly_contribution_count": …,
    "created_at": …,
    "community_type": …,
    "icon_url": …,
    "banner_url": …,
    "platform": …
  },
  "billing": {
    "charged": …,
    "charged_usd": …,
    "balance_after_usd": …,
    …
  },
  "quota": { … }
}
```

## Also

- Capability catalog (no key): https://api.everyinfra.com/api/v1/social/catalog?platform=reddit
- OpenAPI: https://everyinfra.com/openapi.json · Agents guide: https://everyinfra.com/agents.md
