Google News

Get Google News topic or publisher id

Get Google News topic or publisher ids matching a place, section, MID or name.

GET/v1/google-news/topics/resolve
1credit
x-api-keystringheader

API key (`sfk_...`)

Parameters
6
languagestringquery

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

countrystringquery

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

placestringquery

Place name to resolve, e.g. `London` or `San Francisco, CA`.

min 1 chars · max 200 chars

sectionstringquery

Section name to resolve: `WORLD`, `NATION`, `BUSINESS`, `TECHNOLOGY`, `ENTERTAINMENT`, `SPORTS`, `SCIENCE` or `HEALTH`.

one of: WORLD, NATION, BUSINESS, TECHNOLOGY, ENTERTAINMENT, SPORTS, SCIENCE, HEALTH

midstringquery

Knowledge Graph MID to resolve, e.g. `/m/09nm_`.

pattern: ^\/[mg]\/[A-Za-z0-9_]+$

querystringquery

Name to resolve through Google News suggestions, e.g. `Taylor Swift` or `Reuters`. Matches are noisy; the candidates are returned.

min 1 chars · max 200 chars

Response fields
30

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

The input that was resolved, with the others null.

datainputplace
stringnullable

The place name that was resolved, or null.

datainputsection
stringnullable

The section name that was resolved, or null.

datainputmid
stringnullable

The Knowledge Graph MID that was resolved, or null.

datainputquery
stringnullable

The name that was resolved through suggestions, or null.

The best match; null when nothing was resolved.

dataresolvedid
string

The resolved topic or publication id.

dataresolvedkind
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

dataresolvedname
stringnullable

Name of the entity, when it has one.

dataresolvedmid
stringnullable

Knowledge Graph MID decoded from a topic id. Compare it to the MID asked for to see whether a place name fell back to the U.S. topic.

dataresolvedurl
stringnullable

The Google News page for the resolved id.

dataresolvedmatchedInput
booleannullable

Whether the result matches what was asked. False when a place name fell back to the U.S. topic, compared by id rather than by the local name; null when it cannot be compared (a section, a record with no name, or no suggestion match). An unknown place can resolve to the U.S. topic or be not_found, and this field tells which.

dataresolvediconUrl
stringnullable

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

Other matches from the suggestion box. Empty for place, section and MID resolution.

datacandidates[]id
string

The resolved topic or publication id.

datacandidates[]kind
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

datacandidates[]name
stringnullable

Name of the entity, when it has one.

datacandidates[]mid
stringnullable

Knowledge Graph MID decoded from a topic id. Compare it to the MID asked for to see whether a place name fell back to the U.S. topic.

datacandidates[]url
stringnullable

The Google News page for the resolved id.

datacandidates[]matchedInput
booleannullable

Whether the result matches what was asked. False when a place name fell back to the U.S. topic, compared by id rather than by the local name; null when it cannot be compared (a section, a record with no name, or no suggestion match). An unknown place can resolve to the U.S. topic or be not_found, and this field tells which.

datacandidates[]iconUrl
stringnullable

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

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

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/topics/resolve?query=technology" \
  -H "x-api-key: YOUR_API_KEY"

Responses

Resolve a place, section, MID or name.