# Google Trends Autocomplete

Get autocomplete suggestions for a search query. Useful for discovering trending searches and related keywords.

- **Documentation:** [https://scrappa.co/docs/google-trends-api/google_trends_autocomplete](https://scrappa.co/docs/google-trends-api/google_trends_autocomplete)
- **API group:** Google Trends API
- **Endpoint:** `GET https://scrappa.co/api/google-trends/autocomplete`

## 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 | The partial search query to get suggestions for |
| `geo` | string | No | Geographic location code (e.g., "US", "DE", "Worldwide") |
| `hl` | string | No | 2-letter language code for results |

## Example request

```bash
#!/bin/bash

curl -X GET \
    -H "x-api-key: YOUR_API_KEY_HERE" \
    "https://scrappa.co/api/google-trends/autocomplete?q=tesla"
```

## Example response

```json
{
    "search_parameters": {
        "keyword": "tesla",
        "geo": "Worldwide",
        "hl": "en"
    },
    "suggestions": [
        {
            "value": "tesla stock",
            "type": "suggestion"
        },
        {
            "value": "tesla model 3",
            "type": "suggestion"
        }
    ],
    "response_time_ms": 234
}
```

## Errors

| Status | Error | Description |
| --- | --- | --- |
|  | Missing required query parameter |  |
|  | Google Trends request failed |  |
|  | Bad gateway - upstream service error |  |

## 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)
