# Google News Scraper (Real Publisher URLs, Date Ranges) (`blond_terrarium/google-news-scraper-decoded-urls`) Actor

Scrape Google News by keyword, topic or Google News URL in any country/language. Every article includes its real decoded publisher URL, source, publish date and related coverage. Date ranges get past Google's 100-result cap. Pay only for articles with a decoded URL.

- **URL**: https://apify.com/blond_terrarium/google-news-scraper-decoded-urls.md
- **Developed by:** [Mogul Tools](https://apify.com/blond_terrarium) (community)
- **Categories:** News, Marketing, AI
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $1.50 / 1,000 article scrapeds

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 (Real Publisher URLs, Date Ranges, Topics)

Scrape Google News by keyword, topic or Google News URL, and get the **real publisher link** for every article (nytimes.com/..., reuters.com/...) instead of a `news.google.com/rss/articles/...` redirect. URL decoding is **included in the price**, with no extra "URL resolved" event. Use date ranges to go past Google's ~100-results-per-search cap, pull many countries and languages at once, and optionally add the article's image, description and author. **You only pay for articles with a decoded publisher URL.** Failed inputs, empty searches and articles that couldn't be decoded are free.

### Use cases

- **Media monitoring and PR:** track every mention of a brand, person or competitor, with the original source link.
- **Market and investment research:** news flow for tickers, companies or sectors, by day.
- **AI, RAG and sentiment pipelines:** clean, deduplicated headlines with real URLs, ready to fetch or summarise.
- **SEO and content research:** see which publishers rank in Google News for a topic and in which countries.
- **Newsletters and dashboards:** daily top stories or topic feeds (Business, Technology, Health...) per country.

### Input

| Field | Default | Notes |
|---|---|---|
| `queries` | – | Keywords, one per line. Google News operators work: `"exact phrase"`, `OR`, `-exclude`, `site:reuters.com`, `intitle:`. |
| `topics` | – | `TOP` (top stories), `WORLD`, `NATION`, `BUSINESS`, `TECHNOLOGY`, `ENTERTAINMENT`, `SPORTS`, `SCIENCE`, `HEALTH`. |
| `startUrls` | – | Any Google News search, topic, publication or local-news URL (web or RSS). The edition in the URL (`hl`/`gl`/`ceid`) is kept. Single article URLs aren't supported. |
| `editions` | `["US:en"]` | Country:language, for example `GB:en`, `DE:de`, `FR:fr`, `JP:ja`, `BR:pt-419`, `IN:hi`. Each query or topic runs once per edition. |
| `timeRange` | `any` | `1h`, `12h`, `1d`, `7d`, `30d`, `1y` (queries only). |
| `dateFrom` / `dateTo` | – | `YYYY-MM-DD`. Splits each query into one search per day, newest first, so you get up to ~100 articles **per day** instead of ~100 in total. `dateTo` alone means the 7 days before it. |
| `maxArticlesPerQuery` | 100 | Per query, topic or URL, per edition. 0 = no limit. |
| `decodeUrls` | true | Resolves the real publisher URL. If you turn it off, every row is free and you only get Google News links. |
| `fetchArticleDetails` | false | Opens each publisher page (first 512 KB) for `imageUrl`, `description`, `author`, `articlePublishedAt`, `canonicalUrl`, `articleLanguage` and `keywords`. Best effort: some sites block bots. |
| `includeRelated` | true | Adds Google's "related coverage" cluster (other outlets on the same story) where Google provides it, mostly on top stories. |
| `deduplicate` | true | Each article appears once per run, even if several queries or editions find it. |
| `includeFailedRows` | true | One free row per input that failed, with the reason. |
| `maxChargedArticles` | 0 (no limit) | Hard stop on the number of charged articles. |
| `maxConcurrency` / `requestDelayMs` | 4 / 300 | Polite pacing, with automatic backoff on 429, 503 or captcha pages. |

Example:

```json
{ "queries": ["openai", "\"electric vehicles\" -tesla"], "topics": ["BUSINESS"], "editions": ["US:en", "DE:de"], "dateFrom": "2026-10-01", "dateTo": "2026-10-07", "maxArticlesPerQuery": 500 }
```

### Output (one row per article, abridged)

```json
{
  "rowType": "article",
  "status": "OK",
  "query": null,
  "topic": "TOP",
  "edition": "US:en",
  "position": 1,
  "title": "María Corina Machado Returns to Venezuela",
  "source": "The New York Times",
  "sourceUrl": "https://www.nytimes.com",
  "publishedAt": "2026-10-25T17:39:06.000Z",
  "articleUrl": "https://www.nytimes.com/2026/10/25/world/americas/machado-venezuela-return.html",
  "articleDomain": "nytimes.com",
  "googleNewsUrl": "https://news.google.com/rss/articles/CBMihgFBVV9...?oc=5",
  "urlDecoded": true,
  "relatedArticles": [{ "title": "Venezuelan opposition leader María Corina Machado makes surprise return home...", "source": "Fox News", "googleNewsUrl": "https://news.google.com/rss/articles/..." }],
  "charged": true
}
```

Every row has the same fields: `language`, `country`, `dateWindow`, `ampUrl`, `googleNewsId`, `inputUrl`, `scrapedAt`, and the detail fields, which are `null` unless `fetchArticleDetails` is on.

**Free rows:**

- `URL_NOT_DECODED`: Google returned no publisher URL. The row still has the title, source, date and Google News link.
- `INVALID_INPUT`: bad edition, unknown topic, a non-Google-News URL or a single-article URL.
- `NO_RESULTS`: the search returned nothing.
- `BLOCKED`, `RATE_LIMITED`, `HTTP_xxx`: Google refused the feed.

The `RUN_SUMMARY` key-value record holds totals, duplicates skipped, failures by reason and request stats.

### Pricing (pay per event)

One `article` event per unique article returned **with its real publisher URL**. Nothing else is charged: no start fee, no extra URL-resolution fee, and no fee for details.

| Tier | Per article | Per 1,000 articles |
|---|---|---|
| FREE | $0.003 | $3.00 |
| BRONZE | $0.0025 | $2.50 |
| SILVER | $0.002 | $2.00 |
| GOLD | $0.0015 | $1.50 |

The run stops cleanly when it reaches your max total charge or `maxChargedArticles` and stops decoding new articles once the limit is hit. 1,000 articles take about 5–6 minutes at the default 512 MB.

### Limitations

- Google News returns at most ~100 articles per search, ~70 per topic and ~38 top stories. Use `dateFrom`/`dateTo` (about 100 per day) and several editions or narrower queries to get more.
- In date mode, Google applies day boundaries in US Pacific time, and older articles often carry a day-level timestamp (07:00 UTC). Date ranges apply to `queries`, not to `startUrls` or topics.
- URL decoding uses the same public lookup Google News's own site uses. If Google changes it, the affected rows come back free as `URL_NOT_DECODED` rather than failing the run.
- Very large runs (tens of thousands of articles) can be rate-limited by Google. The Actor backs off and retries, and anything still refused is a free row.
- `fetchArticleDetails` depends on each publisher: sites behind Cloudflare or paywalls may return no details. The article is still delivered and charged once at the same price.
- Only public data is collected, with no login. The Actor returns headlines, metadata and links, not full article text. Respect publishers' copyright and Google's terms when you reuse the data.

# Actor input Schema

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

One per line. Google News operators work: "exact phrase", OR, -exclude, site:reuters.com, intitle:. Each query returns up to ~100 articles per feed; use a date range to get more.

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

Google News sections for each edition. Top stories include related coverage clusters.

## `startUrls` (type: `array`):

news.google.com search, topic, publication, local (geo) or story URLs, web or RSS form. The URL's own ceid/edition is respected.

## `editions` (type: `array`):

One per line, Google's ceid format: US:en, GB:en, IN:en, CA:fr, DE:de, FR:fr, ES:es, MX:es-419, BR:pt-419, JP:ja, IT:it… Every query/topic runs in every edition.

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

Applied to search queries (Google's when: operator). Ignored when a date range is set.

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

YYYY-MM-DD or relative like "30 days". With a date range, each query is searched day by day (newest first), so you can get far more than 100 articles per query. Only dateTo set = the 7 days up to it.

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

YYYY-MM-DD (inclusive). Default: today.

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

Per query and edition, across all day windows. 0 = no limit.

## `decodeUrls` (type: `boolean`):

Resolve each news.google.com link to the publisher's article URL. Articles that can't be decoded are written free (status URL_NOT_DECODED).

## `fetchArticleDetails` (type: `boolean`):

Visit each publisher page (head only, ≤512 KB) for og:image, description, author, publish time, canonical URL. Best effort: paywalls/bot walls leave these empty. Slower; same price.

## `includeRelated` (type: `boolean`):

Other outlets' coverage of the same story (mostly on Top stories / topic feeds).

## `deduplicate` (type: `boolean`):

Each article is returned and charged once per run.

## `includeFailedRows` (type: `boolean`):

One free row per input that returned nothing, and per undecoded article, with the reason.

## `maxChargedArticles` (type: `integer`):

Hard stop on charged articles (0 = no limit). The run also stops at your Max total charge.

## `maxConcurrency` (type: `integer`):

Parallel requests (Google News requests are also paced).

## `requestDelayMs` (type: `integer`):

Polite pacing; raised automatically on 429/503.

## `requestTimeoutSecs` (type: `integer`):

Timeout in seconds for each HTTP request to Google News or a publisher page.

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

Not needed normally. Apify datacenter proxy can be used if Google rate-limits; residential proxy is not supported.

## Actor input object example

```json
{
  "queries": [
    "artificial intelligence"
  ],
  "editions": [
    "US:en"
  ],
  "timeRange": "any",
  "maxArticlesPerQuery": 100,
  "decodeUrls": true,
  "fetchArticleDetails": false,
  "includeRelated": true,
  "deduplicate": true,
  "includeFailedRows": true,
  "maxChargedArticles": 0,
  "maxConcurrency": 4,
  "requestDelayMs": 300,
  "requestTimeoutSecs": 30,
  "proxyConfiguration": {
    "useApifyProxy": false
  }
}
```

# Actor output Schema

## `overview` (type: `string`):

Title, source, publish date, real publisher URL and query per article.

## `results` (type: `string`):

Every row incl. related coverage, image/description/author and free error rows.

## `summary` (type: `string`):

Totals: articles charged, duplicates, undecoded and failed inputs by reason (not charged), request stats.

# 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"
    ],
    "editions": [
        "US:en"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("blond_terrarium/google-news-scraper-decoded-urls").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"],
    "editions": ["US:en"],
}

# Run the Actor and wait for it to finish
run = client.actor("blond_terrarium/google-news-scraper-decoded-urls").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"
  ],
  "editions": [
    "US:en"
  ]
}' |
apify call blond_terrarium/google-news-scraper-decoded-urls --silent --output-dataset

```

## MCP server setup

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

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/Vj0iEO2t6iibcdsUI/builds/zPE4GGsoqoQk9BFmt/openapi.json
