Skip to content
Scrappa Get API key
Google News API 1 credit/request

Google News Article URL Decoder API

GET https://scrappa.co/api/google/news/decode

Turns a Google News article link into the real publisher URL. One article per request. Send article_id or the link of any feed item as url. The response has publisher_url. Costs 1 credit. Failed requests cost nothing.

Google News Article URL Decoder API 1 credit/request

Endpoint

Request preview
GET
https://scrappa.co/api/google/news/decode
Auth header
x-api-key
Cost
1 credit/request
Response preview
200 OK
{
    "publisher_url": "https://www.nytimes.com/live/2026/10/31/us/midterms-elections-trump",
    "search_parameters": {
        "gl": "US",
        "hl": "en-US",
        "ceid": "US:en",
        "engine": "google_news_decode",
        "article_id": "CBMidkFVX3lxTE9YR1owcUlLb3d1ajhFeWJacmU2aXAwV1g2Uk9aUjhtNFFNSlRSMXFxR2RCaWlIUWZ5M0w2M2kwODVndGNuSFdUangydkM0b0p5WERGOFY5QjZtSzNnYnhZTFd5NW1yZ2d6amJwMk9sdll6ZXdQeWc"
    }
}

Parameters

Start with the required fields, then add optional filters only when your use case needs them.

Runnable path

This endpoint has no required query parameters.

4 optional filters available.

article_id string Optional

Google News article id: the guid or article_id field of a news item. Send this or url.

Example value 1234567890
url string Optional
Open example

Google News article link, e.g. the link field of any item from headlines, topic, search, publication, stories or story. Send this or article_id.

Example value https://example.com/product
hl string Optional

Language of the feed, 2 letters, e.g. en, de, fr. Default: en.

Example value en
gl string Optional

Country of the feed, 2 letters, e.g. us, de, gb. Default: us.

Example value us

Response Schema

Example response fields are illustrative; inspect the JSON before integrating.

Example response fields

Scan these fields before integrating.

publisher_url search_parameters
JSON Response
200 OK
{
    "publisher_url": "https://www.nytimes.com/live/2026/10/31/us/midterms-elections-trump",
    "search_parameters": {
        "gl": "US",
        "hl": "en-US",
        "ceid": "US:en",
        "engine": "google_news_decode",
        "article_id": "CBMidkFVX3lxTE9YR1owcUlLb3d1ajhFeWJacmU2aXAwV1g2Uk9aUjhtNFFNSlRSMXFxR2RCaWlIUWZ5M0w2M2kwODVndGNuSFdUangydkM0b0p5WERGOFY5QjZtSzNnYnhZTFd5NW1yZ2d6amJwMk9sdll6ZXdQeWc"
    }
}

Errors

Handle these documented responses before retrying or showing customer-facing failures.

422

Validation Error

A parameter is missing or invalid. This response is not billable.

{
    "errors": {
        "hl": [
            "The language is a 2 letter code like en or de."
        ]
    },
    "message": "The request validation failed"
}
404

Not Found

The article is gone or cannot be decoded. This response is not billable.

{
    "error": "This article could not be decoded."
}
503

Service Unavailable

Google News could not be reached or gave an unreadable answer. This response is not billable. Retry later.

{
    "error": "Google News could not be reached. Try again."
}

Generate Code with AI

Copy a ready-made prompt with all the endpoint details, parameters, and example responses. Paste it into ChatGPT, Claude, or any AI assistant to instantly generate working code.

Try It Live

Test this endpoint in our interactive playground with real data.