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
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
q | string | Yes | - | 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 …).
| |
Response Fields
| Field | Type | Description |
|---|---|---|
status | boolean | true when the request succeeded |
request_id | string | Unique request identifier |
data | object | Suggestions for the keyword. |
data.results | array of objects | Suggestions in Reddit’s order (usually 16–17; empty when Reddit has none). |
data.results[].phrase | string | The search phrase, lower case, e.g. laptop recommendations. Pass it as q to /post/search. |
data.results[].type | string | query = 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_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
- Autocomplete : Search-box suggestions: queries, communities and users