Google News

Get Google News article links

Get publisher URLs for up to ten Google News article ids.

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

API key (`sfk_...`)

Parameters
3
idsarrayrequiredquery

Article ids, comma-separated, 1 to 10. Duplicates are dropped.

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
11

Endpoint-specific response payload.

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

One entry per id, in request order, up to 10 ids.

dataresults[]id
string

The article id asked for.

dataresults[]url
stringnullable

The publisher URL, or null when it is not available.

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/articles/resolve?ids=CBMitgFBVV95cUxPY0RKYkJfbFhrMGhDQlhSMHlxUEF6dGdjbDZPc0tYeU9hNEZGQVlEeXZuTlZZa1hFM0hwcE9ZUmFNUFd0ZERES1hkQjJkU0J4OF9WdmJ4dU5mY2xpM3kzWkYxbmFCNDQ0amVYTUdZakdCYkRLaFF3TnV3UERrVTFIYWRCUUNJV2NuOVlRRTZmd2MwSFdFd0JZejhoaWczQno0emxKVFBFSFNYR0h5ODktNHZyOEU3UQ" \
  -H "x-api-key: YOUR_API_KEY"

Responses

Resolve up to ten article ids to publisher URLs.