# Google News Scraper: Search, Topics & Publisher Feeds (RSS) (`kleb-data/google-news-scraper`) Actor

News articles from Google News' public RSS feeds: keyword search (with site:, intitle:, when: operators), top headlines and topic sections, per language and country, as clean JSON. No browser, no proxy.

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

## Pricing

from $1.00 / 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.

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: Search, Topics & Publisher Feeds (RSS)

News articles from Google News as clean JSON. It reads Google News' public RSS feeds only (keyword search, top headlines and topic sections), so runs take seconds: no browser, no proxy, no HTML scraping.

### What you can do with it

- Monitor a brand, a product or competitors: one query per name, scheduled hourly or daily
- Build a daily news digest for a topic, a country or a single publisher (`site:reuters.com biotech`)
- Give an AI agent a reliable "what is in the news about X" tool
- Follow the Business, Technology, Science or Health sections in any language and country edition

### Input

| Field | Meaning |
|---|---|
| `queries` | Search queries, one feed each. Operators work: `site:`, `intitle:`, `"exact phrase"`, `OR`, `-word`, `when:7d` |
| `topics` | Any of `WORLD`, `NATION`, `BUSINESS`, `TECHNOLOGY`, `ENTERTAINMENT`, `SPORTS`, `SCIENCE`, `HEALTH` |
| `topHeadlines` | Also read the top-headlines feed (default off) |
| `language`, `country` | Edition, e.g. `en` + `US`, `de` + `DE`, `ja` + `JP` (defaults `en`, `US`) |
| `timeRange` | `any`, `1h`, `1d`, `7d`, `30d`, `1y`; appended to each query as `when:1d` etc. |
| `after`, `before` | Dates; appended to each query as `after:YYYY-MM-DD` / `before:YYYY-MM-DD` |
| `maxItemsPerQuery` | Limit per feed (default 100) |
| `dedupe` | Return each article link once per run (default on) |

No field is required. With no queries and no topics, the top-headlines feed is read.

### Output (one item per article)

```json
{
  "query": "site:reuters.com biotech",
  "title": "Biotech funding rebounds in third quarter",
  "source": "Reuters",
  "sourceUrl": "https://www.reuters.com",
  "publishedAt": "2026-11-19T14:05:00.000Z",
  "link": "https://news.google.com/rss/articles/CBMiaEFVX3lxTE5f...?oc=5",
  "guid": "CBMiaEFVX3lxTE5f...",
  "snippet": "Biotech funding rebounds in third quarter Reuters",
  "relatedCount": 2,
  "language": "en",
  "country": "US"
}
```

### Notes

- `link` is the Google News article link exactly as the feed gives it. It redirects to the publisher's page in a browser. The actor does not decode or resolve it; `sourceUrl` is the publisher's home page.
- A feed returns at most about 100 items. For more coverage, split a query (by `site:`, by keyword, or by date with `after` / `before`) rather than raising the limit.
- `timeRange`, `after` and `before` apply to search queries only. Topic and top-headlines feeds always return the current selection.
- For topic and top-headlines items, `query` holds the topic code (for example `BUSINESS`) or `TOP_HEADLINES`.
- `title` has the trailing " - Publisher" removed. `snippet` is the plain text of the feed's description, which is usually the headline plus the publisher; when Google groups coverage, it lists the related headlines one per line and `relatedCount` is the number of other articles listed.
- `publishedAt` is `null` if the feed gives no valid date.
- Language and country must be a combination Google News offers; some editions use a longer language code (for example `pt-419` with `BR`, `zh-Hant` with `TW`).
- Requests use a plain identifying user-agent. On HTTP 429 or 5xx the feed is retried three times with a pause, then skipped with a warning.

### Pricing

Pay per event: $1.00 per 1,000 articles, platform usage included.

# Actor input Schema

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

One search feed per query. Google News operators work: site:reuters.com, intitle:word, "exact phrase", OR, -exclude, when:7d.

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

Optional. One topic feed per selected section.

## `topHeadlines` (type: `boolean`):

Also read the top-headlines feed for the chosen language and country.

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

Google News language code (hl), e.g. en, de, fr, ja, pt-419.

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

Two-letter country code (gl), e.g. US, GB, DE, JP.

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

Applies to search queries only. Implemented by appending 'when:1d' etc. to each query.

## `after` (type: `string`):

Search queries only. Appended to each query as 'after:YYYY-MM-DD'.

## `before` (type: `string`):

Search queries only. Appended to each query as 'before:YYYY-MM-DD'.

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

Upper limit per feed. A Google News feed returns at most about 100 items.

## `dedupe` (type: `boolean`):

Return each article link only once per run, even if several queries match it.

## Actor input object example

```json
{
  "queries": [
    "openai",
    "site:reuters.com biotech"
  ],
  "topHeadlines": false,
  "language": "en",
  "country": "US",
  "timeRange": "any",
  "maxItemsPerQuery": 100,
  "dedupe": true
}
```

# Actor output Schema

## `results` (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": [
        "openai",
        "site:reuters.com biotech"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("kleb-data/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": [
        "openai",
        "site:reuters.com biotech",
    ] }

# Run the Actor and wait for it to finish
run = client.actor("kleb-data/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": [
    "openai",
    "site:reuters.com biotech"
  ]
}' |
apify call kleb-data/google-news-scraper --silent --output-dataset

```

## MCP server setup

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