Google News

Search Google News

Search Google News by words, operators, edition and time window, and follow the cursor into older windows.

GET/v1/google-news/search
1credit
x-api-keystringheader

API key (`sfk_...`)

Parameters
7
querystringrequiredquery

Search words. Google News operators work inside it: `site:`, `intitle:`, `source:`, quotes, `OR`, `-term`. `when:`, `after:` and `before:` are set by the dedicated parameters. Control characters are removed.

min 1 chars · max 2000 chars

languagestringoptionalquery

Language and locale of the edition, e.g. `en-US`, `de`, `pt-BR` or `zh-Hant`. Default: `en-US`. The 400 response for an unsupported pair lists every supported pair.

min 2 chars · max 16 chars

countrystringoptionalquery

Two-letter country of the edition, e.g. `US`, `GB` or `JP`. Default: `US`. Send it with `language`; an unsupported pair is rejected with every supported pair listed.

min 2 chars · max 2 chars

cursorstringoptionalquery

`page.nextCursor` from the previous response. It continues the same query and edition one day at a time; do not send `when`, `after` or `before` with it.

min 1 chars · max 16384 chars

whenstringoptionalquery

Only articles from this recent window, e.g. `1h`, `7d`, `1y`.

pattern: ^[1-9][0-9]{0,3}[hdy]$

afterstringoptionalquery

Only articles after this date, `YYYY-MM-DD`.

pattern: ^[0-9]{4}-[0-9]{2}-[0-9]{2}$

beforestringoptionalquery

Only articles before this date, `YYYY-MM-DD`.

pattern: ^[0-9]{4}-[0-9]{2}-[0-9]{2}$

Response fields
47

Endpoint-specific response payload.

dataquery
string

The search expression this page used: the request `query` plus any `when:`, `after:` or `before:` window, e.g. `openai when:1h`.

datatitle
stringnullable

Title of the result set; it contains the expression this page used, e.g. `"openai when:1h" - Google News`.

The edition of this result.

dataeditionlanguage
string

Language and locale of the edition, e.g. `en-US`.

dataeditioncountry
string

Two-letter country of the edition, e.g. `US`.

Articles, in Google News order.

dataarticles[]id
string

Article id; the same id on every route.

dataarticles[]title
string

Headline as the record gives it; a trailing outlet suffix is removed when present.

dataarticles[]publishedAt
stringnullable

Publication time in UTC, when the record gives one.

dataarticles[]datePrecision
string

`day` when the record only gives a date: midnight Pacific in the `en-US` edition. `second` otherwise.

one of: second, day

dataarticles[]googleUrl
stringnullable

Google News link; null on topic, story, publisher and headline results.

dataarticles[]url
stringnullable

Publisher article URL. Null on search and top-stories results; use `articles/resolve` to get it.

dataarticles[]ampUrl
stringnullable

AMP form of the publisher URL.

Article image, or null when the record has none.

dataarticles[]imageurl
stringnullable

The publisher's own image URL.

dataarticles[]imagewidth
integernullable

Image width in pixels.

dataarticles[]imageheight
integernullable

Image height in pixels.

The outlet an article is from.

dataarticles[]sourcename
stringnullable

Publisher name, e.g. `Reuters`.

dataarticles[]sourceurl
stringnullable

Publisher root URL, when the record gives one.

dataarticles[]sourcepublicationId
stringnullable

Stable publisher id from an article record; the input for the publisher endpoint.

dataarticles[]sourceiconUrl
stringnullable

Publisher favicon URL.

Authors of the article.

dataarticles[]authors[]name
string

Author name as Google News displays it.

dataarticles[]authors[]topicId
stringnullable

Author topic id, when the author has one.

dataarticles[]label
stringnullable

Article label, e.g. `Opinion`, in the edition's language.

dataarticles[]storyId
stringnullable

Full Coverage story id, the input for the story endpoint.

dataarticles[]clusterHeadline
stringnullable

Short headline of the story cluster, when the record carries one.

Other outlets in the same story cluster. Empty on topic, story, publisher and headline results.

dataarticles[]relatedArticles[]id
string

Article id.

dataarticles[]relatedArticles[]title
string

Headline as the record gives it; a trailing outlet suffix is removed when present.

dataarticles[]relatedArticles[]googleUrl
string

Working Google News link for the article.

The outlet an article is from.

dataarticles[]relatedArticles[]sourcename
stringnullable

Publisher name, e.g. `Reuters`.

dataarticles[]relatedArticles[]sourceurl
stringnullable

Publisher root URL, when the record gives one.

dataarticles[]relatedArticles[]sourcepublicationId
stringnullable

Stable publisher id from an article record; the input for the publisher endpoint.

dataarticles[]relatedArticles[]sourceiconUrl
stringnullable

Publisher favicon URL.

Paging state of a list.

datapagehasMore
boolean

Whether another older window can be requested.

datapagenextBefore
stringnullable

The next window's exclusive `before:` date, `YYYY-MM-DD`; null on the last page.

datapagenextCursor
stringnullable

Opaque cursor for the next older day window; null on the last page.

datapagewindowFull
boolean

`true` when this page's window reached the 100-item limit, so a busier window is cut short; `false` on the ranked first page when no window was given and on windows under the ceiling.

Metadata describing the request and billing outcome.

metarequestId
string

Unique request identifier for tracing this API call.

min 1 chars

metacreditsCharged
integer

Credits charged for this request.

≥ 0

metaversion
string

Public API version that served the response.

one of: v1

Code example

curl "https://api.socialfetch.dev/v1/google-news/search?query=openai" \
  -H "x-api-key: YOUR_API_KEY"

Responses

A page of search results.