# Google News Scraper (`scrapewonder/google-news-scraper`) Actor

Scrape Google News by keyword, topic, location or top stories in any country and language. Real publisher URLs (not news.google.com redirects), ISO dates, source, date-range splitting beyond the 100-article limit. Optional article image, author and description.

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

## Pricing

$2.00 / 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.

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

Scrape **Google News** by keyword, topic, local section or top stories, in **any country and language**. You get clean article data with the **real publisher URL** (decoded from the `news.google.com/rss/articles/...` redirect), **ISO 8601 dates**, the source name and domain, and related coverage. **Date-range splitting** gets you past Google's 100-results-per-search limit.

No Google account and no login. It reads Google's official RSS feeds, so it's fast and cheap.

Use it for **media monitoring**, brand and competitor mentions, PR clipping, news datasets for AI/LLM pipelines, market and crypto sentiment, or tracking a topic across countries.

### What you get for each article

| Field | Description |
|---|---|
| `title` | Headline, with the trailing " - Source" that Google appends removed |
| `source`, `sourceUrl`, `sourceDomain` | Publisher name, homepage and domain |
| `publishedAt` | Publication time in ISO 8601 (UTC), e.g. `2026-11-21T11:00:08.000Z` |
| `articleUrl`, `articleDomain` | **Real article URL on the publisher's site**, not a Google redirect |
| `googleNewsUrl`, `googleNewsId` | Original Google News link and its stable ID (good for deduplication) |
| `snippet` | Article description (with **Fetch article details**; Google's RSS has no real snippet) |
| `imageUrl`, `author` | Main image and byline from the publisher page (with **Fetch article details**) |
| `relatedArticles` | Other outlets covering the same story (`title`, `source`, `googleNewsUrl`) — top stories and topics |
| `position` | Rank in the Google News feed |
| `feedType` | `search`, `topStories`, `topic`, `geo` or `url` |
| `query`, `topic` | The search query or topic/location that produced the article |
| `country`, `language`, `edition` | Google News edition, e.g. `US`, `en-US`, `US:en` |
| `feedUrl`, `scrapedAt` | The RSS feed URL used and the scrape time |

#### Sample item

```json
{
  "title": "A Chinese Tech Hub Offers a Peek at the Electric Cars Headed for Canada",
  "source": "The New York Times",
  "sourceUrl": "https://www.nytimes.com",
  "sourceDomain": "nytimes.com",
  "publishedAt": "2026-11-21T11:00:08.000Z",
  "articleUrl": "https://www.nytimes.com/2026/11/21/world/canada/carney-china-electric-vehicles-tariffs.html",
  "articleDomain": "nytimes.com",
  "googleNewsUrl": "https://news.google.com/rss/articles/CBMilgFBVV95cUxN...?oc=5",
  "googleNewsId": "CBMilgFBVV95cUxN...",
  "snippet": null,
  "imageUrl": null,
  "author": null,
  "relatedArticles": [],
  "position": 1,
  "feedType": "search",
  "query": "electric cars",
  "topic": null,
  "country": "US",
  "language": "en-US",
  "edition": "US:en",
  "feedUrl": "https://news.google.com/rss/search?q=electric%20cars&hl=en-US&gl=US&ceid=US%3Aen",
  "scrapedAt": "2026-11-22T20:40:25.595Z"
}
```

### How to use

1. Add **search queries**, and/or turn on **Top stories**, add **Topics** (`BUSINESS`, `TECHNOLOGY`, ... or a topic URL) or **Local news** locations (`Chicago`, `Bavaria`).
2. Pick **Language** and **Country** (e.g. `de` + `DE`, `pl` + `PL`, `es` + `MX`, `en` + `GB`).
3. Optionally narrow by **Time range** or **Date from / Date to**.
4. Set **Max articles per query / feed** and run.

You can also paste any `news.google.com` URL (home page, search, topic, local section or RSS). It is converted to its RSS feed, and the language/country in the URL are kept. Topic **subsections** (`/topics/<id>/sections/<id>`) have no RSS feed, so the parent topic is scraped and the log says so. Story, article and publication pages (`/stories/`, `/articles/`, `/publications/`) have no feed and are skipped with a clear message.

Topic names are `WORLD`, `NATION`, `BUSINESS`, `TECHNOLOGY`, `ENTERTAINMENT`, `SPORTS`, `SCIENCE`, `HEALTH` (case-insensitive; `SPORT` and `TECH` also work). Anything else must be a topic ID starting with `CAAq` or a topic URL, otherwise the run stops with an "Unknown topic" error before any request is made. The `topic` field always holds the topic name from Google (e.g. `Technology`, or `Technologia` in the Polish edition), however you entered it.

#### Example input

```json
{
  "queries": ["nvidia earnings", "\"electric vehicles\" site:reuters.com"],
  "topics": ["BUSINESS"],
  "language": "en",
  "country": "US",
  "timeRange": "7d",
  "maxItemsPerQuery": 100,
  "decodeArticleUrls": true
}
```

#### Getting more than 100 articles per query

Google News RSS returns **at most ~100 articles per search** and has no pagination. Turn on **Split search by date** and set a date range. The actor searches the whole range first. Every window that comes back full (90+ results) is split in half, and those halves are split again, down to single days. Results are deduplicated by Google News ID.

```json
{
  "queries": ["bitcoin"],
  "dateFrom": "2026-10-01",
  "dateTo": "2026-10-31",
  "splitByDate": true,
  "maxItemsPerQuery": 2000
}
```

Limits to know about:

- One day is the smallest window. If a single day still returns ~100 articles (very popular topics), Google won't show more for that day, and the log says so.
- **Date from / Date to are applied in UTC** (from 00:00 of Date from to 23:59 of Date to, both inclusive). Google evaluates `after:`/`before:` in US Pacific time and includes the boundary instant, so the actor asks Google for one extra day before Date from and drops every article whose `publishedAt` falls outside your UTC range. Without **Split search by date** the ~100 item cap applies to that slightly wider window, so you may get fewer than 100 items; turn on splitting for complete coverage.
- Top stories, topic and local feeds can't be filtered by date. They return what Google shows right now (typically 30–100 items).

### Search operators

Google News operators work inside queries: `"exact phrase"`, `OR`, `-exclude`, `site:bbc.co.uk`, `intitle:word`, `when:1h` / `when:7d`, `after:2026-01-01`, `before:2026-02-01`.

### Real publisher URLs (articleUrl)

Google News links point to `news.google.com/rss/articles/<id>`. Since 2024 the ID is an opaque token, so it can't be base64-decoded. The actor resolves it through the same public endpoint the Google News website uses. This costs about **one extra request per article**, plus one batched request per 5 articles.

- On by default. Turn **Decode real publisher URLs** off for the fastest, cheapest run (you still get `googleNewsUrl`, `source` and `sourceDomain`).
- From EU IP addresses Google first shows a cookie consent page. The actor always answers it with **"Reject all"**.
- If Google rate-limits an IP (its "unusual traffic" page), the actor switches to a new proxy IP. It never tries to solve CAPTCHAs. If blocks continue, decoding is switched off for the rest of the run and `articleUrl` stays `null`, but all other data is still saved. RESIDENTIAL proxy gives the best decoding success rate.

### Fetch article details (optional)

With **Fetch article details** on, the actor opens each publisher page and reads its `og:` and JSON-LD metadata. That fills `snippet` (the article description), `imageUrl` and `author`, and replaces `articleUrl` with the canonical URL (no tracking parameters). Some publishers with hard paywalls or bot protection (e.g. NYT, Bloomberg) refuse these requests. For those the fields stay empty and the run continues.

### Cost and performance

- One RSS request returns up to 100 articles and is ~128 KB, so feeds alone cost ~1.3 KB per article.
- URL decoding adds ~1 request per article. Article details add one publisher page per article (typically 100–600 KB of HTML).
- A run of 100 articles without decoding finishes in a few seconds.

### Tips

- **Monitor a brand daily:** schedule a run with `timeRange: "1d"` and dedupe on `googleNewsId`.
- **Compare coverage across countries:** run the same query with different language/country pairs.
- **Find who covers a story:** use top stories and look at `relatedArticles`.
- **Only some outlets:** add `site:` operators, e.g. `tesla (site:reuters.com OR site:bloomberg.com)`.

### FAQ

**Do I need a Google account?** No. The actor uses Google News' public RSS feeds.

**Why is `snippet` empty?** Google's RSS feeds don't include article text or descriptions, only the headline and source. Turn on **Fetch article details** to get the publisher's own description.

**Why do I get fewer than 100 results?** Google caps every search at about 100 articles, and narrow queries have fewer. Use **Split search by date** for more.

**A language/country combination returned US results?** Google News only has certain editions. Unsupported combinations (e.g. `en` + `PL`) fall back to US English, and the run log shows a warning.

**Is it legal?** The actor collects publicly available headlines and links. Google's feed terms mention personal, non-commercial use. Make sure your use complies with Google's terms and the laws that apply to you.

**Something broke?** Open an issue on the Issues tab.

### Local development

```bash
npm install
npm test               # offline parser + decoder tests (fixtures in test/fixtures)
npm run start:dev      # runs src/main.ts with storage/key_value_stores/default/INPUT.json
npm run build && npm start
node tools/probe.mjs "query"   # quick feed check
node tools/bytes.mjs [proxyUrl] # transfer per 100 items
```

# Actor input Schema

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

Keywords to search on Google News. Google News operators work inside the query: "exact phrase", OR, -exclude, site:reuters.com, intitle:, when:7d, after:2026-01-01, before:2026-02-01.

## `topStories` (type: `boolean`):

Also scrape the Google News front page (top stories) for the selected country and language.

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

Topic sections: WORLD, NATION, BUSINESS, TECHNOLOGY, ENTERTAINMENT, SPORTS, SCIENCE, HEALTH, or a topic ID / URL copied from news.google.com/topics/...

## `geoLocations` (type: `array`):

City, region or country names for local news sections, e.g. Chicago, Bavaria, Texas.

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

Any news.google.com URL (search, topic, local section or RSS feed). Web URLs are converted to their RSS feed automatically. The hl/gl/ceid parameters in the URL win over Language and Country below.

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

Interface language of the Google News edition, e.g. en, de, fr, pl, es, pt, ja. Region variants like en-GB or es-419 are accepted.

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

Two-letter country code of the Google News edition, e.g. US, GB, DE, PL, IN, BR. Not every language exists in every country; unsupported combinations fall back to US English and you will see a warning.

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

Only for search queries. Adds the when: operator. Ignored when Date from / Date to is set.

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

Only for search queries. Oldest publication date, YYYY-MM-DD (inclusive, 00:00 UTC).

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

Only for search queries. Newest publication date, YYYY-MM-DD (inclusive, until 23:59 UTC). Articles outside the range are dropped.

## `splitByDate` (type: `boolean`):

Google News returns at most ~100 articles per search. When on, each query is split into date windows (halved automatically while a window is full), so you can collect thousands of articles. Uses Date from / Date to, or the time range, or the last 30 days.

## `maxItemsPerQuery` (type: `integer`):

Stop after this many articles for each query, topic, location or URL. Without date splitting Google returns at most ~100 per search.

## `decodeArticleUrls` (type: `boolean`):

Resolve news.google.com/rss/articles/... links to the real article URL on the publisher's site (articleUrl). Costs about 1-2 extra requests per article. Turn off for the fastest, cheapest run; googleNewsUrl is always included.

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

Open each publisher page and read its og:/JSON-LD metadata to fill snippet, imageUrl and author. Slower, and some paywalled publishers block it (those fields then stay empty). Requires Decode real publisher URLs.

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

Apify Proxy rotates IPs when Google rate-limits. Datacenter proxy is fine for RSS feeds; switch to RESIDENTIAL if URL decoding reports blocks.

## Actor input object example

```json
{
  "queries": [
    "artificial intelligence"
  ],
  "topStories": false,
  "language": "en",
  "country": "US",
  "timeRange": "any",
  "splitByDate": false,
  "maxItemsPerQuery": 20,
  "decodeArticleUrls": true,
  "fetchArticleDetails": false,
  "proxyConfiguration": {
    "useApifyProxy": true
  }
}
```

# Actor output Schema

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

All scraped items in the default dataset.

# 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"
    ],
    "maxItemsPerQuery": 20,
    "proxyConfiguration": {
        "useApifyProxy": true
    }
};

// Run the Actor and wait for it to finish
const run = await client.actor("scrapewonder/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"],
    "maxItemsPerQuery": 20,
    "proxyConfiguration": { "useApifyProxy": True },
}

# Run the Actor and wait for it to finish
run = client.actor("scrapewonder/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"
  ],
  "maxItemsPerQuery": 20,
  "proxyConfiguration": {
    "useApifyProxy": true
  }
}' |
apify call scrapewonder/google-news-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,scrapewonder/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/B6y7LdxbDtzELErPn/builds/5b7NWN3JZ7URjkMn5/openapi.json
