Google News 5 min read

Google News API: Real-Time Monitoring Guide 2026

Build Google News monitoring with SearchCans for brand alerts, PR research, and market intelligence. Compare query parameters, filtering, and workflows.

(Updated: ) • 965 words

A Python Google News monitor should record what it observed, what changed and which polls failed. A returned article is a discovery candidate. It is not a verified archive, a guaranteed publication timestamp or evidence that a story is true.

Search results are a discovery queue, not a verified article archive. Poll a fixed set of queries, keep the source URL beside any extracted text, and review important alerts before acting.

Request news results with the documented contract

SearchCans uses POST /api/v1/search with t:"google_news", the query in s and the intended country. Validate HTTP and business status before reading data.news_results. Article URLs are in link. Preserve source, date and iso_date when present; do not replace a missing publication date with the time your code ran. See the Google News API parameters and response.

Store observations separately from publication dates

The following local implementation receives an already returned envelope. It makes no API call and sends no email or Slack message. Its input times and articles are synthetic. Use a persistent database and an application scheduler in a real deployment.

import hashlib
import json
import sqlite3
from urllib.parse import urlsplit, urlunsplit

def open_log():
    db = sqlite3.connect(":memory:")  # use a persisted file in your application
    db.executescript("""
    CREATE TABLE versions (
      query TEXT, url TEXT, version_sha TEXT, observed_at TEXT,
      title TEXT, source_json TEXT, date_raw TEXT, iso_date_raw TEXT,
      PRIMARY KEY(query, url, version_sha));
    CREATE TABLE latest (query TEXT, url TEXT, version_sha TEXT,
      PRIMARY KEY(query, url));
    CREATE TABLE observations (query TEXT, url TEXT, version_sha TEXT, observed_at TEXT);
    CREATE TABLE batches (query TEXT, observed_at TEXT, status TEXT, detail TEXT);
    """)
    return db

def canonical_candidate(value):
    if not isinstance(value, str):
        return None
    p = urlsplit(value)
    if p.scheme not in ("http", "https") or not p.netloc:
        return None
    # Strip fragments only; query parameters can identify different articles.
    return urlunsplit((p.scheme, p.netloc, p.path, p.query, ""))

def record_batch(db, query, envelope, observed_at):
    if not isinstance(envelope, dict) or envelope.get("code") != 0:
        db.execute("INSERT INTO batches VALUES (?, ?, ?, ?)",
                   (query, observed_at, "failed", "business_or_envelope"))
        db.commit()
        return {"status": "failed", "events": []}
    data = envelope.get("data")
    rows = data.get("news_results") if isinstance(data, dict) else None
    if not isinstance(rows, list):
        db.execute("INSERT INTO batches VALUES (?, ?, ?, ?)",
                   (query, observed_at, "failed", "news_results_missing"))
        db.commit()
        return {"status": "failed", "events": []}
    events, rejected = [], 0
    for row in rows:
        if not isinstance(row, dict):
            rejected += 1
            continue
        url = canonical_candidate(row.get("link"))
        if not url or not isinstance(row.get("title"), str):
            rejected += 1
            continue
        record = {k: row.get(k) for k in ("title", "source", "date", "iso_date")}
        raw = json.dumps(record, sort_keys=True, ensure_ascii=False)
        version = hashlib.sha256(raw.encode()).hexdigest()
        previous = db.execute("SELECT version_sha FROM latest WHERE query=? AND url=?",
                              (query, url)).fetchone()
        db.execute("INSERT OR IGNORE INTO versions VALUES (?, ?, ?, ?, ?, ?, ?, ?)",
            (query, url, version, observed_at, row["title"],
             json.dumps(row.get("source"), ensure_ascii=False),
             json.dumps(row.get("date")), json.dumps(row.get("iso_date"))))
        db.execute("INSERT INTO observations VALUES (?, ?, ?, ?)",
                   (query, url, version, observed_at))
        db.execute("INSERT INTO latest VALUES (?, ?, ?) ON CONFLICT(query, url) "
                   "DO UPDATE SET version_sha=excluded.version_sha", (query, url, version))
        if previous is None or previous[0] != version:
            events.append({"url": url, "kind": "changed" if previous else "first_seen",
                           "version_sha": version})
    status = "partial" if rejected else "ok"
    db.execute("INSERT INTO batches VALUES (?, ?, ?, ?)",
               (query, observed_at, status, "rejected=" + str(rejected)))
    db.commit()
    return {"status": status, "events": events}

Replay the failure and change cases

For the owned fixture, the first batch inserts one event; an identical second batch inserts none. Changing the title at the same URL creates a changed event. Returning from version B to an already seen version A also creates a changed event: the latest state and every observation are stored separately from deduplicated version bodies. A business failure produces a failed batch record instead of a successful empty poll. Missing publication dates remain null. These are deterministic storage checks, not a test of Google News coverage or SearchCans latency.

The version hash covers the returned title, source and date fields. A relative date string can change without an editorial change; inspect the field differences before calling an event a corrected story. URL normalization strips fragments only. Tracking parameters, redirects, syndicated articles and multiple URLs for one story require separate identity rules chosen for your sources.

Keep alerts and evidence review outside collection

A newly observed URL does not prove a newly published story. A source disappearing from a later results page does not prove deletion. Keep a manual review state for consequential alerts. If you read a permitted public article, save its extraction time and body hash beside the result URL; retain failures rather than substitute an empty body. Reader API contract documents extraction options, which do not grant permission to reuse a publisher’s content.

SearchCans is not a route to private news wires, account-only content or a guarantee of access to a publisher. For a digest and summary workflow, use news curation with source evidence. This page owns repeated news observations and review candidates, rather than a second summarization tutorial.

Tags:

Google News Media Monitoring Brand Tracking PR Finance
SearchCans Team

SearchCans Team

SERP API & Reader API Experts

The SearchCans engineering team builds high-performance search APIs serving developers worldwide. We share practical tutorials, best practices, and insights on SERP data, web scraping, RAG pipelines, and AI integration.

Ready to build with SearchCans?

Test SERP API and Reader API with 100 free credits. No credit card required.