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

🚀 Google News data at your fingertips: Our powerful scraper delivers real-time news monitoring across 70+ region/language combinations. Built as a developer-friendly API alternative, it transforms raw news feeds into structured, actionable data.

- **URL**: https://apify.com/data_xplorer/google-news-scraper.md
- **Developed by:** [Data Xplorer](https://apify.com/data_xplorer) (community)
- **Categories:** News, Integrations, Automation
- **Features:** Limited permissions
- **Stats:** 151 total users, 4 monthly users, 100.0% runs succeeded, 7 bookmarks
- **User rating**: 5.00 out of 5 stars

## Pricing

from $1.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.
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

Transform your news monitoring with our Google News scraper! Whether you're tracking market trends, monitoring brand mentions, or conducting research, this tool efficiently collects and structures news data from Google News. Built for performance and reliability, it handles multilingual content and various regional editions with ease.

![trends scraper](https://i.ibb.co/xqSchSMc/Leonardo-Phoenix-10-I-want-a-banner-in-the-atmosphere-of-GTA-V-0.jpg)

### 💎 Why Choose Our Google News Scraper?

- 🔓 **Smart URL Decoder**: Access original article sources with our powerful decoding system
- 🚀 **Lightning-Fast Description Extraction**: Extract article descriptions with our exclusive anti-blocking solution
- 🔍 **Multi-Keyword Power**: Search multiple topics simultaneously to maximize your data gathering
- ⏱️ **Flexible Time Frames**: Choose from various time periods to get exactly the data you need
- 🌎 **Global Coverage**: Support for 70+ regions and languages to access worldwide news
- ⚡ **Blazing Speed**: Optimized performance with parallel processing for ultra-fast results
- 🖼️ **Image Quality**: Automatically extract high-resolution images from articles

### 🔮 How to Power Up Your Search Keywords?

You can enhance your search queries using Google News search operators:

- Use `-` to exclude words (e.g., `bitcoin -ethereum` will show bitcoin news but exclude those mentioning ethereum)
- Use `site:` to filter by specific website (e.g., `bitcoin site:cnn.com` will only show articles from CNN)
- Use `OR` to search for multiple terms (e.g., `bitcoin OR ethereum` will show articles containing either term)

### ✨ What You'll Get

#### 📰 News Data Structure

| Field | Description |
|-------|-------------|
| title | Title of the news article |
| source | Source/publisher of the news |
| url | Direct link to the article |
| description | Article description extracted from the original source (if enabled) |
| publishedAt | ISO date of publication (when available) |
| publishedTimestamp | Unix timestamp (ms) of publication (when available) |
| image | Article image URL (upgraded to higher resolution when available) |
| metadata | Additional information about the scraping (scrapeTimestamp, keyword, timeframe) |

### 🚀 Performance Features

#### ⚡️ Lightning Fast:

- Proxy support via Apify Proxy (configured in the UI)
- Optimized resource usage
- Smart retry mechanism

#### 🛠️ Smart Handling:

- Automatic URL standardization
- Support for all Google News domains
- Intelligent error handling
- Multi-keyword processing

#### 🌍 Global Coverage:

- Works with any country/language combination
- Captures news in all languages
- Standardizes output format

### 📋 Quick Start

#### Input Parameters

| Parameter | Type | Default | Description |
|-----------|------|---------|-------------|
| keywords | array | \["bitcoin"] | List of keywords to search |
| maxArticles | number | 20 | Number of news to collect per keyword (0 = no limit) |
| timeframe | string | "1h" | Time period for news (1h/1d/7d/1y/all) |
| region_language | string | "US:en" | Region and language combination |
| decodeUrls | boolean | false | Decode Google News URLs to get original article URLs |
| extractDescriptions | boolean | false | Extract article descriptions from original sources |
| proxyConfiguration | object | {"useApifyProxy": true} | Configure Apify Proxy in the UI (works with Limited permissions) |

#### Input Example

```json
{
  "keywords": ["bitcoin"],
  "maxArticles": 20,
  "timeframe": "1h",
  "region_language": "US:en",
  "decodeUrls": false,
  "extractDescriptions": true,
  "proxyConfiguration": {
    "useApifyProxy": true
  }
}
```

#### Output Example

```json
[
  {
    "title": "Bitcoin Hits New All-Time High",
    "source": "Financial Times",
    "url": "https://ft.com/article/...",
    "publishedAt": "2025-02-22T12:41:25.936Z",
    "publishedTimestamp": 1740283285936,
    "image": "https://news.google.com/api/attachments/...-w800-...-h400-...",
    "description": "Bitcoin jumps 20% after new signals from regulators...",
    "metadata": {
      "scrapeTimestamp": "2025-02-22T12:41:25.936Z",
      "keyword": "bitcoin",
      "timeframe": "1h"
    }
  }
]
```

### 🤝 Support & Resources

Need help? Have questions? We're here to help!
If you encounter any issues or have feature requests, please don't hesitate to open an issue.

**❤️ Love our scraper?** Please leave a review [here](https://console.apify.com/actors/3Z6SK7F2WoPU3t2sg/reviews)

# Changelog

This Actor's version history is a separate document: https://apify.com/data_xplorer/google-news-scraper/changelog.md

# Actor input Schema

## `keywords` (type: `array`):

List of keywords to search for. You can use Google News search operators:

- Use '-' to exclude words (e.g. 'bitcoin -ethereum')
- Use 'site:' to filter by specific website (e.g. 'bitcoin site:cnn.com')
- Use 'OR' to search for multiple terms (e.g. 'bitcoin OR ethereum')
- Use quotes for exact match (e.g. '"bitcoin price"')

## `maxArticles` (type: `integer`):

Maximum number of news to extract per keyword (0 = no limit). Above 100, the scraper automatically splits the time period into sub-windows to gather more results.

## `timeframe` (type: `string`):

Time period for the news search

## `region_language` (type: `string`):

Region and language for news search

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

If enabled, decodes Google News URLs to get the original article URLs. Note: This will significantly slow down the scraping process as each URL needs to be decoded individually.

## `extractDescriptions` (type: `boolean`):

If enabled, extracts the meta description from each article page. Note: This will significantly slow down the scraping process as each article URL needs to be requested individually.

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

If enabled (default), extracts a preview image for each article, either from the Google News listing or from the article's og:image meta tag.

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

Configure Apify Proxy

## Actor input object example

```json
{
  "keywords": [
    "bitcoin"
  ],
  "maxArticles": 20,
  "timeframe": "1h",
  "region_language": "US:en",
  "decodeUrls": false,
  "extractDescriptions": false,
  "extractImages": true,
  "proxyConfiguration": {
    "useApifyProxy": true
  }
}
```

# Actor output Schema

## `results` (type: `string`):

Browse items in the default dataset produced by this run.

# 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 = {
    "keywords": [
        "bitcoin"
    ],
    "proxyConfiguration": {
        "useApifyProxy": true
    }
};

// Run the Actor and wait for it to finish
const run = await client.actor("data_xplorer/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 = {
    "keywords": ["bitcoin"],
    "proxyConfiguration": { "useApifyProxy": True },
}

# Run the Actor and wait for it to finish
run = client.actor("data_xplorer/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 '{
  "keywords": [
    "bitcoin"
  ],
  "proxyConfiguration": {
    "useApifyProxy": true
  }
}' |
apify call data_xplorer/google-news-scraper --silent --output-dataset

```

## MCP server setup

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