GET /autocomplete

Autocomplete

Search-box suggestions: queries, communities and users. Reddit Scraper API endpoint /autocomplete: parameters, JSON response fields and code examples.

What Reddit’s search box suggests while q is typed: up to 5 query suggestions, up to 5 communities (id, name, icon, flags, topic line or weekly visitors) and matching users. type limits the answer to one kind. Billed 1 request, plus 1 with with_stats=true when communities are returned.

HTTP Request

GET /autocomplete

Cost (in requests): 1; +1 with_stats. Every successful answer reports its cost in data.billed_requests.

Parameters

ParameterTypeRequiredDefaultDescription
qstringYes-Query as typed in the search box (a few letters are enough).
typestringNoallqueries, subreddits, users, or all (default); lists for the other types come back empty. Allowed: queries, subreddits, users, all.
with_statsbooleanNofalseAdds exact subscribers_count and weekly_visitors per community. Billed: +1 request per community.

Response

Real response to GET /autocomplete?q=pyth (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
46
47
48
49
50
51
52
53
{
  "status": true,
  "request_id": "1d07033d-9e73-d953-a9ad-f065efbf",
  "data": {
    "suggestions": [
      "python for beginners",
      "python"
    ],
    "subreddits": [
      {
        "name": "Python",
        "subreddit_id": "t5_2qh0y",
        "is_nsfw": false,
        "is_quarantined": false,
        "icon_url": "https://styles.redditmedia.com/t5_2qh0y/styles/communityIcon_lctik80p96tg1.png",
        "topic_description": null,
        "weekly_visitors": 89000,
        "weekly_visitors_text": "89K weekly visitors",
        "subscribers_count": null
      },
      {
        "name": "learnpython",
        "subreddit_id": "t5_2r8ot",
        "is_nsfw": false,
        "is_quarantined": false,
        "icon_url": "https://styles.redditmedia.com/t5_2r8ot/styles/communityIcon_jwr5s7l5ici61.png",
        "topic_description": "Beginner Python help on career paths, strings, and plotting CSVs",
        "weekly_visitors": null,
        "weekly_visitors_text": null,
        "subscribers_count": null
      }
    ],
    "users": [
      {
        "username": "Pythiaclothing",
        "user_id": "t2_3yjiacu8",
        "avatar_url": "https://styles.redditmedia.com/t5_13p6so/styles/profileIcon_ucch6ruoe4g51.jpg?width=128&height=128&frame=1&auto=webp&crop=128%3A128%2Csmart&s=a323c1921480c9d2da88042b492d83acc3fb4546",
        "is_nsfw": false
      },
      {
        "username": "PythonGB",
        "user_id": "t2_n290r",
        "avatar_url": "https://styles.redditmedia.com/t5_1lcto9/styles/profileIcon_y32rkfxkvj0c1.png?width=128&height=128&frame=1&auto=webp&crop=128%3A128%2Csmart&s=db4448e6616ea0bb316d7e1b3480bcdf63e4bd35",
        "is_nsfw": false
      }
    ],
    "computed_at": "2026-11-24T14:28:56.684163+00:00",
    "billed_requests": 1
  },
  "request_params": {
    "q": "pyth"
  }
}

Response Fields

FieldTypeDescription
statusbooleantrue when the request succeeded
request_idstringUnique request identifier
dataobjectSuggestions (lists are empty for the types not requested).
data.suggestionsarray of stringQuery suggestions (strings).
data.subredditsarray of objectsCommunity suggestions.
data.subreddits[].namestringSubreddit name without r/.
data.subreddits[].subreddit_idstringSubreddit id.
data.subreddits[].is_nsfwbooleanMarked 18+.
data.subreddits[].is_quarantinedbooleanQuarantined.
data.subreddits[].icon_urlstringCommunity icon URL.
data.subreddits[].topic_descriptionstring / nullReddit’s AI topic line for the community (either this or the visitors text is shown).
data.subreddits[].weekly_visitorsintegerWeekly visitors as a number (parsed from weekly_visitors_text, or exact with with_stats).
data.subreddits[].weekly_visitors_textstringOriginal visitors text, e.g. 75K weekly visitors.
data.subreddits[].subscribers_countinteger / nullExact subscribers (only with with_stats=true).
data.usersarray of objectsUser suggestions.
data.users[].usernamestringUsername.
data.users[].user_idstringAccount id.
data.users[].avatar_urlstringAvatar URL.
data.users[].is_nsfwbooleanProfile marked 18+.
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/autocomplete"

params = {
    "q": "pyth",
}

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["subreddits"]:
    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/autocomplete";

const params = new URLSearchParams({
  q: "pyth",
});

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.subreddits.forEach((item) => console.log(item.name));
1
2
3
4
curl -G "https://reddit-scraper-api-extractor-ai-the-most-complete.p.rapidapi.com/autocomplete" \
  --data-urlencode "q=pyth" \
  -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