# Google News Scraper - RSS Feeds & Real Canonical URLs (`hoanle0126/google-news-rss-canonical-url-scraper`) Actor

Fast Google News scraper with built-in canonical publisher URL decoding (no Google redirect links), topic & keyword search, country/language targeting, and time-window filtering. Pure HTTP, AI & MCP ready.

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

## Pricing

from $1.05 / 1,000 dataset items

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.
Since this Actor supports Apify Store discounts, the price gets lower the higher subscription plan you have.

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

## Google News Scraper - RSS Feeds & Real Canonical URLs

Extract real-time global news headlines, publishers, timestamps, and **decoded canonical publisher URLs** (e.g., `reuters.com`, `cnbc.com`, `bloomberg.com`, `techcrunch.com`) directly from **Google News** without browser overhead or extra per-URL decode fees. Designed for **AI RAG pipelines**, **PR & brand monitoring**, **financial sentiment analysis**, and **automated news alerts**.

***

### Key Features

- **Built-In Canonical Publisher URL Decoder (Included Free):** Standard Google News RSS feeds return obfuscated `news.google.com/rss/articles/CBMi...` redirect links that fail in downstream scrapers and AI agents. This Actor decodes each article into its true publisher URL (`urlResolved: true`) automatically via pure HTTP, with graceful fallback to the Google News link if rate-limited.
- **Keyword, Boolean & Official Topic Feeds:** Search exact phrases (`"AI funding"`), domain filters (`site:reuters.com`), competitor names, or built-in Google News Topics (`topic:TECHNOLOGY`, `topic:BUSINESS`, `topic:WORLD`, `topic:SCIENCE`, `topic:HEALTH`, `topic:FINANCE`).
- **Global Country & Language Editions:** Target any Google News regional edition (`US`, `GB`, `DE`, `FR`, `AU`, `SG`, `CA`, `IN`, `JP`, etc.) and language (`en-US`, `en-GB`, `de`, `fr`, `es`).
- **Built-In Recency & Publisher Whitelist/Blacklist:** Filter by `1h`, `6h`, `1d`, `7d`, `30d`, or `1y`, and whitelist/blacklist specific publisher domains before URL decoding to keep runs ultra-fast and targeted.
- **Ultra-Lightweight Pure HTTP (`128-256 MB` RAM):** Zero Playwright, zero proxies, completing typical 25-article decoded feeds in just seconds.
- **AI Agent & MCP-Ready:** Clean, flat JSON output with ISO timestamps (`publishedAt`), clean titles (`title` separated from `publisherName`), `publisherDomain`, and verified `canonicalUrl`.

***

### Use Cases

- **AI Agents, LLMs & RAG Grounding (MCP):** Feed verified, up-to-the-hour news links into Claude, OpenAI, LangChain, or CrewAI agents without hitting opaque Google redirect URLs.
- **Financial & Stock Market Sentiment Monitoring:** Track breaking news for public tickers, earnings calls, M\&A rumors, and macro catalysts on hourly schedules.
- **PR, Brand & Competitor Intelligence:** Monitor press mentions across multiple countries and route new coverage directly to Slack, Notion, or Google Sheets via n8n/Make.
- **Lead-Gen Trigger Signals:** Detect funding announcements, executive hires, product launches, and regulatory news for timely B2B outbound.

***

### Input Parameters

| Field | Type | Default | Description |
|---|---|---|---|
| `queries` | `string[]` | `["artificial intelligence SaaS"]` | Keywords, boolean queries, `site:` filters, or `topic:TECHNOLOGY` / `topic:BUSINESS` / `topic:WORLD` / `topic:SCIENCE` / `topic:HEALTH`. |
| `country` | `string` | `"US"` | 2-letter ISO country code (`US`, `GB`, `DE`, `FR`, `AU`, `SG`, `CA`, etc.). |
| `language` | `string` | `"en-US"` | Language code (`en-US`, `en-GB`, `de`, `fr`, `es`, etc.). |
| `timeWindow` | `string` | `"7d"` | Recency window (`""`, `1h`, `6h`, `1d`, `7d`, `30d`, `1y`). |
| `resolveCanonicalUrls` | `boolean` | `true` | Decode `news.google.com/articles/...` links into real canonical publisher URLs. |
| `includeSources` | `string[]` | `[]` | Optional publisher whitelist (e.g., `["reuters.com", "cnbc.com"]`). |
| `excludeSources` | `string[]` | `[]` | Optional publisher blacklist. |
| `maxArticlesPerQuery` | `integer` | `25` | Maximum articles per query (`1 - 100`). |

#### Example Input

```json
{
    "queries": ["artificial intelligence SaaS", "NVIDIA earnings"],
    "country": "US",
    "language": "en-US",
    "timeWindow": "7d",
    "resolveCanonicalUrls": true,
    "maxArticlesPerQuery": 25
}
```

***

### Sample JSON Output

```json
{
    "guid": "CBMi...",
    "title": "Enterprise AI spending surges as SaaS leaders report strong quarterly growth",
    "rawTitle": "Enterprise AI spending surges as SaaS leaders report strong quarterly growth - CNBC",
    "url": "https://www.cnbc.com/2026/11/21/enterprise-ai-spending-saas-growth.html",
    "canonicalUrl": "https://www.cnbc.com/2026/11/21/enterprise-ai-spending-saas-growth.html",
    "googleNewsUrl": "https://news.google.com/rss/articles/CBMi...",
    "urlResolved": true,
    "publisherName": "CNBC",
    "publisherDomain": "cnbc.com",
    "publisherUrl": "https://www.cnbc.com",
    "publishedAt": "2026-11-21T14:22:00.000Z",
    "pubDateRaw": "Sat, 21 Nov 2026 14:22:00 GMT",
    "descriptionSnippet": "Enterprise AI spending surges as SaaS leaders report strong quarterly growth CNBC",
    "query": "artificial intelligence SaaS",
    "queryType": "search",
    "country": "US",
    "language": "en-US",
    "timeWindow": "7d",
    "scrapedAt": "2026-11-22T09:46:00.000Z"
}
```

***

### Pricing & Cost Transparency

Simple **Pay-Per-Event (PPE)** billing — canonical publisher URL decoding is **100% included** (no extra per-decode surcharge):

- **FREE tier:** `$1.50` per `1,000` articles (`$0.0015` / article)
- **BRONZE (`-10%`):** `$1.35` per `1,000` articles
- **SILVER (`-20%`):** `$1.20` per `1,000` articles
- **GOLD / PLATINUM / DIAMOND (`-30%`):** `$1.05` per `1,000` articles

Runs execute on `128-256 MB` RAM with negligible platform compute cost and respect your `Maximum cost per run` cap automatically.

***

### Integrations & MCP Usage

- **n8n / Make / Zapier:** Schedule hourly or daily news pulls and pass `url` directly to downstream article summarizers or Slack/Email alerts.
- **Apify MCP Server:** Expose directly to Claude, Cursor, or custom research agents for real-time news grounding with real publisher links.

***

### Frequently Asked Questions (FAQ)

**Why does canonical URL decoding matter?**
Google News RSS wraps every destination link inside an encoded redirect (`news.google.com/rss/articles/CBMi...`) that blocks simple HTTP fetchers and hides the true publisher URL. This Actor resolves the real destination URL cleanly in the same run.

**What happens if I disable `resolveCanonicalUrls`?**
The Actor skips article decoding and completes in `< 2` seconds directly from Google News RSS feeds, returning `googleNewsUrl`, `publisherName`, `publisherDomain`, `title`, and `publishedAt`.

**Can I scrape topic sections instead of keywords?**
Yes — pass `"topic:TECHNOLOGY"`, `"topic:BUSINESS"`, `"topic:WORLD"`, `"topic:SCIENCE"`, `"topic:HEALTH"`, `"topic:SPORTS"`, `"topic:NATION"`, or `"topic:ENTERTAINMENT"` in `queries`.

# Actor input Schema

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

Keywords, exact phrases, boolean queries (e.g., '"artificial intelligence" funding', 'NVIDIA earnings', 'site:reuters.com SaaS'), or built-in Google News Topics prefixed with 'topic:' (e.g., 'topic:TECHNOLOGY', 'topic:BUSINESS').

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

2-letter ISO country code for Google News geo edition (e.g., 'US', 'GB', 'DE', 'FR', 'AU', 'SG', 'CA', 'IN').

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

Language code (e.g., 'en-US', 'en-GB', 'de', 'fr', 'es', 'ja').

## `timeWindow` (type: `string`):

Optional recency filter appended automatically to search queries.

## `resolveCanonicalUrls` (type: `boolean`):

Automatically decodes Google News encoded redirect URLs (/articles/CBMi...) into real direct publisher URLs (e.g., cnbc.com, reuters.com) at no extra charge. Disable for ultra-fast raw RSS mode.

## `includeSources` (type: `array`):

Optional whitelist of publisher domains or names (e.g., 'reuters.com', 'cnbc.com', 'techcrunch.com').

## `excludeSources` (type: `array`):

Optional blacklist of publisher domains or names to skip.

## `maxArticlesPerQuery` (type: `integer`):

Maximum news articles to return per query (1 to 100).

## Actor input object example

```json
{
  "queries": [
    "artificial intelligence SaaS"
  ],
  "country": "US",
  "language": "en-US",
  "timeWindow": "7d",
  "resolveCanonicalUrls": true,
  "includeSources": [],
  "excludeSources": [],
  "maxArticlesPerQuery": 25
}
```

# Actor output Schema

## `articles` (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 SaaS"
    ],
    "country": "US",
    "language": "en-US",
    "timeWindow": "7d",
    "maxArticlesPerQuery": 25
};

// Run the Actor and wait for it to finish
const run = await client.actor("hoanle0126/google-news-rss-canonical-url-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 SaaS"],
    "country": "US",
    "language": "en-US",
    "timeWindow": "7d",
    "maxArticlesPerQuery": 25,
}

# Run the Actor and wait for it to finish
run = client.actor("hoanle0126/google-news-rss-canonical-url-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 SaaS"
  ],
  "country": "US",
  "language": "en-US",
  "timeWindow": "7d",
  "maxArticlesPerQuery": 25
}' |
apify call hoanle0126/google-news-rss-canonical-url-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,hoanle0126/google-news-rss-canonical-url-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/gEeSKPwhl5k4Faiaa/builds/t7tbRfrQ9pPYbC4ue/openapi.json
