# Google Trends Related Queries

Retrieve queries and topics related to your search term. Shows what else people search for in relation to your keyword.

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

## 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 search keyword to analyze |
| `geo` | string | No | Geographic location code (e.g., "US", "DE", "Worldwide") |
| `time_range` | string | No | Time period for data: 1h, 4h, 1d, 7d, 30d, 90d, 1y, 5y, all |
| `hl` | string | No | 2-letter language code for results |
| `search_type` | string | No | Type of search: web, images, news, youtube, shopping |

## Example request

```bash
#!/bin/bash

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

## Example response

```json
{
    "search_parameters": {
        "keyword": "tesla",
        "geo": "US",
        "hl": "en",
        "search_type": "web"
    },
    "related_queries": [
        {
            "query": "tesla stock",
            "value": 85,
            "formatted_value": "85%"
        }
    ],
    "related_topics": [
        {
            "topic": "Tesla, Inc.",
            "type": "Company",
            "value": 100,
            "formatted_value": "100%"
        }
    ],
    "response_time_ms": 623
}
```

## Errors

| Status | Error | Description |
| --- | --- | --- |
| 400 | Missing required query parameter |  |
| 422 | Invalid time_range or search_type parameter |  |
| 500 | Google Trends request failed unexpectedly |  |
| 502 | Google Trends returned an unusable upstream response |  |
| 503 | The upstream service is temporarily unavailable. Please retry shortly. |  |

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