The communities an account is active in (up to 95), as shown on its profile: id, name, title, description, members, NSFW flag and icon; accounts that hide the list answer visibility: hidden. Give username or user_id. For the communities the account moderates use /user/moderated-subreddits (same input, same community card). Billed 1 request per call.
HTTP Request
GET /user/subreddits
Cost (in requests): 1. Every successful answer reports its cost in data.billed_requests.
Parameters
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
username | string | No | - | Reddit username, with or without u/ (case-insensitive). Give this or user_id. |
user_id | string | No | - | Reddit account id (t2_…). Alternative to username. |
Response
Real response to GET /user/subreddits?username=spez (arrays trimmed to 2 items, long texts cut with …).
| |
Response Fields
| Field | Type | Description |
|---|---|---|
status | boolean | true when the request succeeded |
request_id | string | Unique request identifier |
data | object | Active communities; null with error.code = not_found. |
data.visibility | string | hidden when the user hides the list; visible otherwise (may be empty). |
data.items | array | Communities the user is active in (up to 95), largest first (subscribers, then name). The order is ours: Reddit returns them in a different order on each call. |
data.billed_requests | integer | Requests billed for this call (also sent as Requests in the X-RapidAPI-Billing header when it is not RapidAPI’s default of 1). |
request_params | object | Echo of the parameters you sent |
Error Responses
Invalid input returns HTTP 400, not billed. error is a plain string that names the parameter:
| |
| Status Code | Cause | Description |
|---|---|---|
| 400 | Invalid or missing parameter | Plain-English message per field. Not billed |
200 with status: false | Item not available | error.code is not_found, suspended, deleted. data is null. Billed 1 request |
| 503 | Reddit temporarily unreachable | "error": "Service temporarily unavailable". Not billed, retry later |
Code Examples
| |
| |
| |
Related Endpoints
- User Details : Reddit account profile by username or id
- User Activity : Posts and comments of a Reddit account (one timeline or each list)
- User Moderated Subreddits : Communities a Reddit account moderates