# Google News Scraper — Search, Topics, Images & 40+ Languages (`commanding_hotdog/google-news-scraper`) Actor

Daily Google News monitor: each scheduled run returns only articles you haven't seen — pay only for new stories. Keyword search + topic feeds, 40+ languages, full time filters, images, snippets, deduplication, no artificial cap. No browser, proxies, or API key.

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

## Pricing

$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, Images & 40+ Languages

**A Google News monitor that only sends you what's new.** Schedule it daily and each run returns only the articles you haven't seen yet — so you pay only for new stories. No artificial cap: every article the feed holds (up to ~100 per query, more with multiple queries), keyword search + topic feeds, 40+ languages. Pure HTTP via RSS: no browser, no proxies, no API key.

### What you get

**Article rows** — title, link, source name, publish time, snippet, image URL (when available), query/topic, language, country.

### Key features (built from user reviews of competitors)

- **Only-new monitor mode** — the daily-news use case: turn on `onlyNew`, save the input as a Task, schedule it daily, and every run returns just the new articles (already-seen ones are skipped and never charged). First run returns everything; later runs return only what's new. Seen articles are remembered on every run, so a full run in between never makes the next monitor run re-deliver (and re-charge) the same stories.
- **No artificial cap** — `maxItemsPerQuery` up to 200 per query (one RSS feed holds ~100 articles; run several queries per run for more). Competitors cap output at ~100 lines even when you ask for 1,000.
- **Complete time filters** — last hour, last day, last week, **last month**, last year (competitors lack "last month")
- **Keyword search** (multiple queries per run) + **topic feeds** (World, Business, Technology, Sports, Science, Health…)
- **40+ languages & countries** via hl/gl parameters
- **Images** from RSS media tags + **snippets**
- **Deduplication** across queries

### Input

Type keywords into `searchQueries` (or pick a topic), set language/country/time filter, run.

### Pricing

- **$0.001 per article** ($1.00 / 1,000 articles)
- First **20 articles of every run are free**
- Actor start: **$0.00005**
- Setup-guide and error rows are never charged
- **Only-new mode: already-seen articles are skipped before charging — you only pay for new articles**

### Daily monitor setup

1. Set `searchQueries` (or a `topic`), turn on `onlyNew`.
2. Save the input as a Task and add a Schedule (e.g. daily at 07:00).
3. Each run returns only new articles. Use a different `stateStoreName` per monitor (e.g. per topic) to keep their histories separate.

### Typical uses

- **Daily news monitoring**: track topics across 40+ languages — new articles only, every morning
- **Media research**: what are outlets saying, when?
- **Content datasets** for analysis and ML

# Actor input Schema

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

Country edition (gl parameter), e.g. US, GB, DE, JP, CN.

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

Remove duplicate stories (same URL appearing under multiple queries).

## `includeImages` (type: `boolean`):

Include article images (from RSS media tags) when available.

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

Language (hl parameter), e.g. en-US, de, fr, ja, zh-CN.

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

Maximum articles per query (the #1 user request).

## `searchQueries` (type: `array`):

Keywords to search, e.g. \["artificial intelligence", "climate"]. Leave empty to use topic feed only.

## `timeFilter` (type: `string`):

How recent the news must be. Includes 'last month' (a top user request competitors lack).

## `topic` (type: `string`):

Or browse a topic feed instead of searching: WORLD, BUSINESS, TECHNOLOGY, etc. Leave empty to search.

## `onlyNew` (type: `boolean`):

Monitor mode: only return articles not seen in previous runs. Schedule daily to get a new-articles feed — you only pay for new articles.

## `stateStoreName` (type: `string`):

Named key-value store that remembers seen articles when Only new is on. Use a different name per monitor (e.g. per topic) to keep histories separate.

## Actor input object example

```json
{
  "country": "US",
  "deduplicate": true,
  "includeImages": true,
  "language": "en-US",
  "maxItemsPerQuery": 50,
  "searchQueries": [
    "artificial intelligence"
  ],
  "timeFilter": "anytime",
  "topic": "",
  "onlyNew": false,
  "stateStoreName": "gnews-monitor-state"
}
```

# 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 = {
    "country": "US",
    "deduplicate": true,
    "includeImages": true,
    "language": "en-US",
    "maxItemsPerQuery": 50,
    "searchQueries": [
        "artificial intelligence"
    ],
    "timeFilter": "anytime",
    "topic": "",
    "onlyNew": false,
    "stateStoreName": "gnews-monitor-state"
};

// Run the Actor and wait for it to finish
const run = await client.actor("commanding_hotdog/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 = {
    "country": "US",
    "deduplicate": True,
    "includeImages": True,
    "language": "en-US",
    "maxItemsPerQuery": 50,
    "searchQueries": ["artificial intelligence"],
    "timeFilter": "anytime",
    "topic": "",
    "onlyNew": False,
    "stateStoreName": "gnews-monitor-state",
}

# Run the Actor and wait for it to finish
run = client.actor("commanding_hotdog/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 '{
  "country": "US",
  "deduplicate": true,
  "includeImages": true,
  "language": "en-US",
  "maxItemsPerQuery": 50,
  "searchQueries": [
    "artificial intelligence"
  ],
  "timeFilter": "anytime",
  "topic": "",
  "onlyNew": false,
  "stateStoreName": "gnews-monitor-state"
}' |
apify call commanding_hotdog/google-news-scraper --silent --output-dataset

```

## MCP server setup

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