GET /topic/list

Topic List

Reddit's topic tree: every topic and sub-topic with its id. Reddit Scraper API endpoint /topic/list: parameters, JSON response fields and code examples.

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 …).

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
{
  "status": true,
  "request_id": "64658498-5d84-46c5-2e66-4d354016",
  "data": {
    "items": [
      {
        "topic_id": "tx1_20v2840",
        "name": "Adult Content",
        "emoji": "🟥",
        "is_sensitive": true,
        "sub_topics": [
          {
            "topic_id": "tx1_15teiqi",
            "name": "Adult Content",
            "emoji": "🚫",
            "is_sensitive": true
          }
        ]
      },
      {
        "topic_id": "tx1_2l65al7",
        "name": "Anime & Cosplay",
        "emoji": "🍣",
        "is_sensitive": false,
        "sub_topics": [
          {
            "topic_id": "tx1_100nuks",
            "name": "Anime & Manga",
            "emoji": "🍥",
            "is_sensitive": false
          },
          {
            "topic_id": "tx1_1q6cnqr",
            "name": "Cosplay",
            "emoji": "🧛",
            "is_sensitive": false
          }
        ]
      }
    ],
    "total_sub_topics": 198,
    "computed_at": "2026-11-24T14:28:41.365287+00:00",
    "billed_requests": 1
  }
}

Response Fields

FieldTypeDescription
statusbooleantrue when the request succeeded
request_idstringUnique request identifier
dataobjectTopic tree.
data.itemsarray of objectsReddit’s top-level topics with their sub-topics.
data.items[].topic_idstringTopic id (tx1_…), the input of /topic/subreddits.
data.items[].namestringTopic display name, e.g. Technology.
data.items[].emojistringEmoji Reddit shows next to the topic (a character, not an image).
data.items[].is_sensitivebooleanReddit marks the topic as sensitive (adult or mature themes).
data.items[].sub_topicsarray of objectsSub-topics (each is a valid topic_id too).
data.items[].sub_topics[].topic_idstringTopic id (tx1_…), the input of /topic/subreddits.
data.items[].sub_topics[].namestringTopic display name, e.g. Technology.
data.items[].sub_topics[].emojistringEmoji Reddit shows next to the topic (a character, not an image).
data.items[].sub_topics[].is_sensitivebooleanReddit marks the topic as sensitive (adult or mature themes).
data.total_sub_topicsintegerNumber of sub-topics across all topics.
data.computed_atstringWhen this answer was computed (RFC 3339, UTC). Older than the request when it was served from the cache.
data.billed_requestsintegerRequests billed for this call (also sent as Requests in the X-RapidAPI-Billing header when it is not RapidAPI’s default of 1).
request_paramsobjectEcho of the parameters you sent

Error Responses

Invalid input returns HTTP 400, not billed. error is a plain string that names the parameter:

1
{ "status": false, "request_id": "99a1e6cd-2e57-9e8f-4e44-2dea7f6d", "error": "Invalid parameter 'post_id': must be a post id such as z1c9z or t3_z1c9z", "request_params": { "post_id": "!!" } }
Status CodeCauseDescription
400Invalid or missing parameterPlain-English message per field. Not billed
503Reddit temporarily unreachable"error": "Service temporarily unavailable". Not billed, retry later

Code Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
import requests

url = "https://reddit-scraper-api-extractor-ai-the-most-complete.p.rapidapi.com/topic/list"

params = {

}

headers = {
    "X-RapidAPI-Key": "YOUR_API_KEY",
    "X-RapidAPI-Host": "reddit-scraper-api-extractor-ai-the-most-complete.p.rapidapi.com"
}

response = requests.get(url, headers=headers, params=params)
data = response.json()["data"]

for item in data["items"]:
    print(item["name"])
print("Billed requests:", data["billed_requests"])
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
const url = "https://reddit-scraper-api-extractor-ai-the-most-complete.p.rapidapi.com/topic/list";

const params = new URLSearchParams({

});

const response = await fetch(`${url}?${params}`, {
  headers: {
    "X-RapidAPI-Key": "YOUR_API_KEY",
    "X-RapidAPI-Host": "reddit-scraper-api-extractor-ai-the-most-complete.p.rapidapi.com"
  }
});

const { data } = await response.json();
data.items.forEach((item) => console.log(item.name));
1
2
3
curl -G "https://reddit-scraper-api-extractor-ai-the-most-complete.p.rapidapi.com/topic/list" \
  -H "X-RapidAPI-Key: YOUR_API_KEY" \
  -H "X-RapidAPI-Host: reddit-scraper-api-extractor-ai-the-most-complete.p.rapidapi.com"
Start building today

Get your API key and make your first request in under a minute.

Get Your API Key on RapidAPI