---
title: "Google News Scraper or API: What You Get | Perceptlayer"
description: "A Google News scraper vs a 1-credit news call: the recorded response with iso_date, source and story_token, and 4 credits per tracked query per day."
url: https://perceptlayer.com/blog/google-news-scraper-vs-api
---

[Blog](https://perceptlayer.com/blog) / [API guides](https://perceptlayer.com/blog/category/api-guides)

# Google News Scraper or API: What You Get

7 Nov 2026 Perceptlayer 8 min read

A Google News scraper is code that loads Google News result pages for your queries, pulls each article's headline, link, publisher and time out of the page, and keeps doing it on a schedule without missing or repeating stories. You maintain the fetching, the parsing, the date handling and the de-duplication yourself. The other route is `GET /v1/google-news/news`, which returns the same results as JSON for 1 credit a call. This post compares the two on a recorded response, works out the cost per tracked query, and gives a verdict per use case.

## Key takeaways

-   A news scraper has four jobs to maintain: fetching result pages, parsing each item, turning displayed dates into timestamps, and recognising articles it has already stored.
-   `GET /v1/google-news/news?q=technology` returns `news_results[]` with `position`, `title`, `link`, `snippet`, `iso_date`, `published_at`, `date`, `source.name` and `story_token`, plus `menu_links[]` with `topic_token` values.
-   The recorded `date` field reads "2 days ago" and "today", while `iso_date` holds the exact time, such as `2026-10-20T15:59:45+00:00`. A scraper reading the displayed text has to convert it; the JSON already has both.
-   Tracking one query four times a day costs 4 calls × 1 credit = 4 credits a day, or 120 credits over 30 days. Failed calls cost 0.
-   All 9 Google News endpoints are standard tier and cost 1 credit per successful call.

## What does a Google News scraper have to do?

A Google News scraper does four jobs, and each one needs upkeep. It fetches result pages for every query, topic or publication you follow. It parses each result into a headline, an article link, a publisher, a snippet and a time. It converts the time into something you can sort on. And it remembers what it stored last run, so a story that stays in the results for two days isn't counted twice.

Fetching is the part people plan for, and it's the part with the least control. Any large site has to separate people from automated traffic, so a scraper that runs several times an hour across many queries should expect slow responses, challenge pages and blocked requests. When that happens, stop and reconsider: getting around a site's protections with rotating proxies or CAPTCHA solvers isn't a fix we'd recommend. Read Google's terms before you build a collector.

Parsing is the part that fails quietly. Result pages change as the site ships features, and a parser that misses a field doesn't raise an error; it writes empty columns. So a news scraper also needs a monitor that compares each run's row counts and empty fields with the last one. [Web Scraping with Python](https://perceptlayer.com/blog/web-scraping-python-guide) covers fetchers and parsers in general, if you're weighing the build.

### Why are dates and duplicates the hard part?

Dates and duplicates are where news scrapers go wrong after the parser works. A results page often shows a relative time, such as "2 days ago", which only means something next to the moment you fetched it. Convert it late or with the wrong clock and every article in a run shifts. And the same article can appear across runs, queries and topics, so you need a stable key to de-duplicate on.

The recorded response shows both problems and the fields that solve them. The first item's `date` is "2 days ago" and the second's is "today", but each also carries `iso_date` and `published_at` with the exact time. Each item's `link` points at the publisher's own article URL, such as `https://www.bbc.com/news/videos/cq0ld7e0jg2eo`, which makes a usable de-duplication key.

## What does the news endpoint return?

`GET /v1/google-news/news` returns a page of news results as JSON, one object per article, each with the fields a scraper would otherwise parse. Every parameter is optional: `q` takes a search term of up to 500 characters, and `topic_token`, `publication_token`, `section_token`, `story_token` and `kgmid` are string parameters whose names match tokens in the response. A successful call costs 1 credit.

This is the recorded request:

```bash
curl "https://api.perceptlayer.com/v1/google-news/news?q=technology" \
  -H "X-API-Key: $API_KEY"
```

And the recorded response, trimmed to the first result and one menu link:

```json
{
  "news_results": [
    {
      "position": 1,
      "title": "Top Strategic Technology Trends for 2027",
      "link": "https://www.gartner.com/en/articles/top-technology-trends-2027",
      "type": "article",
      "snippet": "Explore Gartner's Top Strategic Technology Trends for 2027 — 10 trends that will shape autonomy, resilience and governance in the years...",
      "iso_date": "2026-10-20T15:59:45+00:00",
      "published_at": "2026-10-20 15:59:45 UTC",
      "date": "2 days ago",
      …
      "source": {
        "name": "Gartner",
        …
        "title": "Gartner"
      },
      "story_token": "CBMib0FVX3lxTE1zMGNNN1p0UTdtOXV0U3RoU2JvSGlYUXpQYTZIeEFvcHZGZVpiazBjZ2UyZ0ZhVzZ6NUl3c3Y3LTdCWUVfYVd1YnZuMFdtVElGcHlsR3IwM1BnYXBQNGZueEdldUZJOWM0UnRTQ3Y0WQ",
      "related_publications": [
        {
          "title": "Gartner",
          …
          "publication_token": "CAAqJQgKIh9DQklTRVFnTWFnMEtDMmRoY25SdVpYSXVZMjl0S0FBUAE"
        }
      ]
    },
    …
  ],
  "menu_links": [
    {
      "title": "U.S.",
      …
      "topic_token": "CAAqIggKIhxDQkFTRHdvSkwyMHZNRGxqTjNjd0VnSmxiaWdBUAE"
    },
    …
  ]
}
```

Three things in this response replace scraper code. `iso_date` replaces relative-date conversion. `link` is the publisher's URL, ready to store and de-duplicate on. And the tokens carry their own names: each result has a `story_token` and `related_publications[].publication_token`, and `menu_links[]` carries `topic_token` values. Those names match parameters on the news endpoint, and `story_token` also matches the required parameter of the story endpoint, so try them in the playground to see what each returns before you build on them.

### Which other endpoints would a scraper otherwise cover?

A scraper that follows more than keyword searches ends up parsing several page types: headlines, topic pages, local news, publisher pages and story clusters. The Google News API has an endpoint for each, all `GET`, all 1 credit per successful call, all standard tier.

| Endpoint | What it's for | Parameters |
| --- | --- | --- |
| [`/v1/google-news/news`](https://perceptlayer.com/apis/google-news/news) | Results for a query or a token | `q`, `topic_token`, `publication_token`, `story_token`, `kgmid`, `so`, `start`, `page` and more |
| [`/v1/google-news/search`](https://perceptlayer.com/apis/google-news/search) | Search with `when`, `after` and `before` | `q` (required), `when` ( `1h`, `1d`, `7d`, `1y`), `after`, `before` |
| [`/v1/google-news/headlines`](https://perceptlayer.com/apis/google-news/headlines) | Headlines | `hl`, `gl` |
| `/v1/google-news/topic` | A topic | `topic` ( `WORLD`, `NATION`, `BUSINESS`, `TECHNOLOGY` and others), `topic_token` |
| [`/v1/google-news/stories`](https://perceptlayer.com/apis/google-news/stories) | Stories for a topic | `topic`, `topic_token` |
| [`/v1/google-news/story`](https://perceptlayer.com/apis/google-news/story) | One story | `story_token`, `hl`, `gl` (all required) |
| [`/v1/google-news/local`](https://perceptlayer.com/apis/google-news/local) | Local news | `city` (required) |
| [`/v1/google-news/publication`](https://perceptlayer.com/apis/google-news/publication) | A publisher's page | `domain`, `publication_token` |
| [`/v1/google-news/decode`](https://perceptlayer.com/apis/google-news/decode) | Decode | `article_id`, `url` |

Most endpoints also take `hl` and `gl`. The [Google News API page](https://perceptlayer.com/apis/google-news) lists every parameter, and [News API Options](https://perceptlayer.com/blog/news-api-comparison) compares these endpoints with general web search for news. [Google News API](https://perceptlayer.com/blog/google-news-api) walks through the calls step by step.

## How does a scraper compare with the endpoints?

A scraper costs engineering time and carries blocking and terms risk; the endpoints cost credits per call and take the parsing and date handling off your hands. The table compares them for a recurring job, such as following 50 queries through the day.

|  | DIY Google News scraper | Google News endpoints |
| --- | --- | --- |
| Setup | Fetcher, parser per page type, date conversion, storage, monitoring | API key in the `X-API-Key` header |
| What you get | Whatever you parse from each page | `news_results[]` with `title`, `link`, `snippet`, `iso_date`, `source.name`, `story_token` |
| Dates | Displayed text such as "2 days ago", converted by you | `iso_date` and `published_at`, plus the displayed `date` |
| When the page changes | Your parser writes empty fields until you notice | Named JSON fields; no parser of yours to fix |
| Blocks and challenges | Yours to handle; expect them at volume | Not yours; a failed call returns an error code and costs 0 |
| Other page types | A new parser each | 9 endpoints: headlines, topic, stories, story, local, publication, search, decode |
| Speed | As fast as you can fetch without being blocked | 1 request a second free, at least 5 a second paid |
| Cost | Hosting and your time | 1 credit per successful call |

### What does a tracked query cost?

On the endpoints, cost follows calls, and one call returns a page of results for one query. So the useful unit is a query tracked per day, not an article. Polling one query four times a day is 4 calls × 1 credit = 4 credits a day, or 120 credits over 30 days.

Scale that to a media monitor. Following 50 queries four times a day is 50 × 4 = 200 calls a day, or 200 × 30 = 6,000 credits a month, inside the Starter pack's 10,000. The 100 free credits on signup cover the first half day of that plan, which is enough to check the fields against your own queries. Adding a daily `headlines` call for five countries adds 5 × 30 = 150 credits a month. See [pricing](https://perceptlayer.com/pricing) for what credits cost and the [credits docs](https://docs.perceptlayer.com/credits) for how calls are debited.

## How do you store only new articles?

Store each article once, keyed on `link`, and skip any link you've seen before. That turns a poll that returns overlapping results into a feed of new articles. The script below uses only fields from the recorded response and standard Python: `requests` for the call and `sqlite3` for storage.

```python
import os
import sqlite3
import requests

API = "https://api.perceptlayer.com/v1/google-news/news"
HEADERS = {"X-API-Key": os.environ["API_KEY"]}
QUERIES = ["technology", "semiconductors"]

db = sqlite3.connect("news.db")
db.execute(
    "CREATE TABLE IF NOT EXISTS articles ("
    "link TEXT PRIMARY KEY, query TEXT, title TEXT, source TEXT, iso_date TEXT)"
)

for q in QUERIES:
    resp = requests.get(API, headers=HEADERS, params={"q": q}, timeout=30)
    if resp.status_code != 200:
        print(q, resp.status_code, resp.json().get("error", {}).get("code"))
        continue
    for item in resp.json().get("news_results", []):
        cur = db.execute(
            "INSERT OR IGNORE INTO articles VALUES (?, ?, ?, ?, ?)",
            (
                item.get("link"),
                q,
                item.get("title"),
                (item.get("source") or {}).get("name"),
                item.get("iso_date"),
            ),
        )
        if cur.rowcount:
            print("new:", item.get("iso_date"), item.get("title"))
    print(q, "credits left:", resp.headers.get("X-Credits-Remaining"))

db.commit()
```

A failed call prints the error `code` and costs nothing. A 429 or 503 response carries a `Retry-After` header with the seconds to wait, which a scheduled job should honour before retrying. The [errors docs](https://docs.perceptlayer.com/errors) list every code, and the [rate limits docs](https://docs.perceptlayer.com/rate-limits) show how per-minute limits are counted.

## Which route fits your job?

Choose by how many queries you follow and how often, because that decides whether upkeep or per-call cost dominates. The verdicts below assume a recurring job; for reading the news once, open Google News in a browser and skip both.

-   **Media or brand monitoring across many queries**: use `news` on a schedule and store `link`, `title`, `source.name` and `iso_date`, keyed on `link`. At four polls a day it's 4 credits per query per day.
-   **Alerts on recent coverage**: try `search`, whose `when` parameter takes `1h`, `1d`, `7d` or `1y` and which also takes `after` and `before`; compare its results with `news` in the playground for your query.
-   **Following one publisher**: if the publisher offers its own feed or API, check that first, since it's first-party. To follow many publishers in one shape, use `publication` with a `domain`.
-   **Story-level analysis**, such as how many outlets covered one event: store each result's `story_token` and try it on the `story` endpoint in the playground before you rely on it.
-   **An agent answering questions about current events**: give it the Google News endpoints through the MCP server, as the [AI agents docs](https://docs.perceptlayer.com/ai-agents) describe, so it calls `news` or `search` instead of browsing pages.
-   **Learning how scraping works**: build a scraper against a practice site, not a news aggregator.

To check the fields against your own topics, run `news` with your query in the playground on the [Google News API page](https://perceptlayer.com/apis/google-news). When the shape fits, [get a free API key](https://perceptlayer.com/signup) and point the script above at your queries.

## APIs in this post

-   [Google News **1 credit per call** · 9 endpoints](https://perceptlayer.com/apis/google-news)

## Frequently asked questions

### Is scraping Google News allowed?

That depends on Google's terms, the publishers' terms for any article content you store, and the law where you operate, so read the terms and get legal advice for commercial use. Don't get around blocks, challenges or other protections. Storing headlines, links and publish times is a different question from copying full article text, which each publisher controls.

### Does the news endpoint return the full article text?

No. Each result in the recorded response has a `title`, a `snippet`, a `link` to the publisher's article and publish times, not the article body. If you need the text, follow `link` to the publisher, subject to that publisher's terms. For most monitoring jobs the headline, snippet, source and time are what you store.

### How do I get exact publish times instead of "2 days ago"?

Read `iso_date`, which in the recorded response holds values such as `2026-10-20T15:59:45+00:00`, or `published_at`, which holds the same time as `2026-10-20 15:59:45 UTC`. The `date` field keeps the relative text as displayed. Sort and filter on `iso_date`, and store it with every article.

### How much does it cost to monitor 50 queries?

Each successful call costs 1 credit. Polling 50 queries four times a day is 200 calls a day, or 6,000 credits over 30 days, inside the Starter pack's 10,000 credits. Failed calls cost nothing and return `X-Credits-Used: 0`. The 100 free credits on signup are granted once, not monthly.

### Does a failed Google News call cost credits?

No. Only a successful response debits credits. A failed call returns an HTTP status and a JSON error with a `code`, a `message` and a `request_id`, plus `X-Credits-Used: 0`. A rate-limited call returns 429 with a `Retry-After` header giving the seconds to wait before you try again.

google news scraping news monitoring media monitoring json

## More from the blog

1.  [API guides](https://perceptlayer.com/blog/category/api-guides) 27 Oct 2026 Perceptlayer 8 min read
    
    ## [News API Options: Google News and Search as JSON](https://perceptlayer.com/blog/news-api-comparison)
    
    Compare three news API routes: Google News returns headline, source.name, iso\_date and link per article; web search endpoints don't. 1 credit a query.
    
2.  [API guides](https://perceptlayer.com/blog/category/api-guides) 28 Sept 2026 Updated 22 Oct 2026 Perceptlayer 7 min read
    
    ## [Google News API: Search News Articles as JSON](https://perceptlayer.com/blog/google-news-api)
    
    One GET call to /v1/google-news/news returns articles with title, link, source and ISO date as JSON for 1 credit. Parameters, a real response, cost.
    
3.  [API guides](https://perceptlayer.com/blog/category/api-guides) 25 Nov 2026 Perceptlayer 8 min read
    
    ## [MyAnimeList API: Anime and Manga Data as JSON](https://perceptlayer.com/blog/myanimelist-api-json)
    
    Six MyAnimeList endpoints at 1 credit each: anime and manga by id, search, season and top lists, with score, rank, members and a real response.
