# Google News Scraper (Headlines by Topic, Query, Country) (`locaihost/google-news`) Actor

Google News headlines by search query or topic in 44 editions: title, publisher, publish time, related coverage and the real article link on request, with an only-new mode and free summary rows by publisher and day. $2.30 per 1,000 articles.

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

## Pricing

from $1.27 / 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 by Topic, Query, Country)

Get Google News headlines for any search query or topic in 44 country editions: title, publisher, publish time, the related coverage of the same story, and the article's real link (decoded on request). An only-new mode returns just what was not returned before, and every feed ends with one free summary row of counts by publisher and by day.

### How do I start?

Paste this into the input (JSON tab) and press Start:

```json
{
    "queries": ["climate change"],
    "country": "us"
}
```

One query takes about 5 to 15 seconds and returns up to 50 headlines, plus one free summary row. More examples:

```json
{
    "queries": ["electric vehicles when:7d", "\"chip exports\" Taiwan"],
    "topics": ["BUSINESS", "TECHNOLOGY"],
    "country": "gb",
    "maxArticlesPerQuery": 100,
    "onlyNew": true
}
```

### What does it return?

One row per headline (`type: "article"`, charged) and one free summary row per query or topic (`type: "summary"`). A run of two or more feeds also gets one free run-wide total row (`feed: "(all feeds)"`).

#### What does each row contain?

| Field | What it is |
|---|---|
| `id` | Stable id: the same article in the same feed, edition and window always gets the same id |
| `type` | `article` for a headline, `summary` for a free summary row |
| `feed`, `feedType` | The query from your input or the topic code (WORLD, BUSINESS...), and `query`, `topic` or `all` (run total) |
| `position` | 1-based position of the headline in the feed (0 on summary rows) |
| `title` | The headline, without the publisher suffix Google News appends |
| `link`, `linkDecoded` | The article's own address when the link was decoded, else the Google News link; `linkDecoded` says which |
| `googleLink` | The news.google.com link the feed carried, always kept |
| `publisher`, `publisherUrl`, `domain` | The publisher Google News names, its own address from the feed's source tag, and the domain of the article (or of the publisher when the link is not decoded) |
| `publishedAt` | Publish time as ISO, such as 2026-11-13T10:00:00.000Z |
| `snippet` | Extra text the feed shows beyond headline and publisher, usually null |
| `related` | The story's other coverage: title, link and publisher of each (topic and top stories feeds carry it) |
| `country`, `language`, `feedUrl`, `scrapedAt` | Which edition and feed the row came from, and when it was read |
| `articlesFound`, `articlesReturned`, `skippedAsSeen` | Summary rows: articles in the feed, articles returned this run, and articles skipped as returned before (onlyNew) |
| `byPublisher`, `byDay`, `relatedCoverage` | Summary rows: article counts by publisher and by day, and how many related links the feed carried |
| `oldestPublishedAt`, `newestPublishedAt` | Summary rows: the publish time range of the feed's articles |
| `message` | Summary rows: how the feed ended in plain words, and a clear message when nothing was found |

Example article row:

```json
{
    "type": "article",
    "feed": "climate change",
    "feedType": "query",
    "position": 1,
    "title": "Why even a fraction of a degree can escalate climate change impacts",
    "publisher": "Example Post",
    "publisherUrl": "https://www.example.com",
    "domain": "example.com",
    "link": "https://news.google.example/rss/articles/CBMi?oc=5",
    "linkDecoded": false,
    "googleLink": "https://news.google.example/rss/articles/CBMi?oc=5",
    "publishedAt": "2026-11-13T10:00:00.000Z",
    "related": [
        { "title": "Talks open with finance top of the agenda", "link": "https://news.google.example/rss/articles/CBMk?oc=5", "publisher": "Example Wire" }
    ],
    "country": "US",
    "language": "en-US"
}
```

### Which rows are free?

Free rows, never charged: every query and every topic gets one summary row (`type: "summary"`) with articles found and returned, articles skipped as already seen, the counts by publisher and by day, the newest and oldest publish times, and a plain message on how the feed ended. Feeds with no articles still get their summary row, with a message saying so, so you can see what came back empty. Use the **Summary** view to see them on their own.

### What makes it different?

- **Only new articles.** Turn on **Only new articles** for scheduled runs and each run returns only articles it has not returned before for the same feed, edition and window. The memory lives in your own Apify storage and is free.
- **Free summary rows.** Publisher and day counts for every feed and for the whole run, never charged, so a quick look tells you what moved before you export a thing.
- **Real links when you want them.** Turn on **Decode real article links** and each row's `link` becomes the article's own address. Off, you still get the publisher's address and domain on every row, free.
- **Related coverage.** Topic and top stories feeds list the other outlets covering the same story; each row carries them.
- **44 editions.** Pick the country and the language and read the edition a visitor there sees, from us and gb to br, jp, tw or vn.
- **Topics and queries in one run.** Search any keyword (a `when:7d` window works inside a query) or read the topic feeds: top stories, world, business, technology and more.
- **Input from other tools just works.** Fields named `query`, `keywords`, `maxItems` or `timeframe` in a pasted input are read the way you expect.

### How much does it cost?

$2.30 per 1,000 articles, with one paid event, "article", charged once per article row, plus Apify's one-time run start event. Summary rows are free, and a feed with no articles costs nothing. Larger Apify plans pay less per article (shown on the Pricing tab).

The run stops cleanly at 90% of your maximum charge and keeps everything read so far.

**Free Apify plan:** up to 200 rows and up to 20 feeds (one per query or topic) per run. Any paid Apify plan removes both limits.

### Which inputs can I use?

| Input | What it does |
|---|---|
| `queries` | Search queries, one per line (up to 200). Google News search operators work, and a window can live inside one, e.g. `electric vehicles when:7d`. |
| `topics` | Topic feeds: TOP (top stories), WORLD, NATION, BUSINESS, TECHNOLOGY, ENTERTAINMENT, SPORTS, SCIENCE, HEALTH. |
| `country` | Two-letter edition code, e.g. `us`, `gb`, `de`, `in`, `jp` (44 to choose from). |
| `language` | Language code such as `en`, `es`, `pt-BR` or `zh-TW`; defaults to the country's own language. |
| `maxArticlesPerQuery` | Most headlines per query or topic, 1 to 100 (a feed holds about 100). Default 50. |
| `onlyNew` | Return only articles not returned by an earlier run of the same feed, edition and window. |
| `dateRange` | Advanced. `any`, `1h`, `12h`, `1d`, `7d`, `30d` or `1y`. Queries get it as a Google News `when:` window; topic feeds are filtered by publish time. A query's own `when:` wins. |
| `decodeLinks` | Advanced. Replace each Google News link with the article's own address. Two extra requests per article, so about 3 seconds more per article. Off by default. |

### How do I monitor a beat over time?

1. Save your input as a task with your queries or topics, country and language.
2. Turn on **Only new articles** and add a daily (or hourly) schedule to the task.
3. Each run returns only what is new; the summary row's counts by publisher and by day show the shape of the coverage.

Changing the country, the language or the window starts a separate memory, so a 7-day run never mixes with an open one.

### What happens when something goes wrong?

- Bad input (an unknown country, topic or time window, no queries and no topics) ends the run with a message and charges nothing.
- If Google News refuses or cannot be reached after retries, the run keeps the articles it read, says which feeds to re-run, and charges only for rows delivered.
- If link decoding stops working mid-run, later rows keep the Google link and the run says so.
- If the run's time limit is near, it stops early, saves everything and says which feeds were not finished.

### Can I call it from an agent or my own code?

Yes. It works through the Apify API, the Apify MCP server and the Apify client libraries, with the same input as above, so your agents and scripts can call it like any other Actor. A one-query run returns in well under a minute.

### Is it legal to collect news headlines?

The Actor reads Google News's public RSS feeds without signing in and collects headlines, publisher names and links, not article text. Google's own terms and the notice inside each feed limit how the feed may be used (the feed notice speaks of personal, non-commercial use in a feed reader), and Google's robots rules do not invite automated reading of the feeds. Read those terms and decide, with legal advice if you need it, whether your use is allowed. You are responsible for how you use the data, for respecting each publisher's rights in its articles, and for following the laws that apply to you. The Actor collects no personal data beyond what appears in public headlines.

### FAQ

#### Is the link always the article's own address?

Only when decoded. Links in Google News' older format carry the article's address inside the link itself, and those are decoded for free on every run, but nearly all links today carry an internal id instead. For those, turn on **Decode real article links**: the Actor asks Google News for the address the same way its own page does, two requests per article. Without it, `link` stays the Google News link (which opens the article in a browser) and `publisherUrl` and `domain` still tell you where the story came from.

#### Why did a query return fewer than 100 articles?

A Google News feed holds about 100 articles at most, and narrow queries or short windows hold fewer. The summary row says how many the feed had.

#### Can I get articles from a specific date range?

Use `dateRange` or a `when:` window inside the query, such as `when:12h` or `when:30d`. Exact start and end dates are not supported by the feeds.

#### Does it return the full article text or images?

No. It returns what the feed carries: headline, publisher, link, time and related coverage.

### Questions or problems?

Open an issue on the Issues tab and we will answer within a day. If the Actor helped, a rating on the Store helps other people find it.

# Changelog

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

# Actor input Schema

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

What to search on Google News, one per line. Paste up to 200. A window can live inside a query, e.g. "electric vehicles when:7d".

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

Google News topic feeds to read next to the queries. Leave empty to search only.

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

The Google News edition read: headlines are what a visitor in that country sees.

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

Language code such as en, es, de, pt-BR or zh-TW. Leave empty for the country's own language.

## `maxArticlesPerQuery` (type: `integer`):

Most headlines to return per query or topic. A Google News feed holds about 100 at a time.

## `onlyNew` (type: `boolean`):

Skip articles this Actor already returned for the same feed, edition and window in an earlier run. Skipped articles are counted in the free summary row and never charged. Good for a daily schedule.

## `dateRange` (type: `string`):

Only articles published within this window. Queries pass it to Google News as a when: window; topic feeds are filtered by each article's publish time. A query's own when: window wins over this.

## `decodeLinks` (type: `boolean`):

Replace each Google News link with the article's own address. Google News now hides most addresses behind an id, so this takes two extra requests to Google News per article and makes the run slower (about 3 seconds per article). Off: the link stays the Google link, which opens the article in a browser, and publisherUrl and domain still name the publisher. Links that hold the address in plain form are decoded either way, free.

## Actor input object example

```json
{
  "queries": [
    "climate change",
    "electric vehicles when:7d",
    "\"chip exports\" Taiwan"
  ],
  "country": "us",
  "maxArticlesPerQuery": 50,
  "onlyNew": false,
  "dateRange": "any",
  "decodeLinks": false
}
```

# Actor output Schema

## `articles` (type: `string`):

Every headline: query or topic, position, title, publisher, link, publish time, snippet and related coverage.

## `summaries` (type: `string`):

One free row per query or topic, plus one run-wide total row when the run reads two or more feeds: articles found and returned, counts by publisher and by day, and a plain message on how the feed ended.

## `summary` (type: `string`):

Counts per feed, anything that failed, and cost.

# 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": [
        "climate change"
    ],
    "country": "us",
    "maxArticlesPerQuery": 50
};

// Run the Actor and wait for it to finish
const run = await client.actor("locaihost/google-news").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": ["climate change"],
    "country": "us",
    "maxArticlesPerQuery": 50,
}

# Run the Actor and wait for it to finish
run = client.actor("locaihost/google-news").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": [
    "climate change"
  ],
  "country": "us",
  "maxArticlesPerQuery": 50
}' |
apify call locaihost/google-news --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,locaihost/google-news"
        }
    }
}
```

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/Y9hwHXKrNee5oyJH3/builds/pIa1coLPtpYyjDyGM/openapi.json
