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

Search Google News by keyword and export articles as structured data: title, description, source, published date and article URL. Supports multiple keywords, language/region targeting and per-keyword limits.

- **URL**: https://apify.com/outspoken\_strategy/google-news-scraper.md
- **Developed by:** [code craker](https://apify.com/outspoken_strategy) (community)
- **Categories:** News, Lead generation, Social media
- **Stats:** 6 total users, 5 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $20.00 / 1,000 results

This Actor is paid per event and usage. You are charged both the fixed price for specific events and for Apify platform usage.

Learn more: https://docs.apify.com/platform/actors/running/actors-in-store#pay-per-event

## What's an Apify Actor?

Actors are web data automations that power AI and operations. They run on the Apify platform to scrape websites, process data, connect APIs, and automate workflows.
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.

- **AI agents and MCP clients** — the [Apify MCP server](https://docs.apify.com/integrations/mcp.md) at `https://mcp.apify.com` (remote, streamable HTTP, OAuth on first use).
- **Agentic workflows and local Actor development** — [Agent Skills](https://apify.com/.well-known/agent-skills/index.json) with the [Apify CLI](https://docs.apify.com/cli/docs.md): `npm install -g apify-cli`, then `apify login`.
- **JavaScript/TypeScript projects** — the official [JS/TS client](https://docs.apify.com/api/client/js/docs.md): `npm install apify-client`.
- **Python projects** — the official [Python client](https://docs.apify.com/api/client/python/docs.md): `pip install apify-client`.
- **Any other language** — 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

Search Google News by keyword and export articles as structured data. Fetches the
Google News RSS search feed directly — no browser, no proxies, so runs are fast
and cheap.

### Input

| Field | Type | Description |
| --- | --- | --- |
| `searchQuery` | string | Keyword/phrase to search (`query` is accepted as an alias). Multiple lines = multiple keywords. |
| `queries` | array | Multiple keywords; results are combined and de-duplicated. `maxItems` applies per keyword. |
| `maxItems` | integer | Max articles per keyword (Google News RSS serves at most ~100). Default 20. |
| `language` | string | Two-letter language code, e.g. `en`. Default `en`. |
| `region` | string | Two-letter country code, e.g. `US`, `ZA`, `ZW`. Default `US`. |
| `timePeriod` | string | Optional recency window, e.g. `1h`, `1d`, `7d`, `1y`. |
| `extractImages` | boolean | Accepted for compatibility; the RSS feed has no images (no-op). |

### Output

One dataset item per article:

```json
{
    "title": "…",
    "description": "…",
    "articleUrl": "https://news.google.com/rss/articles/CBMi…",
    "googleNewsUrl": "https://news.google.com/rss/articles/CBMi…",
    "source": "Publisher name",
    "sourceUrl": "https://publisher.example.com",
    "publishedAt": "2026-07-02T13:48:15.000Z",
    "publishedAtRaw": "Thu, 02 Jul 2026 13:48:15 GMT",
    "guid": "…",
    "searchQuery": "econet",
    "language": "en",
    "region": "US",
    "scrapedAt": "…"
}
```

`articleUrl`/`googleNewsUrl` are Google News wrapper URLs (the same shape other
Google News actors return); resolve them to the real article URL downstream if
needed.

# Actor input Schema

## `searchQuery` (type: `string`):

Keyword/phrase to search on Google News. You can also paste several keywords, one per line, to search them all. "query" is accepted as an alias.

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

Multiple keywords/phrases to search — each is searched separately and results are combined and de-duplicated by article. maxItems applies PER keyword.

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

Maximum number of articles to return per keyword (Google News RSS serves at most ~100).

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

Two-letter language code for the news edition (e.g. "en", "fr", "de", "es", "pt").

## `region` (type: `string`):

Two-letter country code for the news edition (e.g. "US", "GB", "ZA", "ZW"). Defaults to US.

## `timePeriod` (type: `string`):

Restrict results to a recent window, e.g. "1h", "1d", "7d", "1y". Leave empty for no restriction.

## `extractImages` (type: `boolean`):

Accepted for input compatibility; Google News RSS does not include images, so this is currently a no-op.

## Actor input object example

```json
{
  "searchQuery": "artificial intelligence",
  "queries": [],
  "maxItems": 20,
  "language": "en",
  "region": "US",
  "extractImages": false
}
```

# 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 = {
    "searchQuery": "artificial intelligence",
    "queries": []
};

// Run the Actor and wait for it to finish
const run = await client.actor("outspoken_strategy/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 = {
    "searchQuery": "artificial intelligence",
    "queries": [],
}

# Run the Actor and wait for it to finish
run = client.actor("outspoken_strategy/google-news-scraper").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 '{
  "searchQuery": "artificial intelligence",
  "queries": []
}' |
apify call outspoken_strategy/google-news-scraper --silent --output-dataset

```

## MCP server setup

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

```

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/acts/HdQFazUnscBrBgZNq/builds/Bajqc0msnjjzCUQ4N/openapi.json
