# Google News Scraper — Headlines by Keyword (`easyapi/google-news-scraper`) Actor

Pull Google News hits by keyword, country and language — headlines, sources, dates and links, up to tens of thousands of articles per run.

- **URL**: https://apify.com/easyapi/google-news-scraper.md
- **Developed by:** [EasyApi](https://apify.com/easyapi) (community)
- **Categories:** News
- **Features:** Limited permissions
- **Stats:** 2,781 total users, 113 monthly users, 100.0% runs succeeded, 65 bookmarks
- **User rating**: 4.26 out of 5 stars

## Pricing

from $5.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/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

Turn a keyword into a clean news dataset: headlines, publishers, timestamps and article links — filterable by country and language.

### What does Google News Scraper do?

You give it a search query (and optional `gl` / `hl` / time window). It returns structured Google News results you can export to CSV/JSON for monitoring, briefings or research pipelines. One run can collect a large batch (tens of thousands of articles when you raise `maxItems`).

### Why use this Actor?

- Keyword search with country and language controls — not a blunt “latest news” dump
- Consistent fields: title, source, date, link, snippet (thumbnail when available)
- Fits brand monitoring, competitive intel and sentiment datasets
- Pay per result — start small, scale when the feed looks right

### Input

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `query` | string | yes | Search term |
| `maxItems` | integer | yes | Max articles to return |
| `gl` | string |  | Google country (e.g. `us`, `gb`) |
| `hl` | string |  | UI language |
| `lr` | string |  | Restrict results language |
| `cr` | string |  | Restrict results country |
| `time_period` | string |  | Preset time window |
| `time_period_min` | string |  | Custom start date `MM/DD/YYYY` |
| `time_period_max` | string |  | Custom end date `MM/DD/YYYY` |
| `nfpr` | integer |  | `1` to skip auto-corrected queries |
| `filter` | integer |  | Similar / omitted results filter (`0` or `1`) |

### Output fields

| Field | Description |
| --- | --- |
| `title` | Headline |
| `link` | Article URL |
| `source` / `domain` | Publisher |
| `date` / `date_utc` | Publish time |
| `snippet` | Short summary |
| `thumbnail` | Image when present |

### Example run

```json
{
  "query": "electric vehicles",
  "maxItems": 100,
  "gl": "us",
  "hl": "en"
}
```

Open the run’s dataset in Apify Storage to export results.

### Use cases

- Daily / weekly brand and competitor news digests
- Topic feeds for aggregation products
- Training or analysis sets for sentiment and trend work

### Pricing & limits

See the Actor page for current pay-per-result pricing. Use Apify Proxy if Google starts thinning or blocking responses. You are responsible for lawful use and Google’s terms.

### FAQ

**Empty or thin results?** Lower concurrency, enable proxy, and try a narrower `time_period`.

**Which languages/countries?** Use `gl`, `hl`, `lr` and `cr` together — start with `gl` + `hl` only.

### Related Actors

- [Google Trends Keywords Discovery](https://apify.com/easyapi/google-trends-keywords-discovery-tool)
- [Article Content Extractor](https://apify.com/easyapi/article-content-extractor)

***

#### More from EasyAPI

- [Google News Scraper on easyapi.tools](https://easyapi.tools/google-news-scraper/?utm_source=apify\&utm_medium=store\&utm_campaign=readme\&utm_content=google-news-scraper) — input reference, example output and per-1k-result pricing.
- [All EasyAPI scrapers](https://easyapi.tools/news/?utm_source=apify\&utm_medium=store\&utm_campaign=readme\&utm_content=google-news-scraper) — the full catalog for news, social, ads, jobs and e-commerce.

*EasyAPI builds and maintains this Actor. Billing and runs stay on Apify.*

# Actor input Schema

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

Maximum number of search results to retrieve

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

The search term to use

## `gl` (type: `string`):

The Google country to use for the query

## `hl` (type: `string`):

The Google UI language to return results

## `lr` (type: `string`):

Limit the results to a specific language

## `cr` (type: `string`):

Limit the results to a specific country

## `time_period` (type: `string`):

Time period for results

## `time_period_min` (type: `string`):

Minimum date for custom time period (MM/DD/YYYY)

## `time_period_max` (type: `string`):

Maximum date for custom time period (MM/DD/YYYY)

## `nfpr` (type: `integer`):

Exclude results from auto-corrected queries (0 or 1)

## `filter` (type: `integer`):

Enable/disable Similar Results and Omitted Results filters (0 or 1)

## Actor input object example

```json
{
  "maxItems": 1000,
  "query": "Elon Musk"
}
```

# 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 = {
    "maxItems": 1000,
    "query": "Elon Musk"
};

// Run the Actor and wait for it to finish
const run = await client.actor("easyapi/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 = {
    "maxItems": 1000,
    "query": "Elon Musk",
}

# Run the Actor and wait for it to finish
run = client.actor("easyapi/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 '{
  "maxItems": 1000,
  "query": "Elon Musk"
}' |
apify call easyapi/google-news-scraper --silent --output-dataset

```

## MCP server setup

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