# Google News Feed with Publisher URLs (`banyan/google-news-feed`) Actor

Google News search and topic feeds as clean JSON with decoded publisher article URLs, and a monitor mode that returns only new articles since the last run.

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

## Pricing

$1.50 / 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.

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 Feed with Publisher URLs

Turn Google News searches and topic sections into clean JSON. Each article comes with the publisher's own article
URL (decoded from the Google News redirect link), the publisher name, the publication time and the query that found
it. Monitor mode returns only articles you have not received before, so a scheduled run gives you a feed of new
stories.

### Who it is for

- Media monitoring and PR teams tracking brands, competitors or people in the news.
- Analysts and researchers collecting news on a topic over time.
- AI agents and retrieval pipelines that need fresh article links they can fetch directly.

### Input

| Field | Default | Meaning |
|---|---|---|
| `queries` | required | One Google News search per entry. Search operators work: `"exact phrase"`, `OR`, `-word`, `site:reuters.com`, `intitle:`. Use `topic:NAME` for a topic section: `WORLD`, `NATION`, `BUSINESS`, `TECHNOLOGY`, `ENTERTAINMENT`, `SPORTS`, `SCIENCE`, `HEALTH`. |
| `language` | `en` | Google News language, for example `en`, `de`, `fr`, `es`, `pt-BR`. |
| `country` | `US` | Two-letter country of the Google News edition, for example `US`, `GB`, `DE`, `IN`. |
| `when` | none | Only articles from the last `1h`, `1d`, `7d`, `30d`, `1y` (a number followed by h, d or y). Search queries only. |
| `maxArticlesPerQuery` | 100 | 1 to 100. Google News returns about 100 articles per feed. |
| `decodeUrls` | true | Resolve the publisher URL for each article. |
| `monitorMode` | false | Return only articles not returned by earlier monitor runs. |
| `stateStoreName` | `google-news-feed-state` | Named key-value store that keeps monitor history. Use one name per monitor. |
| `proxyConfiguration` | no proxy | Optional. Not needed in normal use. |

Example:

```json
{
    "queries": ["artificial intelligence", "\"interest rates\" site:reuters.com", "topic:BUSINESS"],
    "language": "en",
    "country": "US",
    "when": "1d",
    "monitorMode": true
}
```

### Output

One dataset item per article:

```json
{
    "article_id": "CBMifEFVX3lxTE16aktERzEw...",
    "query": "artificial intelligence",
    "title": "A.I. Was Supposed to Come for Our Jobs. So Far, Evidence Is Mixed.",
    "publisher": "The New York Times",
    "publisher_url": "https://www.nytimes.com/2026/11/06/business/economy/ai-jobs-layoffs.html",
    "google_news_url": "https://news.google.com/rss/articles/CBMifEFVX3lxTE16aktERzEw...?oc=5",
    "decoded": true,
    "published_at": "2026-11-06T16:02:34Z",
    "snippet": "A.I. Was Supposed to Come for Our Jobs. So Far, Evidence Is Mixed. The New York Times",
    "language": "en",
    "country": "US",
    "fetched_at": "2026-11-08T00:15:02Z"
}
```

- `publisher_url` is the article on the publisher's site. If Google refuses a lookup, the article is still returned
  with `decoded: false` and `publisher_url: null`; `google_news_url` always works in a browser.
- `snippet` is the text Google puts in the feed. For searches it usually repeats the headline and publisher; for
  topic sections it lists related headlines from other publishers, separated by `|`.
- `published_at` and `fetched_at` are UTC, ISO 8601.
- Email addresses and phone numbers are removed from titles and snippets.

The default key-value store also gets `RUN_SUMMARY` (items, charged events, errors, duration) and `DECODE_STATS`
(how many URL lookups succeeded, failed or were refused).

### Monitor mode and history

With `monitorMode` on, the Actor remembers every article it has returned, keyed by the publisher URL (normalized:
no `www.`, tracking parameters or trailing slash), in the named key-value store `stateStoreName` in your account.
Each run returns only articles whose URL it has not returned before, across all your queries, so the same story
found by two queries is returned once. Schedule the Actor (for example hourly) to get a stream of new articles.
Articles that could not be delivered in a run (because of a spending limit) are returned by the next run. Articles
already returned are not looked up again, which keeps repeated runs fast. Delete the store to start over.

### Pricing

$1.50 per 1,000 articles ($0.0015 per article delivered), including the decoded publisher URL. You pay only for
articles written to the dataset. Free-plan runs are capped at 100 articles per run. The run stops when your maximum
charge per run is reached.

### Limitations

- Google News feeds hold about 100 articles each. For more coverage use several narrower queries, `site:` filters or
  short `when` windows on a schedule with monitor mode.
- Publisher URLs come from an undocumented Google News endpoint. It has worked reliably in our tests, but Google can
  change or rate-limit it; when that happens articles are returned with `decoded: false` rather than failing the run.
- No article body text. The Actor returns the headline, publisher, link and Google's snippet.
- `when` filters searches only; topic sections are Google's current selection.

### What is included

Searches and topic sections, any language and country edition, decoded publisher URLs at no extra charge, monitor
mode with deduplication across queries, and a run summary. Article full text, images and author names are not
included.

# Actor input Schema

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

One Google News search per entry. Google search operators work ("exact phrase", OR, -word, site:reuters.com, intitle:). Use topic:NAME for a topic feed: WORLD, NATION, BUSINESS, TECHNOLOGY, ENTERTAINMENT, SPORTS, SCIENCE or HEALTH.

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

Google News interface language code, for example en, de, fr, es or pt-BR.

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

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

## `when` (type: `string`):

Only articles published within this window: a number followed by h (hours), d (days) or y (years), for example 1h, 1d, 30d or 1y. Leave empty for no limit. Not applied to topic feeds.

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

Google News returns up to about 100 articles per feed. Use narrower queries or a time window to get different articles.

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

Resolve each Google News link to the publisher's article URL. If Google refuses a lookup, the article is still returned with decoded=false and publisher_url empty.

## `monitorMode` (type: `boolean`):

Return only articles not returned in earlier monitor runs, deduplicated by the publisher URL across all queries. History is kept in the named key-value store below.

## `stateStoreName` (type: `string`):

Named key-value store in your account that keeps monitor-mode history. Use a different name for each independent monitor.

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

Optional proxy for all requests. Not needed in normal use.

## Actor input object example

```json
{
  "queries": [
    "artificial intelligence",
    "topic:BUSINESS"
  ],
  "language": "en",
  "country": "US",
  "maxArticlesPerQuery": 100,
  "decodeUrls": true,
  "monitorMode": false,
  "stateStoreName": "google-news-feed-state",
  "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 = {
    "queries": [
        "artificial intelligence",
        "topic:BUSINESS"
    ],
    "proxyConfiguration": {
        "useApifyProxy": false
    }
};

// Run the Actor and wait for it to finish
const run = await client.actor("banyan/google-news-feed").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",
        "topic:BUSINESS",
    ],
    "proxyConfiguration": { "useApifyProxy": False },
}

# Run the Actor and wait for it to finish
run = client.actor("banyan/google-news-feed").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",
    "topic:BUSINESS"
  ],
  "proxyConfiguration": {
    "useApifyProxy": false
  }
}' |
apify call banyan/google-news-feed --silent --output-dataset

```

## MCP server setup

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

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/N41hWbkU6EKn8BfWe/builds/g9Pt7AGBiawb3molp/openapi.json
