# Google News Scraper — Real Publisher URLs, Topics & Search (`foxlabs/google-news-scraper`) Actor

Scrape Google News articles by keyword, topic, country, language, or time window. Automatically decodes Google News redirect links into canonical publisher URLs and enriches images, descriptions, and authors.

- **URL**: https://apify.com/foxlabs/google-news-scraper.md
- **Developed by:** [Berkan Kaplan](https://apify.com/foxlabs) (community)
- **Categories:** News, AI
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

$1.20 / 1,000 google news articles

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.

Learn more: https://docs.apify.com/actors/running/actors-in-store.md#pay-per-event

## What's an Apify Actor?

An Actor is a serverless cloud program that runs on the Apify platform. It has two run modes.
In Batch mode, an Actor accepts a well-defined JSON input, performs an action which can take anything from a few seconds to a few hours,
and optionally produces a well-defined JSON output, datasets with results, or files in key-value store.
In Standby mode, an Actor provides a web server which can be used as a website, API, or an MCP server.

Apify vocabulary and the platform model are defined once, in the agent quickstart at https://apify.com/agents.md.

## How to integrate an Actor?

If asked about integration, you help developers integrate Actors into their projects.
You adapt to their stack and deliver integrations that are safe, well-documented, and production-ready.

Do not guess an integration path. Every one of them is in the agent quickstart at https://apify.com/agents.md: the Apify MCP server, Agent Skills with the Apify CLI, the JavaScript and Python clients, the REST API, and the account-free path for an agent with no human to sign in. It also carries the rule on stating cost before the first paid run.

For examples already wired to this Actor's own input schema, see the [API](#api) section below.

Each client library has reference documentation the quickstart does not restate: [JavaScript/TypeScript](https://docs.apify.com/api/client/js/docs.md) (`npm install apify-client`) and [Python](https://docs.apify.com/api/client/python/docs.md) (`pip install apify-client`).

# README

<p align="center">
  <img src="https://img.shields.io/badge/Pay--Per--Event-%241.20_%2F_1K_Articles-00C853?style=for-the-badge" alt="Pay-Per-Event" />&nbsp;
  <img src="https://img.shields.io/badge/Decoded_Publisher_URLs-60%2B_Countries_%26_Editions-2962FF?style=for-the-badge" alt="Decoded Publisher URLs" />&nbsp;
  <img src="https://img.shields.io/badge/AI_Agent_Ready-MCP_%26_x402-7C4DFF?style=for-the-badge" alt="MCP & x402 Ready" />&nbsp;
  <img src="https://img.shields.io/badge/Dual_Runtime-Batch_%2B_Standby_API-FF6D00?style=for-the-badge" alt="Batch + Standby API" />
</p>

## Google News Scraper — Real Publisher URLs, Topics & Search 🚀

**foXLabs Media, Brand & Research Intelligence Series:** [Telegram Channel Scraper](https://apify.com/foxlabs/telegram-channel-scraper) · [Threads Scraper](https://apify.com/foxlabs/threads-scraper) · [Spotify Podcast Scraper](https://apify.com/foxlabs/spotify-podcast-scraper) · [Google Patents Scraper](https://apify.com/foxlabs/google-patents-scraper) · [AI Brand Monitor](https://apify.com/foxlabs/ai-brand-monitor)

🎉 Turn any **Google News keyword, stock ticker, boolean query (`NVIDIA OR AMD`, `site:reuters.com`), standard topic section (`TECHNOLOGY`, `BUSINESS`, `WORLD`), or custom Google News feed URL** across **60+ country & language editions** into clean **30-column news intelligence** — automatically **resolving opaque `news.google.com/rss/articles/CBMi...` redirect wrappers into real canonical publisher URLs** (`reuters.com`, `bloomberg.com`, `ft.com`) and extracting **clean full-article body text (`fullText`), word counts, reading time, keywords, OpenGraph lead images, article summaries and byline authors** inside a fast `256 MB` runtime.

Built for AI RAG & news-grounding agents, PR & brand-reputation monitoring teams, quantitative finance & equity-event trackers, competitive intelligence analysts and media research pipelines.

### 🔍 What is the Google News Scraper — and when should you use it?

Anyone who has tried consuming Google News feeds in 2025–2026 hits the same wall: Google News replaces real article links with opaque, client-gated `news.google.com/rss/articles/CBMi...` tokens that standard HTTP redirects cannot follow, leaving downstream LLMs, RAG crawlers and PR dashboards blind to the actual destination URL, lead image and article summary. Launching headless Chrome instances just to resolve redirects costs dollars per thousand articles.

This Actor solves Google News collection and canonical URL decoding cleanly without browsers:

- **Keyword/Boolean Queries, 9 Topic Sections & Direct Feed URLs** — run multi-query searches (`queries: ["artificial intelligence", "NVIDIA OR AMD", "site:ft.com private credit"]`), monitor official sections (`topics: ["TECHNOLOGY", "BUSINESS", "SCIENCE"]`), or pass custom `rssUrls` across `60+` country (`country`) and `language` editions.
- **Granular Recency Windows (`timeRange`)** — filter search coverage to the last hour (`"1h"`), `"12h"`, `"1d"`, `"7d"`, `"30d"`, `"1y"` or `"any"`.
- **Automatic Canonical Publisher URL Resolution (`decodePublisherUrls: true`)** — resolves Google News `CBMi...` tokens directly into canonical publisher URLs (`publisherUrl`) without spinning up a browser.
- **Publisher Article Metadata Enrichment (`enrichArticleMeta: true`)** — visits resolved publisher URLs to attach `imageUrl`, `summary` (`og:description` / meta description), `author` and cluster `relatedArticles[]`.

**Use it when you need:** real-time breaking-news RAG grounding for AI agents; automated daily PR/brand mention clipping across global languages; M\&A, earnings & regulatory news monitoring by ticker; or high-volume publisher link discovery at `$1.20 / 1,000` articles.

**Use something else when:** you need **full-length paywalled body text** behind publisher subscriptions (this Actor extracts headlines, canonical URLs, publisher metadata, authors, OpenGraph summaries and lead images from publicly accessible pages).

### 🤖 Use with AI agents (MCP, Claude, Cursor & x402)

**Already connected to the Apify MCP server?** Ask your AI assistant to call `foxlabs/google-news-scraper`.

- **Hosted MCP URL (zero install):** `https://mcp.apify.com?tools=foxlabs/google-news-scraper`
- **Local stdio config (Claude Desktop, Cursor, Cline, Windsurf):**

```json
{
  "mcpServers": {
    "google-news-scraper": {
      "command": "npx",
      "args": ["-y", "@apify/actors-mcp-server", "--tools", "foxlabs/google-news-scraper"],
      "env": { "APIFY_TOKEN": "YOUR_APIFY_TOKEN" }
    }
  }
}
```

**Your agent can pay for its own runs.** Priced at **$0.0012 per unique `article`** (`$1.20 / 1,000`, diagnostic `status` rows `$0.00`), this Actor supports autonomous agentic micropayments via **x402 (USDC on Base)** or **Skyfire** alongside standard Apify tokens.

Copy-paste prompt for Claude, ChatGPT, Cursor or any MCP-enabled assistant:

```text
Use the Apify Actor `foxlabs/google-news-scraper` to search live Google News articles with resolved canonical publisher URLs, publication timestamps, authors and summaries.

Input fields:
- `queries`: array of keywords, tickers or Google News boolean operators (e.g. ["NVIDIA OR AMD", "site:reuters.com AI"])
- `topics`: optional array from ["HEADLINES", "WORLD", "NATION", "BUSINESS", "TECHNOLOGY", "ENTERTAINMENT", "SPORTS", "SCIENCE", "HEALTH"]
- `rssUrls`: optional array of https://news.google.com/rss/... URLs
- `timeRange`: "any" | "1h" | "12h" | "1d" | "7d" (default) | "30d" | "1y"
- `country`: 2-letter ISO edition code (default "US", e.g. "GB", "DE", "FR", "TR", "JP", "IN")
- `language`: 2-letter language code (default "en", e.g. "de", "fr", "tr", "es")
- `decodePublisherUrls`: boolean (default true)
- `enrichArticleMeta`: boolean (default true)
- `maxArticlesPerFeed`: integer 1..100 (default 20)

Start with:
{"queries":["artificial intelligence","OpenAI OR Anthropic"],"timeRange":"1d","country":"US","language":"en","decodePublisherUrls":true,"enrichArticleMeta":true,"maxArticlesPerFeed":20}
```

**Things you can ask your AI agent:**

- *"Pull the top 20 Google News articles from the last 24 hours (`timeRange: '1d'`) mentioning `'semiconductor tariffs'` with resolved publisher URLs and summarize the consensus."*
- *"Compare today's `BUSINESS` and `TECHNOLOGY` headlines across the `US` (`en`), `DE` (`de`) and `JP` (`ja`) editions."*
- *"Monitor `site:reuters.com OR site:bloomberg.com` for `'private credit'` over the past 7 days and return canonical links, timestamps and authors."*

The machine-readable Actor summary, MCP tool definition and schema live at `https://apify.com/foxlabs/google-news-scraper.md`.

### 📋 Overview

Everything needed to ingest clean, deduplicated Google News articles with real publisher URLs — in one 22-column dataset.

| Property | Details |
|---|---|
| **Public data source** | Public Google News search/topic feeds (`news.google.com`) + publisher OpenGraph headers |
| **Authentication required** | None — zero Google Cloud API keys, NewsAPI subscriptions or cookies |
| **Container footprint** | Lightweight `256 MB` HTTP runtime (~18.1s for 20 URL-decoded + enriched articles on QA) |
| **Output row types (`rowType`)** | `article` (`$0.0012` / `$1.20 per 1,000`), `status` (`$0.00` diagnostic) |
| **Deduplication & restart safety** | Deterministic `rowKey` (`gnews:<articleId>`) across overlapping queries & topics |
| **Execution modes** | Standard Batch Dataset runs + synchronous Standby HTTP API (`GET /`, `POST /scrape`) |

**Why data & AI teams pick this Actor:**

- 🔗 **Real canonical `publisherUrl`s — zero headless browser bloat** — resolves `news.google.com/rss/articles/CBMi...` wrappers into clean destination URLs (`19/20`–`29/30` resolution rate on verified QA runs) inside `256 MB` RAM.
- 🌍 **60+ localized country & language editions** — switch seamlessly between `US`/`en`, `GB`/`en`, `DE`/`de`, `FR`/`fr`, `TR`/`tr`, `ES`/`es`, `BR`/`pt`, `IN`/`en`, `AU`/`en` and dozens more.
- 🧠 **Advanced Google News search operators supported** — use exact phrases (`"series B"`), `OR`, exclusions (`-crypto`), and domain filters (`site:reuters.com`) paired with `timeRange` (`1h`..`1y`).
- 📰 **Story cluster context (`relatedArticles[]`)** — captures multi-publisher coverage clusters grouped under major breaking stories alongside `relatedCoverageCount`.
- 💸 **Flat `$1.20 / 1,000` all-inclusive PPE** — URL decoding and publisher OpenGraph metadata enrichment carry **zero extra per-event surcharge**.

### ✨ Key Features

- ⏱️ **Sub-Hour Breaking News Filtering** — Combine `timeRange: "1h"` or `"12h"` with scheduled runs for near-real-time alerting on company names, executives, tickers or CVEs.
- 🗂️ **9 Official Google News Topic Feeds** — Scrape `HEADLINES`, `WORLD`, `NATION`, `BUSINESS`, `TECHNOLOGY`, `SCIENCE`, `HEALTH`, `SPORTS` and `ENTERTAINMENT` in one configuration.
- 🖼️ **Rich Publisher Metadata (`enrichArticleMeta: true`)** — Extracts `author`, `summary`, `imageUrl`, `sourceName`, `sourceDomain` and `sourceDomainUrl` from resolved articles.
- ⚡ **Ultra-Fast Feed-Only Mode** — Disable `decodePublisherUrls: false` and `enrichArticleMeta: false` whenever you want 100 headlines, sources and timestamps in ~2 seconds.

### 🎬 Quick Start (API & Standby HTTP)

**1. Synchronous Batch API call (returns JSON array directly):**

```bash
curl -X POST "https://api.apify.com/v2/acts/foxlabs~google-news-scraper/run-sync-get-dataset-items?token=YOUR_APIFY_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"queries":["artificial intelligence"],"timeRange":"1d","country":"US","language":"en","decodePublisherUrls":true,"enrichArticleMeta":true,"maxArticlesPerFeed":20}'
```

**2. Real-time Standby HTTP API (`POST /scrape`):**

```bash
curl -X POST "https://foxlabs--google-news-scraper.apify.actor/scrape?token=YOUR_APIFY_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"queries":["NVIDIA OR AMD"],"timeRange":"12h","country":"US","language":"en","maxArticlesPerFeed":10}'
```

### 🚀 Getting Started (3 steps)

1. **Enter search queries, topics or RSS URLs** — Add keywords/boolean expressions in **Queries** (`"artificial intelligence"`, `"Tesla"`), select standard **Topics** (`"TECHNOLOGY"`), or paste custom Google News feed URLs.
2. **Select edition & recency window** — Pick `country` (`"US"`, `"GB"`, `"DE"`, `"TR"`), `language` (`"en"`, `"de"`, `"tr"`) and `timeRange` (`"1h"`, `"1d"`, `"7d"`).
3. **Run & connect** — Click **Start** and stream clean `publisherUrl` articles to your RAG vector DB, Slack channel, n8n workflow or BI warehouse.

### 📥 Input & Filters

```json
{
  "queries": ["artificial intelligence", "site:reuters.com semiconductors"],
  "topics": ["TECHNOLOGY"],
  "rssUrls": [],
  "timeRange": "7d",
  "dateFrom": "",
  "dateTo": "",
  "country": "US",
  "language": "en",
  "decodePublisherUrls": true,
  "enrichArticleMeta": true,
  "extractFullText": true,
  "maxArticlesPerFeed": 25
}
```

| Field | Type | Default | Description |
|---|---|---|---|
| `queries` | `array<string>` | `["artificial intelligence"]` | Keywords, companies, stock tickers or boolean queries (`OR`, `"exact"`, `-exclude`, `site:`). |
| `topics` | `array<string>` | `[]` | Official Google News sections: `HEADLINES`, `WORLD`, `NATION`, `BUSINESS`, `TECHNOLOGY`, `ENTERTAINMENT`, `SPORTS`, `SCIENCE`, `HEALTH`. |
| `rssUrls` | `array<string>` | `[]` | Direct `https://news.google.com/rss/...` topic, geo or custom feed URLs. |
| `timeRange` | `string` | `"7d"` | Recency filter for `queries`: `"any"`, `"1h"`, `"12h"`, `"1d"`, `"7d"`, `"30d"`, `"1y"`. |
| `dateFrom` / `dateTo` | `string` | `""` / `""` | Exact date bounds in `YYYY-MM-DD` format (`after:` / `before:` operators, e.g. `"2026-11-01"`). |
| `country` | `string` | `"US"` | Two-letter country edition code (`US`, `GB`, `DE`, `FR`, `TR`, `IN`, `AU`, `CA`, `JP`, `BR`, etc.). |
| `language` | `string` | `"en"` | Two-letter ISO language code (`en`, `de`, `fr`, `tr`, `es`, `it`, `pt`, `ja`, etc.). |
| `decodePublisherUrls` | `boolean` | `true` | Resolve `news.google.com/rss/articles/...` wrappers into canonical `publisherUrl` links. |
| `enrichArticleMeta` | `boolean` | `true` | Fetch each resolved `publisherUrl` for OpenGraph/JSON-LD `imageUrl`, `summary`, `author`, `section` & `keywords[]`. |
| `extractFullText` | `boolean` | `true` | Extract clean full-body article text (`fullText`), `wordCount`, and `readingTimeMinutes` at `$0` extra event cost. |
| `maxArticlesPerFeed` | `integer` | `20` | Maximum articles returned per query, topic or custom RSS URL (`1`–`100`). |
| `proxyConfiguration` | `object` | `{"useApifyProxy": true}` | Managed automatically via standard Apify Proxy. |

**Copy-paste input recipes:**

- **Hourly breaking-news ticker & full-article RAG feed (`timeRange: "1h"`, `extractFullText: true`):**
  `{"queries":["\"OpenAI\" OR \"Anthropic\"","\"Stripe\" fintech"],"timeRange":"1h","country":"US","language":"en","decodePublisherUrls":true,"enrichArticleMeta":true,"extractFullText":true,"maxArticlesPerFeed":20}`
- **Exact historical date-window search (`dateFrom` + `dateTo`):**
  `{"queries":["semiconductor tariffs"],"dateFrom":"2026-11-01","dateTo":"2026-11-14","country":"US","language":"en","extractFullText":true,"maxArticlesPerFeed":30}`
- **Ultra-fast 100-headline metadata sweep (`decodePublisherUrls: false`):**
  `{"queries":["renewable energy","grid storage"],"timeRange":"7d","decodePublisherUrls":false,"enrichArticleMeta":false,"extractFullText":false,"maxArticlesPerFeed":100}`

### 📤 Output Schema & Real Sample Record

Each item carries `rowType` (`"article"` or free diagnostic `"status"`) and deterministic `rowKey` (`gnews:<articleId>`).

| Field Group | Fields (30 Columns Total) |
|---|---|
| **Article Identity & Headlines** | `rowKey`, `rowType`, `articleId`, `title` *(clean headline without trailing source suffix)*, `rawTitle`, `publishedAt`, `modifiedAt`, `scrapedAt` |
| **Publisher & Canonical URLs** | `publisherUrl`, `canonicalUrl`, `urlDecoded`, `googleNewsUrl`, `sourceName`, `siteName`, `sourceDomain`, `sourceDomainUrl` |
| **Full Article Body & Metadata** | `fullText`, `wordCount`, `readingTimeMinutes`, `summary`, `author`, `section`, `keywords[]`, `imageUrl`, `relatedCoverageCount`, `relatedArticles[]` |
| **Edition & Query Context** | `queryOrTopic`, `feedType` (`"search"`, `"topic"`, `"custom_rss"`), `country`, `language` |

#### Real sample record (from verified platform QA run `W00dOTj7iEbHL7ck9` & pre-publish run `osfsi66xdaOKg3fBp`, 2026-11-14)

```json
{
  "rowKey": "gnews:CBMidEFVX3lxTE41OVprOE5tN2lBVzZuck52RDRvRU9FU0JvNThpald0enFRaUNzSHBxY0QzVmVhWnJMMHNEUXAzUlNrRnFmOFBtNkpTUVhTQ1lkdFVFeXJpRUZodHAwWTZwMDQ1UzNfMThKTFZqSjZuWkxtOEl2",
  "rowType": "article",
  "articleId": "CBMidEFVX3lxTE41OVprOE5tN2lBVzZuck52RDRvRU9FU0JvNThpald0enFRaUNzSHBxY0QzVmVhWnJMMHNEUXAzUlNrRnFmOFBtNkpTUVhTQ1lkdFVFeXJpRUZodHAwWTZwMDQ1UzNfMThKTFZqSjZuWkxtOEl2",
  "title": "DOE Explains...Artificial Intelligence",
  "rawTitle": "DOE Explains...Artificial Intelligence - Department of Energy (.gov)",
  "sourceName": "Department of Energy (.gov)",
  "sourceDomain": "energy.gov",
  "sourceDomainUrl": "https://www.energy.gov",
  "publishedAt": "2026-11-10T18:13:51.000Z",
  "googleNewsUrl": "https://news.google.com/rss/articles/CBMidEFVX3lxTE41OVprOE5tN2lBVzZuck52RDRvRU9FU0JvNThpald0enFRaUNzSHBxY0QzVmVhWnJMMHNEUXAzUlNrRnFmOFBtNkpTUVhTQ1lkdFVFeXJpRUZodHAwWTZwMDQ1UzNfMThKTFZqSjZuWkxtOEl2?oc=5",
  "publisherUrl": "https://www.energy.gov/science/doe-explainsartificial-intelligence",
  "urlDecoded": true,
  "author": null,
  "summary": "Artificial intelligence (AI) refers to computer systems capable of performing complex tasks that historically only a human could do, such as reasoning, decision making, or solving problems.",
  "imageUrl": "https://www.energy.gov/sites/default/files/2023-04/doe-explains-ai.png",
  "relatedCoverageCount": 0,
  "relatedArticles": [],
  "queryOrTopic": "artificial intelligence",
  "feedType": "search",
  "country": "US",
  "language": "en",
  "scrapedAt": "2026-11-14T05:07:44.843Z"
}
```

Every completed run also writes a `SOURCE_REPORT` telemetry summary to the default Key-Value Store.

### 🧪 Data Quality — Measured

Verified on the Apify platform across QA runs (`W00dOTj7iEbHL7ck9`, `gy6nbf3ewwhIhfHm5`, `3QR5GxfXWgudh6JnS`) and pre-publish live billing verification (`osfsi66xdaOKg3fBp` on 2026-11-14):

- **95%–100% canonical publisher URL resolution:** Across multi-query & topic platform runs (`19/20`, `29/30`, `10/10`), opaque Google News article tokens resolved cleanly into real destination URLs (`urlDecoded: true`), with graceful `publisherUrl: null` (`urlDecoded: false`) when an upstream publisher link is temporarily unreachable.
- **100% cross-feed deduplication:** Overlapping search queries and topic feeds deduplicate automatically via `gnews:<articleId>` (`0` duplicate rows).
- **Verified PPE billing accuracy:** Settled `chargedEventCounts` on run `osfsi66xdaOKg3fBp` matched `article` rows `1:1`, with empty-input `status` runs verified at `$0.00`.

### ⏱️ Performance — Measured

Measured on the Apify platform at the default **`256 MB`** memory tier:

- **18.1 seconds for 20 decoded + metadata-enriched articles:** Platform run `W00dOTj7iEbHL7ck9` (`decodePublisherUrls: true`, `enrichArticleMeta: true`) completed in **`18.1s`** on standard Datacenter proxies inside `256 MB` RAM.
- **~2–4 seconds in feed-only mode:** Setting `decodePublisherUrls: false` and `enrichArticleMeta: false` collects up to 100 articles per feed in seconds.

### 💼 Use Cases

1. **Real-Time LLM & RAG News Grounding (MCP / Standby)**
   - *Input:* `{"queries":["NVIDIA earnings","TSMC wafer capacity"],"timeRange":"1d","decodePublisherUrls":true,"enrichArticleMeta":true,"maxArticlesPerFeed":15}`
   - *Output:* Verified headlines, exact `publishedAt` ISO timestamps, canonical `publisherUrl` citations and publisher `summary` snippets.
   - *Business action:* Eliminate LLM knowledge-cutoff hallucinations in financial, legal and research copilots.

2. **Global Brand, Executive & Crisis PR Monitoring**
   - *Input:* Hourly scheduled run tracking your brand, competitors and executive names across `US`, `GB`, `DE` and `TR`.
   - *Output:* Instant deduplicated stream of new press mentions with `sourceDomain` authority and `relatedCoverageCount` velocity.
   - *Business action:* Alert comms teams on Slack the moment a story starts clustering across multiple outlets (`relatedCoverageCount >= 3`).

3. **B2B Trigger-Event Sales Prospecting**
   - *Input:* `{"queries":["\"raised\" \"Series A\" OR \"Series B\" AI","\"appointed Chief\" cybersecurity"],"timeRange":"7d","maxArticlesPerFeed":50}`
   - *Output:* Newly funded startups and C-suite leadership changes with source links and summaries.
   - *Business action:* Trigger timely outbound sequences within hours of a funding round or executive hire announcement.

4. **Quantitative Macro & Sector Sentiment Pipelines**
   - *Input:* Daily `BUSINESS` and `TECHNOLOGY` topic scrapes + sector ticker queries across G7 countries.
   - *Output:* Clean time-stamped headline & summary corpus at `$1.20 / 1,000` articles.
   - *Business action:* Feed NLP sentiment classifiers without paying `$500+/mo` enterprise NewsAPI fees.

### 🔗 Integrations (Node.js, Python, n8n, Make & Clay)

#### JavaScript / Node.js (`apify-client`)

```javascript
import { ApifyClient } from 'apify-client';

const client = new ApifyClient({ token: process.env.APIFY_TOKEN });
const run = await client.actor('foxlabs/google-news-scraper').call({
    queries: ['artificial intelligence', 'NVIDIA OR AMD'],
    timeRange: '1d',
    country: 'US',
    language: 'en',
    decodePublisherUrls: true,
    enrichArticleMeta: true,
    maxArticlesPerFeed: 20,
});

const { items } = await client.dataset(run.defaultDatasetId).listItems();
console.log(`Fetched ${items.length} Google News articles`, items[0]);
```

#### Python (`apify-client` v3)

```python
import os
from apify_client import ApifyClient

client = ApifyClient(os.environ["APIFY_TOKEN"])
run = client.actor("foxlabs/google-news-scraper").call(
    run_input={
        "queries": ["artificial intelligence"],
        "timeRange": "1d",
        "country": "US",
        "language": "en",
        "decodePublisherUrls": True,
        "enrichArticleMeta": True,
        "maxArticlesPerFeed": 20,
    }
)

for item in client.dataset(run.default_dataset_id).iterate_items():
    if item["rowType"] == "article":
        print(item["publishedAt"], item["sourceName"], "->", item["publisherUrl"] or item["googleNewsUrl"])
```

*(Written for `apify-client` v3 where `call()` returns a `Run` object exposing `run.default_dataset_id`; on `apify-client` v1/v2 use `run["defaultDatasetId"]`.)*

#### n8n, Make, Zapier & Clay

- **Automated morning news briefing (n8n / Make):** Schedule at `07:00` daily (`timeRange: "1d"`) → pass `title`, `sourceName`, `summary` and `publisherUrl` to Claude/OpenAI → post an executive digest to Slack, Notion or email.
- **Standby synchronous API:** POST to `https://foxlabs--google-news-scraper.apify.actor/scrape` for real-time news lookups inside AI agents or Clay company-research columns.

### 📊 Pricing (Pay-Per-Event)

Simple, flat **Pay-Per-Event (PPE)** pricing — canonical URL resolution and publisher metadata enrichment are included at **no extra charge**:

| Event Name | Trigger | Price per Item | Price per 1,000 |
|---|---|---|---|
| `article` | Once per unique Google News article delivered (`rowType: "article"`) | **$0.0012** | **$1.20 / 1,000** |
| `status` *(diagnostic)* | Empty input, invalid feed URL, or zero-match query note | **$0.00 (Free)** | **$0.00** |

**Worked cost examples:**

- **100 breaking news articles with decoded publisher URLs & OpenGraph summaries:** `100 × $0.0012` = **$0.12**
- **500 daily brand & competitor mentions across 5 countries:** `500 × $0.0012` = **$0.60**
- **1,000 global articles:** `1,000 × $0.0012` = **$1.20**

**Billing guarantees:**

- **All-inclusive rate:** `decodePublisherUrls: true`, `enrichArticleMeta: true` and Apify Proxy traffic are all included inside `$0.0012` per article.
- **Zero duplicate charges:** Articles matching both a keyword in `queries` and a section in `topics` are emitted and billed once (`gnews:<articleId>`).
- **Hard spend cap support:** Configure **Maximum cost per run** in Apify options; `ChargingManager` stops cleanly at your cap. *(Note: if Apify applies its platform `apify-actor-start` fee on your plan, that start event applies when a run starts, including zero-result runs.)*

### ❓ Frequently Asked Questions (FAQ)

#### Why do most Google News RSS scrapers return `news.google.com/rss/articles/CBMi...` links instead of real publisher URLs?

Google News wraps every outbound link in an encoded `CBMi...` token that no longer issues a standard HTTP `301`/`302` redirect when requested by normal HTTP clients or RSS readers. With `decodePublisherUrls: true` (enabled by default), this Actor resolves those tokens directly into canonical publisher URLs (such as `https://www.reuters.com/...` or `https://www.energy.gov/...`) without needing slow headless browsers.

#### Do I need a NewsAPI key, Google Cloud key, or residential proxies?

No. Commercial news APIs often charge `$449+/month` for commercial usage and delay breaking articles by hours. This Actor runs 100% keylessly on standard Datacenter proxies managed automatically inside the Actor — zero external keys, subscriptions or cookies required.

#### Which Google News search operators can I use inside `queries`?

You can use full Google News search syntax inside any `queries` entry: exact-phrase quotes (`"sovereign wealth fund"`), boolean `OR` (`"OpenAI" OR "Anthropic"`), exclusions (`bitcoin -ethereum`), domain restrictions (`site:bloomberg.com` or `site:sec.gov`), and title filters (`intitle:acquisition`). Combine those operators with `timeRange` (`"1h"`, `"12h"`, `"1d"`, `"7d"`, `"30d"`, `"1y"`) for surgical precision.

#### Why is `maxArticlesPerFeed` capped at `100` per single query or topic?

Google News serves up to `100` ranked articles per individual search query or topic section feed. To collect thousands of articles across a broad theme, partition your input into specific sub-queries, publisher `site:` filters, `timeRange` slices or country editions — `gnews:<articleId>` deduplication ensures overlapping stories are never billed twice.

#### What is the difference between `title` and `rawTitle` in the output?

Google News appends the publisher's name to the end of raw feed headlines (for example `"DOE Explains...Artificial Intelligence - Department of Energy (.gov)"`). The Actor preserves the exact original string in `rawTitle` while stripping the trailing `" - Source Name"` suffix to give you a clean `title` alongside structured `sourceName` and `sourceDomain` fields.

#### Why is `urlDecoded` occasionally `false` or `summary`/`author` `null` on certain articles?

In rare cases where Google's redirect token cannot be resolved or when a strict paywalled publisher blocks automated OpenGraph metadata fetches (HTTP `401`/`403`), the Actor never drops the news event: it still delivers the verified headline, `publishedAt`, `sourceName`, `sourceDomain` and working `googleNewsUrl`, setting `publisherUrl: null` (`urlDecoded: false`) or `author: null` honestly instead of failing the run.

#### Does `enrichArticleMeta: true` cost extra per article?

No. Both `decodePublisherUrls: true` and `enrichArticleMeta: true` are included inside the flat `$0.0012` (`$1.20 / 1,000`) `article` event price. You only disable them (`false`) if you want ultra-low-latency 2-second headline sweeps and do not need publisher URLs or OpenGraph images/summaries.

#### How do I scrape only Google News `topics` (like `BUSINESS` and `TECHNOLOGY`) without running the default keyword search?

Clear the prefilled `"artificial intelligence"` entry inside **Queries** in Apify Console, or pass `"queries": []` in your JSON payload alongside `"topics": ["BUSINESS", "TECHNOLOGY"]` (and your chosen `"country"` and `"language"` codes) so only those official Google News topic sections are collected.

#### Which countries and languages are supported?

Over 60 Google News country/language editions are supported out of the box — pass any valid 2-letter ISO `country` (`"US"`, `"GB"`, `"DE"`, `"FR"`, `"ES"`, `"IT"`, `"NL"`, `"TR"`, `"PL"`, `"BR"`, `"MX"`, `"CA"`, `"AU"`, `"IN"`, `"SG"`, `"JP"`, `"KR"`, `"AE"`, etc.) paired with its 2-letter `language` code (`"en"`, `"de"`, `"fr"`, `"es"`, `"it"`, `"nl"`, `"tr"`, `"pt"`, `"ja"`, `"ko"`, `"ar"`).

#### What are `relatedCoverageCount` and `relatedArticles[]`?

On major breaking stories (especially inside `HEADLINES`, `WORLD`, `BUSINESS` and `TECHNOLOGY` topic feeds), Google News groups multiple publishers covering the same event into a story cluster. `relatedArticles[]` lists the clustered companion headlines and outlets, while `relatedCoverageCount` gives an instant signal of media velocity.

#### Can AI agents call this Actor in real time via MCP or Standby HTTP?

Yes. Use `https://mcp.apify.com?tools=foxlabs/google-news-scraper` to expose live Google News search directly inside Claude, Cursor or custom MCP agents, or send synchronous `POST /scrape` requests to `https://foxlabs--google-news-scraper.apify.actor/scrape`.

#### Is the Actor protected against duplicate articles across container restarts?

Yes. On startup, the Actor reads all existing `gnews:<articleId>` keys from the active run's Dataset and skips any article already delivered before a container migration or restart, guaranteeing 100% Dataset uniqueness and zero double-billing.

### 🐛 Troubleshooting

- **Dataset contains only `rowType: "status"` (`EMPTY_INPUT`):** `queries`, `topics` and `rssUrls` were all empty. Add at least one search query, topic section, or Google News RSS URL.
- **Default `"artificial intelligence"` ran alongside your `topics` or `rssUrls`:** Pass `"queries": []` when you only want `topics` or `rssUrls`.
- **`publisherUrl` is `null` on all rows:** Check whether `decodePublisherUrls` was set to `false` in your input; set `"decodePublisherUrls": true` to resolve canonical destination links.
- **Wrong language articles returned:** Make sure **both** `country` and `language` match your target edition (for example `"country": "DE", "language": "de"` for German news in Germany).

### 🚧 What It Does Not Do

- Does **not** bypass publisher subscription paywalls (e.g., WSJ, FT, Bloomberg Terminal full article bodies) — extracts public headlines, canonical URLs, timestamps, authors, lead images and OpenGraph summaries.
- Does **not** return historical archive pages older than Google News's active index (~100 results per query; slice by `site:` or narrower keywords for deeper coverage).

### ⚠️ Trademark Notice

This Actor is an independent software tool developed by **foXLabs** and is not affiliated with, endorsed by, or sponsored by Google LLC. "Google" and "Google News" are registered trademarks of Google LLC, referenced strictly to describe compatibility with publicly accessible feeds.

### ⚖️ Is It Legal to Scrape Public Google News Feeds?

This Actor aggregates publicly accessible news headlines, canonical links and standard OpenGraph link-preview metadata intended for public discovery and sharing — without bypassing publisher paywalls or logging into user accounts. Respect publisher copyrights when storing or republishing summaries downstream.

### 🤝 Support, Custom Data & Contact

- 🌐 **Website & full portfolio:** [data.foxlabs.com.tr](https://data.foxlabs.com.tr)
- 📧 **Custom data & enterprise inquiries:** info@foxlabs.com.tr
- 🐛 **Bug reports & feature requests:** open an issue in the Actor's **Issues** tab on Apify Store (include your Run ID)
- 🧰 **Browse all foXLabs Actors:** [apify.com/foxlabs](https://apify.com/foxlabs)

### Changelog

#### 0.1.3 (2026-11-14)

- Added clean full-article body extraction (`extractFullText`, default `true`) producing `fullText`, `wordCount`, `readingTimeMinutes`, `keywords[]`, `canonicalUrl`, `siteName`, `section`, and `modifiedAt` (`22 → 30` columns) plus `dateFrom` / `dateTo` exact date filters.

#### 0.1.2 (2026-11-14)

- Upgraded Store README to full SIÁN standard with MCP & x402 AI agent configuration, Standby HTTP `POST /scrape` examples, verified QA & PPE billing metrics, worked cost tables, and expanded 12-question FAQ.

#### 0.1.0 (2026-11-13)

- Initial release of `foxlabs/google-news-scraper` supporting keyword/boolean search with `timeRange`, 9 topic sections, 60+ country/language editions, canonical `publisherUrl` resolution, OpenGraph metadata enrichment, and Batch + Standby HTTP modes.

# Changelog

This Actor's version history is a separate document: https://apify.com/foxlabs/google-news-scraper/changelog.md

# Actor input Schema

## `queries` (type: `array`):

Keywords, companies, tickers, or boolean queries to search on Google News (e.g. 'artificial intelligence', 'NVIDIA OR AMD', 'site:reuters.com fintech').

## `topics` (type: `array`):

Optional standard Google News topic sections to scrape (e.g. 'TECHNOLOGY', 'BUSINESS', 'WORLD', 'NATION', 'SCIENCE', 'HEALTH', 'SPORTS', 'ENTERTAINMENT', 'HEADLINES').

## `rssUrls` (type: `array`):

Optional direct https://news.google.com/rss/... feed URLs.

## `timeRange` (type: `string`):

Filter keyword searches by recency (appends Google News when: operator when dateFrom/dateTo are empty).

## `dateFrom` (type: `string`):

Optional start date filter for keyword searches in YYYY-MM-DD format (appends Google News after:YYYY-MM-DD operator, e.g. '2026-11-01').

## `dateTo` (type: `string`):

Optional end date filter for keyword searches in YYYY-MM-DD format (appends Google News before:YYYY-MM-DD operator, e.g. '2026-11-14').

## `country` (type: `string`):

Two-letter country code for Google News edition (e.g. US, GB, DE, FR, TR, IN, AU, CA).

## `language` (type: `string`):

Two-letter language code (e.g. en, de, fr, tr, es, it, pt).

## `decodePublisherUrls` (type: `boolean`):

Resolves opaque news.google.com/rss/articles/... redirect tokens into real publisher URLs (e.g. reuters.com, bloomberg.com).

## `enrichArticleMeta` (type: `boolean`):

Fetches each decoded publisher URL's HTML metadata (og:image, og:description, author, canonical URL, section, keywords, modifiedAt).

## `extractFullText` (type: `boolean`):

Extracts clean full-body article text (fullText), wordCount, and readingTimeMinutes from each decoded publisher HTML page at zero extra proxy cost.

## `maxArticlesPerFeed` (type: `integer`):

Maximum number of articles to return per search query, topic, or custom RSS URL (1–100).

## `proxyConfiguration` (type: `object`):

Apify Proxy settings. Runs on standard Datacenter proxies by default.

## Actor input object example

```json
{
  "queries": [
    "artificial intelligence"
  ],
  "topics": [],
  "rssUrls": [],
  "timeRange": "7d",
  "dateFrom": "",
  "dateTo": "",
  "country": "US",
  "language": "en",
  "decodePublisherUrls": true,
  "enrichArticleMeta": true,
  "extractFullText": true,
  "maxArticlesPerFeed": 20,
  "proxyConfiguration": {
    "useApifyProxy": true
  }
}
```

# Actor output Schema

## `articles` (type: `string`):

No description

## `report` (type: `string`):

No description

# API

You can run this Actor programmatically using our API. Below are code examples in JavaScript, Python, and CLI, as well as the OpenAPI specification and MCP server setup.

## JavaScript example

```javascript
import { ApifyClient } from 'apify-client';

// Initialize the ApifyClient with your Apify API token
// Replace the '<YOUR_API_TOKEN>' with your token
const client = new ApifyClient({
    token: '<YOUR_API_TOKEN>',
});

// Prepare Actor input
const input = {
    "queries": [
        "artificial intelligence"
    ],
    "maxArticlesPerFeed": 20
};

// Run the Actor and wait for it to finish
const run = await client.actor("foxlabs/google-news-scraper").call(input);

// Fetch and print Actor results from the run's dataset (if any)
console.log('Results from dataset');
console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
const { items } = await client.dataset(run.defaultDatasetId).listItems();
items.forEach((item) => {
    console.dir(item);
});

// 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/js/docs

```

## Python example

```python
from apify_client import ApifyClient

# Initialize the ApifyClient with your Apify API token
# Replace '<YOUR_API_TOKEN>' with your token.
client = ApifyClient("<YOUR_API_TOKEN>")

# Prepare the Actor input
run_input = {
    "queries": ["artificial intelligence"],
    "maxArticlesPerFeed": 20,
}

# Run the Actor and wait for it to finish
run = client.actor("foxlabs/google-news-scraper").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
for item in client.dataset(run.default_dataset_id).iterate_items():
    print(item)

# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start

```

## CLI example

```bash
echo '{
  "queries": [
    "artificial intelligence"
  ],
  "maxArticlesPerFeed": 20
}' |
apify call foxlabs/google-news-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,foxlabs/google-news-scraper"
        }
    }
}
```

The hosted server signs you in with OAuth on first connect, so no API token belongs in this config. Clients without OAuth support can send an `Authorization: Bearer <APIFY_API_TOKEN>` header instead, using a token from API & Integrations in Apify Console (https://console.apify.com/settings/integrations).

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/actors/Z14nwrbyq5FoCMwbA/builds/tWGuVjIOBszH0l9JN/openapi.json
