# Google News Scraper: Keyword Search, $1.50/1k Articles (`leadharbor/google-news-search`) Actor

Search Google News by keyword, site, time window, language and country. Returns title, outlet, date, Google link and, if you ask, the outlet's own URL. $1.50 per 1,000 articles. Plain HTTP, no login.

- **URL**: https://apify.com/leadharbor/google-news-search.md
- **Developed by:** [Mohammed Samaan](https://apify.com/leadharbor) (community)
- **Categories:** News, Marketing, Automation
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 83.3% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $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 Search: articles by keyword, with publisher URLs

### What is it?

This actor searches Google News for the keywords you give it and returns one row per article: headline, outlet name and website, publish date, the Google News link and, if you switch it on, the outlet's own article URL. It reads Google News search results published as RSS over plain HTTP. There is no browser, no proxy and no login.

Typical uses:

- Brand or competitor monitoring: run a few queries every morning with "last day" and read only what is new.
- A news digest or newsletter: collect the day's stories on a topic, sorted newest first.
- Research and PR tracking: list which outlets covered a topic, using `site:` to check one outlet at a time.
- Feeding an AI agent or a database with article links and headlines in the languages Google News offers, tested here with English, Arabic and German.

### Input

| Field | What it does |
|---|---|
| `queries` | One search per line, 1 to 50 per run. Google News operators work inside a query (quotes, `OR`, `-word`). |
| `site` | Only this domain, for example `reuters.com`. Added to every query as `site:`. |
| `when` | Only articles from the last hour, day, 7 days, month or year (`1h`, `1d`, `7d`, `1m`, `1y`). |
| `language`, `country` | Picks the Google News edition. Language codes like `en`, `ar`, `de`, `es-419` and `zh-Hant` are accepted (the full code goes into Google's edition id, `TW:zh-Hant`); country is two letters. Defaults: `en` and `US`. Google redirects some pairs (checked 17 Nov 2026: `zh-Hant` is served as `zh-TW`, `ar` with `OM` as `EG:ar`); the row's `edition` shows what answered. Only English, Arabic and German were run at scale. |
| `maxArticlesPerQuery` | 1 to 100, default 100. |
| `sortBy` | `relevance` (Google's order), `newest` or `oldest`. Applied before the limit, so "newest, 10" gives the ten most recent of what Google returned. |
| `dedupe` | On by default. Drops an article already seen in this run (same Google article, or same headline from the same outlet). Duplicates are not charged. |
| `resolvePublisherUrl` | Off by default. Adds the outlet's own URL to each row. |

Example input:

```json
{
  "queries": ["openai", "oman economy"],
  "when": "1d",
  "language": "en",
  "country": "US",
  "sortBy": "newest",
  "maxArticlesPerQuery": 50,
  "resolvePublisherUrl": true
}
```

### Output

One row per article. Every row has the same keys.

| Field | Meaning |
|---|---|
| `query`, `position` | The query that found it and its place (1 is first) after sorting and limiting. |
| `title`, `titleRaw` | Headline with the trailing " - Outlet" removed, and Google's original text. |
| `sourceName`, `sourceUrl` | Outlet name and the outlet's home page as Google lists it. |
| `publishedAt` | Publish time in UTC (ISO 8601), or `null` if Google gave none. |
| `snippet` | Text from Google's description when it holds more than the headline and outlet. Google's RSS carries no article body, so this is usually `null`. |
| `relatedStories` | Other outlets' headlines that Google groups under the same story: title, outlet, Google link. Empty when there are none. |
| `googleNewsUrl`, `googleArticleId` | The news.google.com link and its id. |
| `publisherUrl`, `publisherUrlStatus` | The outlet's article URL and `not_requested`, `resolved`, `failed` or `not_charged`. `null` unless resolved; it is never guessed. |
| `edition` | The Google News edition that answered, for example `US:en`. |
| `status`, `error`, `errorKind` | `ok`, or `error` with a message for a query that failed (no article rows, not charged). |

A run summary (counts, resolver results, edition warnings, charged events) is saved under the `SUMMARY` key of the run's key-value store.

### FAQ

**How many articles can I get for one search?**
Google's RSS feed returns up to about 100 items per query. On 17 Nov 2026, 20 test queries (10 English, 6 Arabic, 4 German) returned 1,748 articles in total after duplicates were dropped, about 87 per query. This actor does not go past that: it does not step through day by day or read topic pages.

**Does it give me the real article URL, not a news.google.com link?**
Yes, when `resolvePublisherUrl` is on. In a test on Apify's servers 50 of 50 articles resolved to a real outlet address. The method uses an undocumented Google endpoint, so it can stop working if Google changes it. When it fails, the row says `failed` and you are not charged for the URL.

**Can I search in Arabic?**
Yes. Set `language` to `ar` and a country such as `AE`, `SA` or `EG`. Queries in Arabic script work (594 articles from 6 Arabic queries in one test run). Not every language and country pair has its own edition: `ar` with `OM` (Oman) is redirected by Google to the Egyptian edition, and the `edition` field on each row tells you which one answered.

**Can I search only one news site, or only the last day?**
Yes: `site` and `when`. They are added to the query as Google's `site:` and `when:` operators.

**Does it show the article text or an image?**
No. Only what Google's feed holds: headline, outlet, date, links and related headlines.

**What happens when Google blocks or limits the run?**
Each request has a timeout and a few retries with waiting. If Google keeps refusing, that query comes back as one error row with the reason, you are not charged for it, and after repeated failures the actor stops asking Google for the rest of the run.

**What does it cost?**
Pay per event: one event per article delivered, plus one per publisher URL found if you ask for it. There is no start fee in the actor's design. Failed queries and failed URL lookups are free. The price per event is set on the Store page.

**What does it call, and may I use it?**

- Search: the actor reads `news.google.com/rss/search`, which Google publishes as an RSS feed.
- Publisher URLs (off by default): this option also fetches `news.google.com/rss/articles/*` pages and POSTs to Google's undocumented internal endpoint `/_/DotsSplashUi/data/batchexecute`. It may stop working without notice.
- robots.txt: on 17 Nov 2026 the robots file of the Google News host read `User-agent: *` followed by `Disallow: /`, with `Allow` lines only for paths such as `/topics/`, `/publications/` and `/stories/`. It does not allow `/rss`, `/rss/articles` or `/_/`.
- The feed carries Google's notice that it is offered for personal, non-commercial feed readers. You are responsible for how you use the data. Check Google's terms and the publishers' terms yourself; this README is not legal advice.

**What if the platform restarts my run?**
After each finished query the actor saves progress, so a restart skips queries already done and does not fetch or charge them again. The query that was running at the moment of the restart starts over, so its rows can be delivered, and charged, twice.

### Limits

- About 100 articles per query at most.
- No article text, images or topic pages.
- Google News is not a complete list of every news story; results follow Google's ranking.
- Resolving URLs takes roughly one second per article.

# Actor input Schema

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

One search per line, up to 50 per run. Google News search operators work inside a query, for example "tesla OR rivian" or ""interest rates" -forecast".

## `site` (type: `string`):

A domain such as reuters.com. Added to every query as site:domain.

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

Limit results to the last hour, day, 7 days, month or year. Added to every query as when:.

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

Google News interface language, for example en, ar, de, fr, es-419, zh-Hant. Together with Country it picks the Google News edition.

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

Two-letter country code, for example US, GB, AE, DE. Not every language and country pair has an edition; when Google has none it serves a nearby one and the row's edition field says which.

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

Google's RSS feed returns about 100 articles at most per query, so 100 is the ceiling.

## `sortBy` (type: `string`):

Relevance keeps Google's own order. Newest and oldest sort by publish date before the per-query limit is applied; rows without a date go last.

## `dedupe` (type: `boolean`):

Skip an article that already appeared in this run, either the same Google article or the same headline from the same outlet. Duplicates are not charged.

## `resolvePublisherUrl` (type: `boolean`):

Also decode the Google link to the outlet's own article URL. Billed as a separate event, and only for rows where a URL was found. Off by default.

## Actor input object example

```json
{
  "queries": [
    "openai",
    "oman economy"
  ],
  "language": "en",
  "country": "US",
  "maxArticlesPerQuery": 100,
  "sortBy": "relevance",
  "dedupe": true,
  "resolvePublisherUrl": false
}
```

# Actor output Schema

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

Table of the articles found.

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

Counts of queries, articles, duplicates, resolver results and charged events.

# 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": [
        "openai",
        "oman economy"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("leadharbor/google-news-search").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": [
        "openai",
        "oman economy",
    ] }

# Run the Actor and wait for it to finish
run = client.actor("leadharbor/google-news-search").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": [
    "openai",
    "oman economy"
  ]
}' |
apify call leadharbor/google-news-search --silent --output-dataset

```

## MCP server setup

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

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/EavS2KpJfoPZ5qGbM/builds/MqvtRslFtaMjuY17y/openapi.json
