# Google News Time Range Search API

<p>Search Google News for a term inside a time window: the last hour, day, week or year, or between two dates. Up to 100 items, no second page. Items outside the window are removed. Each item has position, title (publisher name removed), link, source (name and url), date (ISO 8601), guid and related_articles (the other articles of the same story). Costs 1 credit. A search with no result returns 200 with an empty list and costs nothing.</p>

- **Documentation:** [https://scrappa.co/docs/google-news-api/google_news_search](https://scrappa.co/docs/google-news-api/google_news_search)
- **API group:** Google News API
- **Endpoint:** `GET https://scrappa.co/api/google/news/search`

## 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 term. Do not write when:, after: or before: inside it. |
| `when` | string | No | Time window: 1h, 1d, 7d or 1y. |
| `after` | string | No | Only news on or after this date (YYYY-MM-DD, UTC). |
| `before` | string | No | Only news before this date (YYYY-MM-DD, UTC). |
| `hl` | string | No | Language of the feed, 2 letters, e.g. en, de, fr. Default: en. |
| `gl` | string | No | Country of the feed, 2 letters, e.g. us, de, gb. Default: us. |

## Example response

```json
{
    "channel": {
        "name": "\"openai when:1d\"",
        "title": "\"openai when:1d\" - Google News",
        "language": "en-US",
        "topic_token": null,
        "last_build_date": "2026-11-01T02:40:47+00:00"
    },
    "news_results": [
        {
            "date": "2026-10-31T18:14:38+00:00",
            "guid": "CBMiXEFVX3lxTFBjWGg5TktPMGtkSmtIVjRPM3c5ek1TcUtpOTBYaGFLYzBoZ1pLQkNLRDQzSHhuRkZkcFUycHFlV04yRlREeHdFX1pJVEhfVW5OUGIxUG5fUGlJR3Yw",
            "link": "https://news.google.com/rss/articles/CBMiXEFVX3lxTFBjWGg5TktPMGtkSmtIVjRPM3c5ek1TcUtpOTBYaGFLYzBoZ1pLQkNLRDQzSHhuRkZkcFUycHFlV04yRlREeHdFX1pJVEhfVW5OUGIxUG5fUGlJR3Yw?oc=5",
            "title": "The future of the firm",
            "source": {
                "url": "https://openai.com",
                "name": "OpenAI"
            },
            "position": 1,
            "related_articles": []
        },
        {
            "date": "2026-10-31T19:56:23+00:00",
            "guid": "CBMiggFBVV95cUxOb2hwU1RZMjNaMVpkcW13aDRGb3M0UGlMb21CRTI4dDU5STc4eEJkZHNMc2VPQjVnYm80MEEzWm80RDFZdElReXNmbG1sS0xBYjNnNWNOZVJsSUhySmhIUTJfV0tEZjJncTFLSHJFbDVqU2FrdmlSVW1hNzdxZG8tbktn0gGHAUFVX3lxTFBEd2ZuVFNJR09vWjBBWUtDMF80c1luQkFnVWRkN2RWMG1DWmZJd3Z4clZwcjNIeEcwaExPcjc5MWt2MkZ1SW9KUHdZODhtV3NGanVTSVkzdFl0aTQtUmxZa1V6dHpDUkxacTNhTk1PWXFDbnVIR3NraVRJODh3MjFGdUhBNl9rTQ",
            "link": "https://news.google.com/rss/articles/CBMiggFBVV95cUxOb2hwU1RZMjNaMVpkcW13aDRGb3M0UGlMb21CRTI4dDU5STc4eEJkZHNMc2VPQjVnYm80MEEzWm80RDFZdElReXNmbG1sS0xBYjNnNWNOZVJsSUhySmhIUTJfV0tEZjJncTFLSHJFbDVqU2FrdmlSVW1hNzdxZG8tbktn0gGHAUFVX3lxTFBEd2ZuVFNJR09vWjBBWUtDMF80c1luQkFnVWRkN2RWMG1DWmZJd3Z4clZwcjNIeEcwaExPcjc5MWt2MkZ1SW9KUHdZODhtV3NGanVTSVkzdFl0aTQtUmxZa1V6dHpDUkxacTNhTk1PWXFDbnVIR3NraVRJODh3MjFGdUhBNl9rTQ?oc=5",
            "title": "OpenAI pares fundraising goal, now seeking up to $20 billion in latest round",
            "source": {
                "url": "https://www.cnbc.com",
                "name": "CNBC"
            },
            "position": 2,
            "related_articles": []
        }
    ],
    "search_parameters": {
        "q": "openai",
        "gl": "US",
        "hl": "en-US",
        "ceid": "US:en",
        "when": "1d",
        "engine": "google_news_search"
    }
}
```

## Errors

| Status | Error | Description |
| --- | --- | --- |
| 422 | Validation Error | A parameter is missing or invalid. This response is not billable. |
| 503 | Service Unavailable | Google News could not be reached or gave an unreadable answer. This response is not billable. Retry later. |

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