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

Google News headlines by keyword, topic or top stories in any country and language: title, publisher, publication date, snippet and the publisher's real article URL (not the Google redirect). Fast and cheap, no API key.

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

## Pricing

from $1.40 / 1,000 articles

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

Headlines from Google News as clean data: search any keyword, or pull the Top stories, World, Business, Technology, Sports and other sections, in any country and language edition. Each article comes with its title, publisher, publication time, snippet and, unlike the raw Google feed, the publisher's real article URL instead of a Google redirect.

Fast and cheap: one request per 100 headlines, two tiny requests per article to resolve the URL. No API key, no browser. Built for media monitoring, brand and competitor alerts, research datasets and feeding news into AI pipelines.

### What you get

| Field | Description |
|---|---|
| `feedType`, `query`, `topic`, `position` | Where the article came from and its rank in that feed |
| `title`, `publisher`, `publisherUrl` | Headline and source |
| `publishedAt` | ISO 8601 publication time |
| `articleUrl` | The publisher's URL, resolved from the Google redirect (`null` if resolution was off or failed) |
| `googleNewsUrl`, `guid` | Google's own link and ID |
| `snippet` | The text Google shows under the headline, when any |
| `error`, `errorMessage` | Only on feed-level failures |

### Sample output

```json
{
  "feedType": "search",
  "query": "bitcoin",
  "position": 1,
  "title": "Trump Media Moves $434 Million in Bitcoin to Crypto.com, Blockchain Data Show",
  "publisher": "CoinDesk",
  "publisherUrl": "https://www.coindesk.com",
  "publishedAt": "2026-11-05T14:12:00.000Z",
  "articleUrl": "https://www.coindesk.com/markets/2026/11/05/trump-media-moves-usd434-million-in-bitcoin-to-crypto-com-blockchain-data-show",
  "googleNewsUrl": "https://news.google.com/rss/articles/CBMivwFBVV95cUxOd2JhaWVYSkpWdGxJcWdZS2U2UnJuOXNRNGFQa0M2ZGV1c0E...",
  "guid": "CBMivwFBVV95cUxOd2JhaWVYSkpWdGxJcWdZS2U2UnJuOXNRNGFQa0M2ZGV1c0E...",
  "fetchedAt": "2026-11-05T17:40:00.000Z"
}
```

### Input

| Field | Type | Default | What it does |
|---|---|---|---|
| `queries` | array of strings | | Keywords to search. Google operators work: quotes, `OR`, `-word`, `site:`. |
| `topics` | array | `[]` | `TOP`, `WORLD`, `NATION`, `BUSINESS`, `TECHNOLOGY`, `ENTERTAINMENT`, `SPORTS`, `SCIENCE`, `HEALTH`. |
| `maxArticlesPerFeed` | integer | `100` | Google serves up to about 100 per feed. |
| `period` | string | none | `1h`, `12h`, `1d`, `7d`, `30d`: only results from that window (queries only). |
| `country`, `language` | strings | `US`, `en` | The Google News edition. |
| `resolveArticleUrls` | boolean | `true` | Resolve each Google redirect to the publisher's URL. |
| `maxConcurrency` | integer | `5` | Feeds in parallel. |
| `proxyConfiguration` | object | Apify datacenter proxy | Proxy for all requests. |
| `residentialFallback` | boolean | `true` | Retry a blocked feed through residential proxies, only on a detected block. |

Give at least one query or one topic. Minimal input:

```json
{ "queries": ["openai"], "period": "1d", "country": "US", "language": "en" }
```

### Errors

| `error` | Meaning | Charged? |
|---|---|---|
| `NO_RESULTS` | Google News returned no articles for that query or topic | no |
| `BLOCKED` | Google refused the request from every proxy tried | no |
| `FETCH_FAILED` | Network or parsing failure | no |

### Pricing

Pay per event: a small fixed amount per article item, plus Apify platform usage. Error items are free. Set a maximum total charge on the run to cap spend.

### Notes

- Google News ranks and deduplicates articles itself; the feed order is kept as `position`.
- `articleUrl` resolution uses the same mechanism as the Google News web app. If Google changes it, articles come back with `articleUrl: null` and the Google link still works as a redirect; the actor is tested daily.
- Editions: `country` and `language` combine as Google does (`en-US`, `de-DE`, `fr-FR`). Mismatched pairs fall back to Google's default for that country.

### Using it from code

```js
import { ApifyClient } from 'apify-client';
const client = new ApifyClient({ token: process.env.APIFY_TOKEN });
const run = await client.actor('serentity/google-news-scraper').call({ queries: ['openai'], period: '1d' });
const { items } = await client.dataset(run.defaultDatasetId).listItems();
console.log(items.map((a) => [a.publishedAt, a.publisher, a.title]));
```

### Legal

Headlines, publishers and links are public data from Google News feeds. The actor stores no article bodies and no personal data. Use it in line with Google's terms of service and the publishers' rights.

# Actor input Schema

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

Keywords to search Google News for, one per line. Google's search operators work: quotes, OR, -exclude, site:example.com.

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

Google News sections to fetch in addition to (or instead of) queries.

## `maxArticlesPerFeed` (type: `integer`):

Google News serves up to about 100 articles per feed.

## `period` (type: `string`):

Limit search results to the last N hours or days: 1h, 12h, 1d, 7d, 30d. Leave empty for no limit.

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

Two-letter country code for the Google News edition, for example US, GB, DE, FR.

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

Language code for the edition, for example en, de, fr, es. Combined with the country as Google does (en-US, de-DE).

## `resolveArticleUrls` (type: `boolean`):

Google News links are redirects. When on, each one is resolved to the publisher's real article URL (two extra small requests per article). Turn off for the fastest, cheapest run.

## `maxConcurrency` (type: `integer`):

Feeds processed in parallel.

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

Proxy used for the requests. Apify datacenter proxies are used by default.

## `residentialFallback` (type: `boolean`):

If Google blocks the datacenter proxy, retry through Apify residential proxies. Only used on a detected block.

## Actor input object example

```json
{
  "queries": [
    "artificial intelligence"
  ],
  "topics": [],
  "maxArticlesPerFeed": 100,
  "country": "US",
  "language": "en",
  "resolveArticleUrls": true,
  "maxConcurrency": 5,
  "proxyConfiguration": {
    "useApifyProxy": true
  },
  "residentialFallback": true
}
```

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

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

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

```

## MCP server setup

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