# Google News Actor (`vnx0/google-news-actor`) Actor

Google News Scraper collects localized Google News Search, Top Stories, and Topic feeds with infinitescroll, keyword operators, and hashed-topic coverage while deduplicating results across migrations.

- **URL**: https://apify.com/vnx0/google-news-actor.md
- **Developed by:** [Vnx0](https://apify.com/vnx0) (community)
- **Categories:** News, Automation, Developer tools
- **Stats:** 6 total users, 1 monthly users, 0.0% runs succeeded, NaN bookmarks
- **User rating**: No ratings yet

## Pricing

from $2,500.00 / 1,000 results

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/platform/actors/running/actors-in-store#pay-per-event

## What's an Apify Actor?

Actors are a software tools running on the Apify platform, for all kinds of web data extraction and automation use cases.
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.
Actors are written with capital "A".

## 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.
The best way to integrate Actors is as follows.

In JavaScript/TypeScript projects, use official [JavaScript/TypeScript client](https://docs.apify.com/api/client/js.md):

```bash
npm install apify-client
```

In Python projects, use official [Python client library](https://docs.apify.com/api/client/python.md):

```bash
pip install apify-client
```

In shell scripts, use [Apify CLI](https://docs.apify.com/cli/docs.md):

````bash
# MacOS / Linux
curl -fsSL https://apify.com/install-cli.sh | bash
# Windows
irm https://apify.com/install-cli.ps1 | iex
```bash

In AI frameworks, you might use the [Apify MCP server](https://docs.apify.com/platform/integrations/mcp.md).

If your project is in a different language, use the [REST API](https://docs.apify.com/api/v2.md).

For usage examples, see the [API](#api) section below.

For more details, see Apify documentation as [Markdown index](https://docs.apify.com/llms.txt) and [Markdown full-text](https://docs.apify.com/llms-full.txt).


# README

## Google News Scraper Actor

Collect real-time Google News Search, Top Stories, and Topic feeds with localized filtering, infinite scroll coverage, and optional redirect unwrapping for clean publisher URLs.

### Why teams pick this actor
- **Rank-ready coverage** – Mirrors the long-form, marketing-first READMEs of top marketplace actors while focusing on actionable data (headlines, snippets, publishers, timestamps, thumbnails, canonical URLs).
- **3 capture modes** – SEARCH for keyword monitoring, TOP_STORIES for country/region dashboards, TOPIC (incl. hashed topic IDs) for the curated Google News sections journalists rely on.
- **Localization first** – Every run requires an explicit `language` like `en-US` or `de-DE`, so you can mirror the behavior of your target newsroom or SEO locale.
- **Stateful infinite scroll** – Playwright + Chrome scrolls until `maxItems`, deduplicates via persistent state, and survives platform migrations without repeating articles.
- **Redirect intelligence** – Toggle `resolveRedirects` to unwrap `news.google.com` links via HTTP first, then fall back to a headless browser for stubborn publishers.
- **Operator friendly** – Resource throttling (blocked assets, batching, optional proxy pools) keeps compute predictable, so you can undercut $20/month competitors while still monetizing premium options.

### Perfect for
- Trend and sentiment tracking dashboards
- Competitive/brand monitoring in multiple languages
- Feeding LLM/RAG pipelines with fresh, normalized news snippets
- SEO teams mapping content velocity or backlink opportunities
- Research teams exporting CSV/JSON data into BI tools

### Data you get

| Field | Description |
| --- | --- |
| `title` | Headline as displayed on Google News |
| `source` | Publisher name extracted from the card |
| `publishedAt` | ISO timestamp normalized from relative strings (e.g., “3 hours ago”) |
| `originalUrl` | Google News redirect URL (always present) |
| `finalUrl` | Set when `resolveRedirects=true`; points at the publisher site |
| `thumbnailUrl` | Image from the article card, when available |
| `snippet` | Reserved for future excerpt support |

### Modes & localization cheatsheet

| Mode | When to use | URL that gets crawled |
| --- | --- | --- |
| `SEARCH` | Keyword monitoring, advanced query operators | `https://news.google.com/search?q={query}` |
| `TOP_STORIES` | Country-level front page | `https://news.google.com/topstories` |
| `TOPIC` | Curated sections & hashed topics | Either `https://news.google.com/topics/{topicId}` or a fallback search |

**Topic IDs & sections**
1. Open the desired topic/section on news.google.com.
2. Copy the hashed ID from the URL (e.g., `CAAqJggKIiBDQkFTRWdvSUwyMHZNRGRqTVhZU0FtVnVHZ0pWVXlnQVAB`).
3. Pass it in `query` when `mode="TOPIC"` to lock the crawler to that curated feed.

### Input parameters

| Field | Type | Required | Default | Notes |
| --- | --- | --- | --- | --- |
| `mode` | `'SEARCH' | 'TOP_STORIES' | 'TOPIC'` | No | `SEARCH` | Controls which Google News surface we crawl |
| `query` | `string` | SEARCH / custom TOPIC | – | Keywords or hashed topic IDs |
| `language` | `ll-CC` | Yes | `en-US` | Drives `hl`, `gl`, and `ceid` params; always set it (best practice from Apify leaderboard actors) |
| `resolveRedirects` | `boolean` | No | `false` | Adds an HTTP + optional browser hop per article to unwrap publisher URLs |
| `maxItems` | `number` | No | `100` | Hard stop for infinite scroll + dataset pushes |
| `proxyConfiguration` | `object` | No | Apify auto | Pass your proxy group or custom proxy URL |

### Advanced search operators
- Exact match: `"artificial intelligence"`
- Source filter: `site:reuters.com "earnings"`
- Title only: `intitle:"climate"`
- Exclusions: `tesla -stock`
- Date bounds: `after:2024-01-01 before:2024-06-30`

Combine operators to reproduce the saved searches marketing teams monitor daily.

### Quick start
1. **Add the actor** from the Apify Store and click “Try for free”.
2. **Choose the mode** (SEARCH, TOP_STORIES, TOPIC) and fill in `language` (e.g., `en-GB`).
3. **Paste your keywords or topic IDs**; bump `maxItems` if you need deeper coverage.
4. **Optional:** enable `resolveRedirects` for canonical publisher URLs.
5. **Run & download** the dataset as JSON, CSV, Excel, or stream it via the Apify API.

### Output example

```json
{
  "title": "OpenAI ships GPT-Next",
  "source": "TechCrunch",
  "publishedAt": "2025-11-25T14:30:00.000Z",
  "originalUrl": "https://news.google.com/rss/articles/CBMiYmh0dHBzOi8vbmV3cy5nb29nbGUuY29tLy4uLg",
  "finalUrl": "https://techcrunch.com/2025/11/25/openai-gpt-next",
  "thumbnailUrl": "https://lh3.googleusercontent.com/..."
}
````

#### Dataset schema

| Field | Type | Example | Notes |
| --- | --- | --- | --- |
| `title` | `string` | `"Tesla unveils new Model"` | Headline pulled from the card |
| `source` | `string` | `"Reuters"` | Publisher label |
| `publishedAt` | `string (ISO-8601)` | `"2025-11-25T14:30:00.000Z"` | Normalized by `parseGoogleDate` |
| `originalUrl` | `string` | `"https://news.google.com/..."` | Always present, Google redirect |
| `finalUrl` | `string` | `"https://www.reuters.com/..."` | Only populated when `resolveRedirects=true` or when Google already links directly |
| `thumbnailUrl` | `string` | `"https://lh3.googleusercontent.com/..."` | Optional image URL |
| `snippet` | `string` | `null` | Reserved for future excerpt extraction |

Every dataset item is stored in the default Apify Dataset, so you can download JSON/CSV/Excel or stream via the Dataset API.

### Cost & performance tips

- Redirect resolution is the main price lever. Keep it off for cheaper monitoring runs and upsell it as a premium add-on when clients need canonical URLs.
- Because the crawler blocks images/fonts and reuses sessions, SEARCH mode can pull ~100 results on the default memory tier. Increase the run memory only when `maxItems` is very high.
- Persistent state (`STATE` key-value store) prevents duplicates if the run migrates, so re-runs won’t waste your monthly budget.

### Need help?

Open an issue in the Apify actor console or ping us with your run ID. We actively benchmark against the highest-ranking Google News actors (e.g., api-empire/google-news-scraper at $19.99/month) to keep this README—and the crawler—competitive.

# Actor input Schema

## `mode` (type: `string`):

Choose what to scrape: Search results, Top Stories (Headlines), or a specific Topic.

## `query` (type: `string`):

Keywords to search for. Required if mode is SEARCH.

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

Language and region code (e.g., 'en-US', 'en-GB', 'es-ES'). Maps to 'hl' and 'gl' parameters.

## `resolveRedirects` (type: `boolean`):

If enabled, the actor will follow Google's redirect links to get the actual publisher URL. WARNING: This is slower and consumes more resources.

## `maxItems` (type: `integer`):

Maximum number of articles to scrape.

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

Select proxies to be used by your actor.

## Actor input object example

```json
{
  "mode": "SEARCH",
  "language": "en-US",
  "resolveRedirects": false,
  "maxItems": 100,
  "proxyConfiguration": {
    "useApifyProxy": true
  }
}
```

# Actor output Schema

## `dataset` (type: `string`):

Dataset containing all scraped news articles with headlines, sources, timestamps, and URLs

# 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 = {
    "proxyConfiguration": {
        "useApifyProxy": true
    }
};

// Run the Actor and wait for it to finish
const run = await client.actor("vnx0/google-news-actor").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 = { "proxyConfiguration": { "useApifyProxy": True } }

# Run the Actor and wait for it to finish
run = client.actor("vnx0/google-news-actor").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print("💾 Check your data here: https://console.apify.com/storage/datasets/" + run["defaultDatasetId"])
for item in client.dataset(run["defaultDatasetId"]).iterate_items():
    print(item)

# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start

```

## CLI example

```bash
echo '{
  "proxyConfiguration": {
    "useApifyProxy": true
  }
}' |
apify call vnx0/google-news-actor --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "command": "npx",
            "args": [
                "mcp-remote",
                "https://mcp.apify.com/?tools=vnx0/google-news-actor",
                "--header",
                "Authorization: Bearer <YOUR_API_TOKEN>"
            ]
        }
    }
}

```

## OpenAPI specification

```json
{
    "openapi": "3.0.1",
    "info": {
        "title": "Google News Actor",
        "description": "Google News Scraper collects localized Google News Search, Top Stories, and Topic feeds with infinitescroll, keyword operators, and hashed-topic coverage while deduplicating results across migrations.",
        "version": "0.0",
        "x-build-id": "bvLBKe99zYIoJOOrP"
    },
    "servers": [
        {
            "url": "https://api.apify.com/v2"
        }
    ],
    "paths": {
        "/acts/vnx0~google-news-actor/run-sync-get-dataset-items": {
            "post": {
                "operationId": "run-sync-get-dataset-items-vnx0-google-news-actor",
                "x-openai-isConsequential": false,
                "summary": "Executes an Actor, waits for its completion, and returns Actor's dataset items in response.",
                "tags": [
                    "Run Actor"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/inputSchema"
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "token",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string"
                        },
                        "description": "Enter your Apify token here"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK"
                    }
                }
            }
        },
        "/acts/vnx0~google-news-actor/runs": {
            "post": {
                "operationId": "runs-sync-vnx0-google-news-actor",
                "x-openai-isConsequential": false,
                "summary": "Executes an Actor and returns information about the initiated run in response.",
                "tags": [
                    "Run Actor"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/inputSchema"
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "token",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string"
                        },
                        "description": "Enter your Apify token here"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/runsResponseSchema"
                                }
                            }
                        }
                    }
                }
            }
        },
        "/acts/vnx0~google-news-actor/run-sync": {
            "post": {
                "operationId": "run-sync-vnx0-google-news-actor",
                "x-openai-isConsequential": false,
                "summary": "Executes an Actor, waits for completion, and returns the OUTPUT from Key-value store in response.",
                "tags": [
                    "Run Actor"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/inputSchema"
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "token",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string"
                        },
                        "description": "Enter your Apify token here"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK"
                    }
                }
            }
        }
    },
    "components": {
        "schemas": {
            "inputSchema": {
                "type": "object",
                "required": [
                    "mode"
                ],
                "properties": {
                    "mode": {
                        "title": "Scrape Mode",
                        "enum": [
                            "SEARCH",
                            "TOP_STORIES",
                            "TOPIC"
                        ],
                        "type": "string",
                        "description": "Choose what to scrape: Search results, Top Stories (Headlines), or a specific Topic.",
                        "default": "SEARCH"
                    },
                    "query": {
                        "title": "Search Query",
                        "type": "string",
                        "description": "Keywords to search for. Required if mode is SEARCH."
                    },
                    "language": {
                        "title": "Language & Region",
                        "type": "string",
                        "description": "Language and region code (e.g., 'en-US', 'en-GB', 'es-ES'). Maps to 'hl' and 'gl' parameters.",
                        "default": "en-US"
                    },
                    "resolveRedirects": {
                        "title": "Resolve Redirects",
                        "type": "boolean",
                        "description": "If enabled, the actor will follow Google's redirect links to get the actual publisher URL. WARNING: This is slower and consumes more resources.",
                        "default": false
                    },
                    "maxItems": {
                        "title": "Maximum items",
                        "type": "integer",
                        "description": "Maximum number of articles to scrape.",
                        "default": 100
                    },
                    "proxyConfiguration": {
                        "title": "Proxy configuration",
                        "type": "object",
                        "description": "Select proxies to be used by your actor."
                    }
                }
            },
            "runsResponseSchema": {
                "type": "object",
                "properties": {
                    "data": {
                        "type": "object",
                        "properties": {
                            "id": {
                                "type": "string"
                            },
                            "actId": {
                                "type": "string"
                            },
                            "userId": {
                                "type": "string"
                            },
                            "startedAt": {
                                "type": "string",
                                "format": "date-time",
                                "example": "2025-01-08T00:00:00.000Z"
                            },
                            "finishedAt": {
                                "type": "string",
                                "format": "date-time",
                                "example": "2025-01-08T00:00:00.000Z"
                            },
                            "status": {
                                "type": "string",
                                "example": "READY"
                            },
                            "meta": {
                                "type": "object",
                                "properties": {
                                    "origin": {
                                        "type": "string",
                                        "example": "API"
                                    },
                                    "userAgent": {
                                        "type": "string"
                                    }
                                }
                            },
                            "stats": {
                                "type": "object",
                                "properties": {
                                    "inputBodyLen": {
                                        "type": "integer",
                                        "example": 2000
                                    },
                                    "rebootCount": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "restartCount": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "resurrectCount": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "computeUnits": {
                                        "type": "integer",
                                        "example": 0
                                    }
                                }
                            },
                            "options": {
                                "type": "object",
                                "properties": {
                                    "build": {
                                        "type": "string",
                                        "example": "latest"
                                    },
                                    "timeoutSecs": {
                                        "type": "integer",
                                        "example": 300
                                    },
                                    "memoryMbytes": {
                                        "type": "integer",
                                        "example": 1024
                                    },
                                    "diskMbytes": {
                                        "type": "integer",
                                        "example": 2048
                                    }
                                }
                            },
                            "buildId": {
                                "type": "string"
                            },
                            "defaultKeyValueStoreId": {
                                "type": "string"
                            },
                            "defaultDatasetId": {
                                "type": "string"
                            },
                            "defaultRequestQueueId": {
                                "type": "string"
                            },
                            "buildNumber": {
                                "type": "string",
                                "example": "1.0.0"
                            },
                            "containerUrl": {
                                "type": "string"
                            },
                            "usage": {
                                "type": "object",
                                "properties": {
                                    "ACTOR_COMPUTE_UNITS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_WRITES": {
                                        "type": "integer",
                                        "example": 1
                                    },
                                    "KEY_VALUE_STORE_LISTS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_INTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_EXTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_SERPS": {
                                        "type": "integer",
                                        "example": 0
                                    }
                                }
                            },
                            "usageTotalUsd": {
                                "type": "number",
                                "example": 0.00005
                            },
                            "usageUsd": {
                                "type": "object",
                                "properties": {
                                    "ACTOR_COMPUTE_UNITS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_WRITES": {
                                        "type": "number",
                                        "example": 0.00005
                                    },
                                    "KEY_VALUE_STORE_LISTS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_INTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_EXTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_SERPS": {
                                        "type": "integer",
                                        "example": 0
                                    }
                                }
                            }
                        }
                    }
                }
            }
        }
    }
}
```
