GET /keyword/suggestions

Keyword Suggestions

Search phrases Reddit relates to a keyword. Reddit Scraper API endpoint /keyword/suggestions: parameters, JSON response fields and code examples.

The search phrases Reddit’s search box associates with q (laptop → laptop recommendations, laptop stand, laptop deals), usually 16–17, each with its type: query for the keyword itself, autocomplete for a completion. An empty list when Reddit has none. Billed 1 request per call.

HTTP Request

GET /keyword/suggestions

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

Parameters

ParameterTypeRequiredDefaultDescription
qstringYes-Keyword or phrase, e.g. laptop or best vpn.

Response

Real response to GET /keyword/suggestions?q=python (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
{
  "status": true,
  "request_id": "2066ce02-7bf3-6dc5-d3f6-edc01232",
  "data": {
    "results": [
      {
        "phrase": "python",
        "type": "query"
      },
      {
        "phrase": "python snake",
        "type": "autocomplete"
      }
    ],
    "computed_at": "2026-11-24T14:29:04.282078+00:00",
    "billed_requests": 1
  },
  "request_params": {
    "q": "python"
  }
}

Response Fields

FieldTypeDescription
statusbooleantrue when the request succeeded
request_idstringUnique request identifier
dataobjectSuggestions for the keyword.
data.resultsarray of objectsSuggestions in Reddit’s order (usually 16–17; empty when Reddit has none).
data.results[].phrasestringThe search phrase, lower case, e.g. laptop recommendations. Pass it as q to /post/search.
data.results[].typestringquery = the keyword itself, as a phrase people search; autocomplete = a completion Reddit suggests while typing. Another kind Reddit adds later comes in lower snake case.
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
import requests

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

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

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"]

print(data)
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/keyword/suggestions";

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

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();
console.log(data);
1
2
3
4
curl -G "https://reddit-scraper-api-extractor-ai-the-most-complete.p.rapidapi.com/keyword/suggestions" \
  --data-urlencode "q=python" \
  -H "X-RapidAPI-Key: YOUR_API_KEY" \
  -H "X-RapidAPI-Host: reddit-scraper-api-extractor-ai-the-most-complete.p.rapidapi.com"
  • Autocomplete : Search-box suggestions: queries, communities and users
Start building today

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

Get Your API Key on RapidAPI