Google News

List Google News suggestions

List Google News topic and publisher suggestions matching a name.

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

API key (`sfk_...`)

Parameters
3
querystringrequiredquery

Name to get Google News suggestions for, e.g. `Taylor Swift`.

min 1 chars · max 200 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

Response fields
20

Endpoint-specific response payload.

datalookupStatus
string

`found` when the entity exists, including when it has no articles right now. `not_found` when the id does not exist.

one of: found, not_found

dataquery
string

The name that was asked about.

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`.

The top match; null when there was no topic or publisher match.

datatopid
string

Topic or publication id.

datatopkind
string

`topic` for an entity, section or place topic; `publisher` for an outlet; `unknown` when the kind is not known.

one of: topic, publisher, unknown

datatoptype
stringnullable

Google News's own label, e.g. `Topic`, `Source` or `Search results`.

datatopname
string

Suggestion name.

datatopiconUrl
stringnullable

Icon for the match; null when the match has none.

Related topics the suggestion box listed. At most 50 are returned.

datatopics[]id
string

Topic id.

datatopics[]name
string

Topic name.

datatopics[]path
string

Google News path of the topic, e.g. `/topics/CAAq...`.

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/suggest?query=Taylor%20Swift" \
  -H "x-api-key: YOUR_API_KEY"

Responses

Topic and publisher suggestions for a name.