Reddit’s community taxonomy: the 29 top-level topics with their sub-topics, each with its id (tx1_…), name, emoji and a sensitive-content flag. Use a topic_id with /topic/subreddits to list its communities. Billed 1 request.
HTTP Request
GET /topic/list
Cost (in requests): 1. Every successful answer reports its cost in data.billed_requests.
Parameters
This endpoint takes no parameters.
Response
Real response to GET /topic/list (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 | Topic tree. |
data.items | array of objects | Reddit’s top-level topics with their sub-topics. |
data.items[].topic_id | string | Topic id (tx1_…), the input of /topic/subreddits. |
data.items[].name | string | Topic display name, e.g. Technology. |
data.items[].emoji | string | Emoji Reddit shows next to the topic (a character, not an image). |
data.items[].is_sensitive | boolean | Reddit marks the topic as sensitive (adult or mature themes). |
data.items[].sub_topics | array of objects | Sub-topics (each is a valid topic_id too). |
data.items[].sub_topics[].topic_id | string | Topic id (tx1_…), the input of /topic/subreddits. |
data.items[].sub_topics[].name | string | Topic display name, e.g. Technology. |
data.items[].sub_topics[].emoji | string | Emoji Reddit shows next to the topic (a character, not an image). |
data.items[].sub_topics[].is_sensitive | boolean | Reddit marks the topic as sensitive (adult or mature themes). |
data.total_sub_topics | integer | Number of sub-topics across all topics. |
data.computed_at | string | When this answer was computed (RFC 3339, UTC). Older than the request when it was served from the cache. |
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 |
| 503 | Reddit temporarily unreachable | "error": "Service temporarily unavailable". Not billed, retry later |
Code Examples
| |
| |
| |
Related Endpoints
- Topic Subreddits : Communities listed under a Reddit topic