# Reddit Active communities API (reddit.user_subreddits)

- Canonical page: [https://everyinfra.com/en/reddit-api/user_subreddits](https://everyinfra.com/en/reddit-api/user_subreddits?utm_medium=ai_doc&utm_campaign=page_md)
- Endpoint: POST https://api.everyinfra.com/api/v1/social with {"platform": "reddit", "action": "user_subreddits", "params": {...}}
- Price: $0.000792 per call ($0.79 per 1,000 requests); failed calls and empty results are not charged
- Returns: list
- 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=user_subreddits

## Parameters

| name | type | required | default | description |
|---|---|---|---|---|
| username | not declared | yes | not declared | One Reddit user: `spez`, `u/spez` or a profile link. One user per call. |
| limit | integer (1–) | no | not declared | The most rows to return in this call, an integer of 1 or more. The default applies when you leave it out, and a call can return fewer rows. |

## 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. |
| 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. |
| 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`). |
| 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": "user_subreddits",
  "params": {
    "username": "Andromeda321"
  }
}'
```

```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": "user_subreddits",
        "params": {
            "username": "Andromeda321",
        },
    },
    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": "user_subreddits",
  "results": [
    {
      "community": …,
      "community_id": …,
      "url": …,
      "description": …,
      "member_count": …,
      "icon_url": …,
      "platform": …
    }
  ],
  "count": …,
  "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
