# Google News Scraper: Search, Headlines, Topics & Real URLs (`wyle/google-news-scraper`) Actor

Fetch real-time Google News articles by keyword, country top headlines, or topic feeds across editions. Resolves direct publisher article URLs with dates, summaries, and source metadata cleanly.

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

## Pricing

from $0.90 / 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.
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: Search, Headlines, Topics & Real URLs

Extract real-time Google News headlines, decoded original publisher URLs, publisher metadata, publication timestamps, and multi-source story clusters across global editions. Runs fast without a browser and supports optional full-article text and thumbnail extraction.

### Modes

| Mode | Input | What you get |
|---|---|---|
| **Keyword Search** (`"search"`) | `queries`, `timeRange`, `dateFrom`, `dateTo` | Articles matching keywords, exact phrases, `site:` operators, or direct Google News URLs (with date-window slicing above 100 items) |
| **Top Headlines** (`"top_headlines"`) | `country`, `language` | Country front-page top stories along with related coverage clusters |
| **Topics** (`"topic"`) | `topics` (`WORLD`, `NATION`, `BUSINESS`, `TECHNOLOGY`, etc.) | Category feed stories and related coverage clusters |
| **Local / Geo News** (`"geo"`) | `geoLocations` (`"New York"`, `"London"`, `"Tokyo"`, `"Indonesia"`) | Regional and city-level local news stories |

### Supported Coverage

- **Editions & Languages**: Supports Google News regional editions across 50+ countries and languages via 2-letter ISO `country` (`gl`, such as `US`, `GB`, `CA`, `AU`, `IN`, `ID`, `DE`, `FR`, `JP`, `SG`) and `language` (`hl`, such as `en`, `id`, `de`, `fr`, `es`, `ja`, `pt`, `ar`, `zh`).
- **Standard Topics**: `WORLD`, `NATION`, `BUSINESS`, `TECHNOLOGY`, `ENTERTAINMENT`, `SPORTS`, `SCIENCE`, and `HEALTH`.
- **Article & Cluster Fields**: `guid`, `title`, `rawTitle`, decoded canonical `url`, `googleNewsUrl`, `sourceName`, `sourceUrl`, `sourceDomain`, `publishedAt`, `publishedTimestamp`, `relatedArticles[]`, `relatedCount`, `isUrlDecoded`, plus optional `thumbnailUrl`, `summary`, `author`, `articleText`, and `wordCount`.

### Output Options & Proxy Tips

- **Real Publisher URLs & Article Enrichment**: `decodeUrls` defaults to `true` so every item includes the direct destination publisher URL (`url`) instead of only the Google News redirect link. Enabling `extractArticleContent` (requires `decodeUrls: true`) visits each publisher page to gather `thumbnailUrl`, `summary`, `author`, `articleText`, and `wordCount`, which takes longer and gracefully skips body text on paywalled sites.
- **Beyond 100 Articles**: In `"search"` mode, setting `maxItems` above `100` (up to `1000`) automatically splits queries into adaptive date windows and deduplicates articles across slices.
- **Proxy Recommendations**: Direct connections work out-of-the-box for standard headline, search, topic, and geo runs. Enable Apify Proxy (`proxyConfiguration`) if running large `extractArticleContent` crawls across strict publisher domains.

### Use Cases

1. **Brand & PR Media Monitoring**: Track press coverage, competitor announcements, and `site:` domain mentions across regions and languages.
2. **Market & Financial Intelligence**: Stream breaking industry news and related coverage clusters into trading alerts or analyst dashboards.
3. **AI News Aggregation & RAG**: Feed clean headlines, verified publisher links, and optional full article text into summarization agents and research databases.
4. **Local & Regional Risk Tracking**: Monitor city- or country-specific news feeds (`geo` mode) for supply-chain, policy, or travel disruptions.

### Input Parameters

| Parameter | Type | Default | Description |
|---|---|---|---|
| `scrapeMode` | `string` | `"search"` | Extraction mode: `"search"`, `"top_headlines"`, `"topic"`, or `"geo"`. |
| `queries` | `array` | `["artificial intelligence", "nvidia"]` | Keywords, search operators (`site:`, `OR`, exact phrases), or direct Google News URLs for `"search"` mode. |
| `topics` | `array` | `["TECHNOLOGY", "BUSINESS"]` | Standard topics to extract in `"topic"` mode (`WORLD`, `NATION`, `BUSINESS`, `TECHNOLOGY`, `ENTERTAINMENT`, `SPORTS`, `SCIENCE`, `HEALTH`). |
| `geoLocations` | `array` | `["New York", "London"]` | Cities, states, or countries for `"geo"` mode. |
| `country` | `string` | `"US"` | 2-letter ISO country code (`gl`) for the Google News edition. |
| `language` | `string` | `"en"` | 2-letter ISO language code (`hl`). |
| `timeRange` | `string` | `"7d"` | Recency filter in `"search"` mode: `"any"`, `"1h"`, `"24h"`, `"7d"`, `"30d"`, or `"custom"`. |
| `dateFrom` | `string` | `""` | Optional start date (`YYYY-MM-DD`) when `timeRange` is `"custom"` or when slicing >100 items. |
| `dateTo` | `string` | `""` | Optional end date (`YYYY-MM-DD`) when `timeRange` is `"custom"` or when slicing >100 items. |
| `decodeUrls` | `boolean` | `true` | Resolve Google News redirect URLs into original canonical publisher URLs. |
| `extractArticleContent` | `boolean` | `false` | Visit decoded publisher pages to extract `thumbnailUrl`, `summary`, `author`, and `articleText` (slower; requires `decodeUrls: true`). |
| `maxItems` | `integer` | `30` | Maximum articles per query, topic, or geo location (`1`–`1000`). |
| `proxyConfiguration` | `object` | `{"useApifyProxy": false}` | Optional Apify Proxy configuration (Residential supported). |

### Sample Output

```json
{
  "guid": "CBMimwFBVV95cUxQOWk0NGkyaTZjT29pR0VlM25mNGtrQmZqSnFxUS16cGgyU3dFcXNpQ0I5OGtrVzY4UmpsMHprcjJIQ0E5U1YwTTJtS3ZLTzNPMHhPMFd2TklGSHFMOUhsc2kwZkN6V21hY3ItVC1YM1hVSDd3UDhheXF1QjR6bUJUbVBEbjdCa0E1bnIyc3VuNXhiX3o5enBGYTlaSQ",
  "title": "Artificial intelligence is desperately seeking its narrative",
  "rawTitle": "Artificial intelligence is desperately seeking its narrative - The Conversation",
  "url": "https://theconversation.com/artificial-intelligence-is-desperately-seeking-its-narrative-296067",
  "googleNewsUrl": "https://news.google.com/rss/articles/CBMimwFBVV95cUxQOWk0NGkyaTZjT29pR0VlM25mNGtrQmZqSnFxUS16cGgyU3dFcXNpQ0I5OGtrVzY4UmpsMHprcjJIQ0E5U1YwTTJtS3ZLTzNPMHhPMFd2TklGSHFMOUhsc2kwZkN6V21hY3ItVC1YM1hVSDd3UDhheXF1QjR6bUJUbVBEbjdCa0E1bnIyc3VuNXhiX3o5enBGYTlaSQ?oc=5",
  "sourceName": "The Conversation",
  "sourceUrl": "https://theconversation.com",
  "sourceDomain": "theconversation.com",
  "publishedAt": "2026-11-10T13:12:58Z",
  "publishedTimestamp": 1794316378,
  "pubDateRaw": "Tue, 10 Nov 2026 13:12:58 GMT",
  "scrapeMode": "search",
  "queryOrSection": "artificial intelligence",
  "language": "en",
  "country": "US",
  "relatedArticles": [],
  "relatedCount": 0,
  "thumbnailUrl": "",
  "summary": "",
  "author": "",
  "articleText": "",
  "wordCount": 0,
  "isUrlDecoded": true,
  "scrapedAt": "2026-11-11T15:59:35Z"
}
```

# Actor input Schema

## `scrapeMode` (type: `string`):

Choose 'search' for keyword/operator queries (supports date-window pagination >100 items), 'top_headlines' for country top stories, 'topic' for category feeds (Business, Technology, etc.), or 'geo' for city/country local news.

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

Used in 'search' mode (or direct Google News RSS/Search/Topic URLs). Supports Google search operators like 'site:reuters.com', exact phrases '"artificial intelligence"', OR/AND, or 'when:7d'.

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

Standard Google News topics to extract when 'scrapeMode' is 'topic': WORLD, NATION, BUSINESS, TECHNOLOGY, ENTERTAINMENT, SPORTS, SCIENCE, HEALTH.

## `geoLocations` (type: `array`):

Cities, states, or countries to extract local news for when 'scrapeMode' is 'geo' (e.g., 'New York', 'London', 'Tokyo', 'Indonesia').

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

2-letter ISO country code for Google News edition (e.g., US, GB, CA, AU, IN, ID, DE, FR, JP, SG).

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

2-letter ISO language code (e.g., en, id, de, fr, es, ja, pt, ar, zh).

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

Filter articles by recency in 'search' mode. Choose 'custom' to use 'dateFrom' and 'dateTo'.

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

Optional start date (YYYY-MM-DD) for 'search' mode when 'timeRange' is 'custom' or when slicing >100 items.

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

Optional end date (YYYY-MM-DD) for 'search' mode when 'timeRange' is 'custom' or when slicing >100 items.

## `decodeUrls` (type: `boolean`):

Converts Google News redirect URLs (news.google.com/rss/articles/...) into the original canonical publisher URLs.

## `extractArticleContent` (type: `boolean`):

When enabled (requires decodeUrls=true), fetches each decoded publisher article page to extract og:image thumbnail, summary, author, and full article text. Gracefully falls back if a publisher site is paywalled.

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

Maximum number of articles to extract per query, topic, or geo location. Values above 100 in 'search' mode automatically use date-window slicing to go beyond the 100-item feed limit.

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

Optional Apify Proxy configuration (Residential supported). Direct connections work out-of-the-box for most runs.

## Actor input object example

```json
{
  "scrapeMode": "search",
  "queries": [
    "artificial intelligence"
  ],
  "topics": [
    "TECHNOLOGY",
    "BUSINESS"
  ],
  "geoLocations": [
    "New York",
    "London"
  ],
  "country": "US",
  "language": "en",
  "timeRange": "7d",
  "dateFrom": "",
  "dateTo": "",
  "decodeUrls": true,
  "extractArticleContent": false,
  "maxItems": 30,
  "proxyConfiguration": {
    "useApifyProxy": false
  }
}
```

# 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 = {
    "scrapeMode": "search",
    "queries": [
        "artificial intelligence"
    ],
    "country": "US",
    "language": "en",
    "timeRange": "7d",
    "decodeUrls": true,
    "maxItems": 30
};

// Run the Actor and wait for it to finish
const run = await client.actor("wyle/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 = {
    "scrapeMode": "search",
    "queries": ["artificial intelligence"],
    "country": "US",
    "language": "en",
    "timeRange": "7d",
    "decodeUrls": True,
    "maxItems": 30,
}

# Run the Actor and wait for it to finish
run = client.actor("wyle/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 '{
  "scrapeMode": "search",
  "queries": [
    "artificial intelligence"
  ],
  "country": "US",
  "language": "en",
  "timeRange": "7d",
  "decodeUrls": true,
  "maxItems": 30
}' |
apify call wyle/google-news-scraper --silent --output-dataset

```

## MCP server setup

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