# Google Related Questions API

Fetch the People Also Ask (related questions) block of a Google Search result as structured JSON. Each question carries its answer snippet, source link and an opaque next_page_token. Pass that token back to the endpoint to expand the question further: the response returns the next batch of related questions for that question, each with a fresh token for recursive expansion. A failed or blocked request returns an unbilled 503; a valid empty result is billed.

- **Documentation:** [https://scrappa.co/docs/google-related-questions-api/google_related_questions](https://scrappa.co/docs/google-related-questions-api/google_related_questions)
- **API group:** Google Related Questions API
- **Endpoint:** `GET https://scrappa.co/api/google-related-questions`

## 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 | Search query, e.g. "how does espresso work". Required when no next_page_token is given. |
| `next_page_token` | string | No | Opaque next_page_token from a previous response. Expands that question further. Takes precedence over q when both are given. |
| `hl` | string | No | Interface language code (2 letters, e.g. en, de) |
| `gl` | string | No | Country code (2 letters, e.g. us, de) |

## Example request

```bash
#!/bin/bash

curl -X GET \
    -H "x-api-key: YOUR_API_KEY_HERE" \
    "https://scrappa.co/api/google-related-questions?q=how+does+espresso+work&hl=en&gl=us"
```

## Example response

```json
{
    "query": "how does espresso work",
    "related_questions": [
        {
            "question": "Is espresso just straight coffee?",
            "snippet": "Espresso is not a specific roast or coffee blend. It is a brewing method where near-boiling water is pushed through finely-ground coffee at high pressure, producing a concentrated shot.",
            "link": "https://en.wikipedia.org/wiki/Espresso",
            "displayed_link": "en.wikipedia.org",
            "next_page_token": "fc=EqEBCmJBSmlUNHRKdXlMV3VTODRRcDhjT1lka3NJa2FkNEhjcE4yQlFObnpONHVtMlNEaEhpaVQtbFc2V3hLN2tCYVdTSk11SlNzdFcxUkNBRFZnbzc0YmJNcnY3UC1PS0pMYVJoZxIXd2N2TGF0VzZOY0tTOXU4UG05SHcyUW8aIkFEc3I5ZlJYZnE4M2VoREo2SG1JWkFBSGhLS2pzRDZrd0E&fcv=3&vet=12ahUKEwiVn9zuwrKXAxVCif0HHZsoPKsQzOMHKAF6BAhAEAI..i&ei=wcvLatW6NcKS9u8Pm9Hw2Qo&opi=89978449&gl=de&hl=de&q=Does+espresso+stronger+than+coffee%3F&lk=GiJkb2VzIGVzcHJlc3NvIHN0cm9uZ2VyIHRoYW4gY29mZmVl"
        }
    ]
}
```

## Errors

| Status | Error | Description |
| --- | --- | --- |
| 422 | Validation Error | One or more query parameters failed validation. |
| 503 | Related Questions Unavailable | Google Related Questions is temporarily unable to return a valid result page, or the next_page_token is invalid or expired. The request is not billed; retry it after a short delay or re-fetch by query for a fresh token. |

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