# Semrush Keyword Suggest

Returns the autocomplete suggestions Semrush serves for a partial keyword or domain. A query with no suggestions returns an empty list (a legitimate empty answer on a working route).

- **Documentation:** [https://scrappa.co/docs/semrush-api/semrush_suggest](https://scrappa.co/docs/semrush-api/semrush_suggest)
- **API group:** Semrush API
- **Endpoint:** `GET https://scrappa.co/api/semrush/suggest`

## Authentication

Send your Scrappa API key in the `X-API-KEY` request header. Paid endpoints also support accountless x402 payments when called without an API key.

## Parameters

| Parameter | Type | Required | Description |
| --- | --- | --- | --- |
| `q` | string | Yes | Partial keyword or domain to autocomplete (e.g. "best seo"). |

## Example request

```bash
#!/bin/bash

curl -X GET \
    -H "x-api-key: YOUR_API_KEY_HERE" \
    "https://scrappa.co/api/semrush/suggest?q=best+seo"
```

## Example response

```json
{
    "search_parameters": {
        "engine": "semrush_suggest",
        "q": "best seo"
    },
    "suggestions": [
        "best seo tools",
        "best seo agency",
        "best seo software"
    ]
}
```

## Errors

| Status | Error | Description |
| --- | --- | --- |
| 422 | Validation Error | A parameter failed validation. |
| 503 | Semrush Upstream Unavailable | Semrush could not be fetched through the configured proxy pool after the full attempt budget. Never charged. |

## More Scrappa resources

- [API documentation](https://scrappa.co/docs)
- [Full LLM-readable API reference](https://scrappa.co/llms-full.txt)
- [OpenAPI specification](https://scrappa.co/docs/api.json)
- [Pricing](https://scrappa.co/pricing)
