API · Google News
GET /googlenews/search
Search Google News: headlines, publishers, publish times, links; up to 100.
| Request | GET /v1/googlenews/search |
| Operation id | googlenews.search.all |
| Cost | 1 credit, refunded if the call fails |
| Auth | API key: Authorization: Bearer <key> or x-api-key. |
Search Google News: headlines, publishers, publish times, links; up to 100.
Query parameters
| Name | Type | Required | Description |
|---|---|---|---|
keyword | string | yes | Example: electric vehicles. |
depth | integer | no | |
country | string | no | Edition country, two letters (default US). |
language_code | string | no | Edition language (default en). Example: de. |
time_range | "hour" | "day" | "week" | "month" | "year" | no | One of hour, day, week, month, year. |
publisher | string | no | |
from | string | no | |
to | string | no | |
since | string | no | |
until | string | no |
Responses
| Status | Meaning | Schema |
|---|---|---|
200 | Matching articles. | |
400 | Invalid input. Nothing was charged. | Error |
401 | Missing or invalid API key. | Error |
402 | Not enough credits, a spend cap was reached, or payment is required. | Error |
403 | The target is private, or the account is suspended. | Error |
404 | Google News has nothing for that search. | Error |
429 | Too many requests. Wait for Retry-After seconds. | Error |
503 | Google News is temporarily unavailable. Retryable; nothing was charged. | Error |
Errors use one shape everywhere; see Errors for every code and what to do.