# Search suggestions

Returns autocomplete suggestions for required `keyword`. Optional safety fields control mature-content results.

- Platform: Reddit V2
- Request: `GET https://api.toolzerhub.com/v2/reddit/search/typeahead`
- Auth: `x-api-key` header
- Cost: 2 credits per successful request. Failed requests are not billed.
- Page: https://docs.toolzerhub.com/reference/reddit-v2/search/get-reddit-search-typeahead

| Parameter | In | Required | Type | Description |
| --- | --- | --- | --- | --- |
| `keyword` | query | yes | string | Partial keyword to get search suggestions for. |
| `safe_search` | query | no | enum: unset, strict | Safe search filtering level. |
| `allow_nsfw` | query | no | enum: 0, 1 | Whether to include NSFW results (0 = no, 1 = yes). |

## Example request

```bash
curl "https://api.toolzerhub.com/v2/reddit/search/typeahead?keyword=<keyword>" \
  -H "x-api-key: $TOOLZERHUB_API_KEY"
```

Success responses are wrapped as `{ "data": ... }`. Errors return `{ "error": { "code", "status", "message", "retryable", "details" } }`. See https://docs.toolzerhub.com/docs/responses-and-errors.
