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

Scrape Google News by keyword, topic or top headlines across many country/language editions. Automatically splits date ranges to return far more than the 100-article RSS limit per query.

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

## Pricing

from $0.94 / 1,000 articles

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

Scrape **Google News** by keyword, topic or top headlines, across **any country/language edition**, and get **far more than the usual 100-article limit** per query. Clean, flat, deduplicated JSON ready for media monitoring, PR tracking, market research, sentiment analysis or LLM pipelines.

It uses **only Google News' public RSS feeds**. No login, no cookies, no browser, no private APIs, so it is fast, cheap and runs in 256 MB of memory.

### What you get

- **More than 100 articles per query.** A single Google News RSS request is capped at about 100 items. Give the Actor a date range (`dateFrom` / `dateTo`) and it splits it into windows with Google's `after:` / `before:` search operators, then **adaptively halves any window that comes back full**. In testing, one query over a 30-day range returned **1,000 unique articles** (and 973 for another), versus 100 without splitting.
- **Multiple editions in one run**: `["en-US","en-GB","de-DE","ja-JP"]`. Every query runs once per edition.
- **Keyword queries with Google operators** (`site:reuters.com`, `"exact phrase"`, `OR`, `-exclude`).
- **Topic and top-headline feeds**: `TOP`, `WORLD`, `NATION`, `BUSINESS`, `TECHNOLOGY`, `ENTERTAINMENT`, `SPORTS`, `SCIENCE`, `HEALTH`.
- **Time shortcuts**: last hour, day, week, month or year.
- **Related coverage**: when Google groups an article into a story cluster, the other headlines are returned in `relatedArticles` (`title` + `source`).
- **Robust**: retries with backoff on 429/5xx, polite request rate, warnings instead of crashes for bad input.

### Input example

```json
{
  "queries": ["artificial intelligence", "openai site:reuters.com"],
  "topics": ["TECHNOLOGY"],
  "editions": ["en-US", "en-GB"],
  "dateFrom": "2026-10-14",
  "dateTo": "2026-11-12",
  "maxArticlesPerQuery": 1000,
  "deduplicate": true
}
```

| Field | Description |
|---|---|
| `queries` | Search keywords (Google operators work; don't add `after:`/`before:`/`when:` yourself) |
| `topics` | Topic/top-headline feeds (current front page, no date splitting) |
| `editions` | `language-COUNTRY` codes, default `["en-US"]` |
| `timeRange` | `1h`, `1d`, `7d`, `30d`, `1y` or `any`. Ignored if `dateFrom`/`dateTo` is set |
| `dateFrom` / `dateTo` | `YYYY-MM-DD`; triggers automatic window splitting |
| `maxArticlesPerQuery` | Cap per query per edition (default 100). Above 100 and with no date range, the last 30 days are used |
| `deduplicate` | Remove duplicates within a query + edition (default true) |

### Output sample

One dataset item per article:

```json
{
  "query": "bitcoin",
  "title": "Bitcoin sinks below 70k, set for deep weekly loss as crypto appetite sours",
  "sourceName": "Yahoo Finance",
  "sourceUrl": "https://finance.yahoo.com",
  "googleNewsUrl": "https://news.google.com/rss/articles/CBMimwFBVV95cUxN...?oc=5",
  "publishedAt": "2026-11-13T04:34:00+00:00",
  "description": null,
  "language": "en",
  "country": "US",
  "relatedArticles": [
    {"title": "Live updates: Bitcoin plunges back towards bear market lows, wiping out late summer rally", "source": "CoinDesk"},
    {"title": "Bitcoin drops below $70K as dollar index hits 19-month high", "source": "Yahoo Finance"}
  ]
}
```

### Pricing

**$1.50 per 1,000 articles** (pay per event: you're charged only for articles delivered, no start fee). The $5 monthly credit on Apify's free plan covers roughly 3,000+ articles a month. Set a maximum cost per run and the Actor stops gracefully when it's reached.

### Use cases

- Brand and competitor **media monitoring** and PR coverage reports
- **Market and financial news** feeds per ticker, company or sector
- **Sentiment / trend analysis** datasets over weeks of coverage
- Comparing how the **same story is covered in different countries**
- Feeding news into **LLM / RAG pipelines** and alerts (schedule the Actor hourly with `timeRange: "1h"`)

### FAQ

**Is the article link the publisher's URL?** No. `googleNewsUrl` is Google News' own redirect link (`news.google.com/rss/articles/...`). Opening it in a browser takes you to the article, but this Actor does **not** resolve it to the original publisher URL (Google no longer exposes it in the feed). `sourceUrl` is the publisher's **homepage** (from the feed's `<source url>`), and `sourceName` is its name.

**Why is `description` usually empty?** Google's RSS only provides the headline and source name, not an article summary or body. The field is filled only if the feed carries extra text. This Actor does not fetch article pages.

**How far back can I go?** Google decides what the index holds; recent weeks and months work reliably, older articles are increasingly sparse.

**Why can I still get fewer results than I asked for?** (1) Google may simply have fewer matching articles. (2) For very popular queries a **single day can still hold more than ~100 articles**, and `after:`/`before:` work at day granularity, so the extra ones in that day can't be reached (the log says so). Narrow the query, use `site:` operators or several related queries to cover more.

**Does deduplication work across queries?** It works within each query and edition. The same article found by two different queries appears once under each (so you can tell which query matched).

**Is this legal?** The Actor reads Google's public RSS feeds, which Google offers for feed readers. Review Google's terms for your use case and respect copyright of the articles you follow the links to.

### Limits

- \~100 items per request is a Google limit; splitting works around it but is bounded by day granularity.
- Topic feeds show only the current front page (roughly 40-70 items).
- No full article text and no resolved publisher URLs.

# Actor input Schema

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

Keywords to search in Google News. Google search operators work, e.g. "tesla site:reuters.com" or ""exact phrase" OR other". Do not add after:/before:/when: yourself - use the date fields below.

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

Scrape Google News topic feeds in addition to the queries. Allowed values: TOP, WORLD, NATION, BUSINESS, TECHNOLOGY, ENTERTAINMENT, SPORTS, SCIENCE, HEALTH. Topic feeds return the current front page only (no date splitting).

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

Google News editions as language-COUNTRY codes, e.g. en-US, en-GB, de-DE, fr-FR, es-MX, ja-JP, pt-BR. Each query is run once per edition.

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

Only articles from the last hour/day/week/month/year (uses Google's when: operator). Ignored if Date from / Date to is set.

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

Earliest publication date. The range is split into windows automatically so you can get more than 100 articles per query.

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

Latest publication date (inclusive). Defaults to today when Date from is set.

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

Stop collecting for a query/edition after this many articles. Values above 100 need a date range (if none is set, the last 30 days are used). Newest windows are fetched first.

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

Remove duplicate articles within the same query and edition.

## Actor input object example

```json
{
  "queries": [
    "artificial intelligence"
  ],
  "editions": [
    "en-US"
  ],
  "timeRange": "1d",
  "maxArticlesPerQuery": 30,
  "deduplicate": true
}
```

# Actor output Schema

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

Dataset with all scraped items

# 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": [
        "en-US"
    ],
    "timeRange": "1d",
    "maxArticlesPerQuery": 30
};

// Run the Actor and wait for it to finish
const run = await client.actor("lugubrious_junco_vex/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"],
    "editions": ["en-US"],
    "timeRange": "1d",
    "maxArticlesPerQuery": 30,
}

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

```

## MCP server setup

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