# Google News Scraper: Real Article URLs & Date Range (`viktorov_aa/google-news`) Actor

Scrape Google News by keyword, topic or site in any language and country. Get headlines, publishers, dates and the real article URL. No browser, no login.

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

## Pricing

from $1.00 / 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 Scraper: headlines with the real article URL, by keyword, topic, site and date range

This **Google News scraper** works as a simple **Google News API**: search by keyword, topic, site, language and country, keep a date range, and get each article's **real publisher URL** decoded from the Google News link. Use it for news monitoring, brand mentions and dated headline feeds in CSV, JSON or Excel.

### What this Actor does

Google News Scraper reads the public Google News RSS feeds. Give it keywords, a site, a topic section, or any mix of those, and it stores one row per article: headline, publisher, publisher site, publish time in UTC, image when one is available, the Google News link, and the real article URL on the publisher's site.

Google's own search page stops around 100 results. A date range avoids that ceiling by running one search per day (`after:` / `before:`), then dropping duplicates. The same story found by two queries is stored once. Topic feeds cover Top stories, World, Nation, Business, Technology, Entertainment, Sports, Science and Health for the language and country you set (`hl`, `gl`, `ceid`).

Nothing is rendered in a browser and nothing asks for a Google login. Keyword operators that work on Google News work here, including quoted phrases, `OR`, `-exclude`, `site:` and `intitle:`. A `sites` list appends `site:` for you.

### Who it is for

- Newsrooms and PR teams watching a brand, an executive or a crisis term.
- Analysts and investors who need a dated headline feed for a market or a company.
- SEO and content teams collecting what Google News is surfacing in a country.
- Anyone building an alert or a dataset who wants headlines and links, not a full article body.

### Use cases

- A daily search for a product name in `en` / `US`, with `timeRange` set to the past day.
- A backfill of a month, one query per calendar day, past the 100-result cap.
- Topic headlines (Top stories, or Technology in Germany) without a keyword.
- A keyword limited to one publisher with `sites` or with `site:reuters.com` in the query.
- The same keyword across countries by running separate inputs with different `country` and `language`.
- The publisher URL for a crawler that needs the real page. Decoding is on by default and paced so a full page does not trip HTTP 429. If the decoder breaks, the row keeps the Google News link and `urlDecoded` is false.

### Input parameters

| Parameter | Type | Default | What it does |
| --- | --- | --- | --- |
| `queries` | array of strings | `["openai"]` | Keywords. Google News operators are passed through. Several queries run in one start |
| `topics` | array | empty | Section headlines: TOP_STORIES, WORLD, NATION, BUSINESS, TECHNOLOGY, ENTERTAINMENT, SPORTS, SCIENCE, HEALTH |
| `sites` | array of strings | empty | Domains added as `site:`. With no query, each domain is its own search |
| `language` | string | `en` | Edition language, sent as `hl` (`en`, `de`, `pt-BR`, `zh-Hans`, …) |
| `country` | string | `US` | Two-letter edition, sent as `gl` and `ceid` (`US`, `GB`, `DE`, …) |
| `timeRange` | string | empty (any time; form example `1d`) | `when:1h`, `when:1d`, `when:7d`, `when:30d` or `when:1y`. Ignored when a date range is set |
| `dateFrom` | string | empty | Inclusive start, `YYYY-MM-DD`. One search per day |
| `dateTo` | string | empty | Inclusive end. Empty uses `dateFrom` as a single day |
| `maxArticlesPerQuery` | integer | `100` (form example `20`) | Cap per query. With a date range, the cap is per day |
| `maxArticles` | integer | `100000` | Cap for the whole run |
| `resolveUrls` | boolean | `true` | Decode the publisher URL. Two paced requests per article. Off keeps the Google News link in `url` |
| `maxUrlResolves` | integer | `100` (form example `20`) | How many articles in the run are decoded. The rest keep the Google News link |
| `resolveConcurrency` | integer | `1` | Decode at once. Calls are still spaced, and HTTP 429 waits and retries |
| `extractImages` | boolean | `true` | Fill `image` from the RSS item, the Google News HTML page, or the publisher `og:image`. A miss leaves `image` null |
| `proxyConfiguration` | proxy object | proxy off | RSS usually needs no proxy |

The form example searches `openai` in the US English edition over the past day and stops at 20 articles.

```json
{
  "queries": ["openai"],
  "language": "en",
  "country": "US",
  "timeRange": "1d",
  "maxArticlesPerQuery": 20,
  "resolveUrls": true,
  "maxUrlResolves": 20
}
```

### Example output

Headline captured on 2026-11-18 from the live de-DE Bundestag feed (80 of 80 rows had a title, a source and a date). Google had appended ` - SZ.de` to a headline that already ended with it; one strip leaves the title below. The Google News `link` and `guid` are on every row and were shortened in the capture, so they are omitted here. `url` is the publisher URL when decoding works (`urlSource` is `publisher`). The path below is the shape of that field, not a URL stored from the feed. When decoding fails, is off, or the row is past the cap, `url` is the Google News link and `urlSource` is `google-news`.

```json
{
  "query": "Bundestag",
  "title": "Bundestag: Warum es zurzeit keine Untersuchungsausschüsse gibt - Politik - SZ.de",
  "source": "SZ.de",
  "sourceUrl": "https://www.sueddeutsche.de",
  "publishedAt": "2026-11-17T11:00:00Z",
  "publishedTimestamp": 1794913200000,
  "image": "https://www.sueddeutsche.de/example.jpg",
  "imageSource": "publisher",
  "url": "https://www.sueddeutsche.de/politik/example",
  "urlSource": "publisher",
  "urlDecoded": true,
  "decodeStatus": "decoded",
  "status": "ok"
}
```

`publishedTimestamp` is the same instant as `publishedAt`, in Unix milliseconds. `imageSource` is `rss`, `google-news` or `publisher`. When decoding fails, `url` is the Google News link, `urlDecoded` is false and `decodeStatus` is `failed`. Rows past the decode cap, or a run with `resolveUrls` off, use `decodeStatus` `skipped`.

The overview table shows query, position, title, source, date, the article URL, where that URL came from, and the Google News link. Some live headlines already end with the publisher (` | Newswise`, ` - SZ.de`); the parser strips Google's extra ` - Publisher` once and leaves the rest.

### Limitations

- Headlines, sources, dates, links and an image URL. The article body and authors are not fetched. `image` stays null when the RSS item, the Google News HTML page and the publisher page have no usable picture. The Google News logo is not stored as the article image.
- Google returns about 100 items per RSS search. A long date range multiplies that by the number of days, and also multiplies requests.
- `publishedAt` is null when the RSS date cannot be parsed. The row is still stored.
- Decoded publisher URLs depend on the same internal call the Google News site uses. If that call fails, the signature page changed, or the row is past `maxUrlResolves`, `url` is the Google News link, `urlSource` is `google-news` and `urlDecoded` is false. The run continues. `link` is always that Google News URL. `decodeStatus` is `failed` when this row was sent to the decoder, and `skipped` when it was not.
- Some publishers paywall or block the article page. This Actor does not bypass that, because it does not open the article.
- Results follow the edition you set. A US English query will not match a German edition.
- Respect Google's terms and the copyright in the headlines you store.

### Proxy

The RSS feeds normally answer from a datacenter IP, so proxy is off by default and a test run stays cheap. If a feed starts returning non-200 responses, turn on Apify Proxy (datacenter is enough for RSS). URL decoding does two extra HTTP calls per article. Those calls are spaced (`resolveConcurrency` defaults to 1) and HTTP 429 waits, using Retry-After when Google sends it, then 2s, 4s and 8s, capped at 30s. Transport errors retry with the same client rotation. `maxUrlResolves` stops the decode after that many articles. Set `resolveUrls` to false when the Google News link is enough.

`extractImages` does not use that long retry. The HTML image page is requested once per feed and, on HTTP 429, later HTML image pages are skipped so the block does not stall the RSS reads. The publisher `og:image` request uses a 12 second timeout and one retry, and only for a row whose publisher URL was decoded and that still has no image. A failure leaves `image` null.

### FAQ

#### Does it return the real article URL instead of the news.google.com link?

Yes. With `resolveUrls` on, the Actor decodes the Google News link and stores the publisher URL in `url`. The original Google link stays in `link`, and `urlDecoded` tells you whether decoding worked for that row.

#### Can I use it for news monitoring?

Yes. Set your keywords and `timeRange` (for example `1d`), then schedule the Actor in Apify Console. Each run stores the new headlines for that window, and the same story found by two queries is stored once.

#### Can I try it on a small run first?

Yes. The prefilled input searches one keyword for the last day and stops at 20 articles. Pricing is per stored article, shown on the Pricing tab.

#### Do I need to log in?

No. Google News RSS is public. Proxy is off unless you turn it on.

#### What are the limits?

About 100 items per RSS search. With `dateFrom` and `dateTo`, that cap is per day (`maxArticlesPerQuery`), and `maxArticles` caps the run. Topic feeds are shorter than search feeds: the ru-RU SCIENCE feed on the live check had 33 items and there is no second page. The form example is `openai`, en-US, past day, 20 articles. URL decoding is on, paced, and capped by `maxUrlResolves` (the form example is 20).

#### What did the live check miss?

On 2026-11-19, 15 of 15 feeds returned, 1,280 of 1,280 titles, sources and dates, and 75 of 75 sampled publisher URLs decoded, with no proxy. A later pass the same day decoded 60 of 60 article URLs (3 queries, 20 each) with the paced default and no HTTP 429. Firing decodes back to back, before that pacing, produced an HTTP 429 "Sorry..." page. When decoding fails, is off, or the row is past `maxUrlResolves`, `url` is the Google News link, `urlSource` is `google-news` and `urlDecoded` is false. A headline that already ends with the publisher keeps that ending after one strip.

A further pass the same day, from this datacenter IP, ran 5 queries in 3 editions (US, DE, ES): `openai` and `openai site:bbc.com` and Top stories in en-US, `Klimawandel` in de-DE, `inteligencia artificial` in es-ES, all with `when:7d` except Top stories. 5 of 5 feeds returned, 363 of 363 titles, sources and ISO dates, and 15 of 15 sampled publisher URLs decoded. RSS items had no article image. The HTML image page returned HTTP 429 once, and later HTML image pages were skipped. Publisher `og:image` filled 11 of those 15 decoded rows. The other 4 stayed null and the rows were kept. A single US day (`after:2026-11-18 before:2026-11-19`) returned 100 items from `2026-11-18T08:59:21Z` through `2026-11-19T07:01:03Z`.

#### How do I get more than 100 articles for one keyword?

Set `dateFrom` and `dateTo`. The Actor issues one search per day and deduplicates by guid or link. `maxArticlesPerQuery` then applies to each day, and `maxArticles` caps the run.

#### What is the difference between `link` and `url`?

`link` is always the Google News URL. `url` is the publisher URL when decoding succeeds (`urlSource` is `publisher`). Otherwise `url` is the Google News link (`urlSource` is `google-news`), so `url` is not empty when `link` is present. Decoding is on by default, paced, and capped by `maxUrlResolves`.

#### Can I read a whole topic, not a keyword?

Yes. Set `topics` to one or more of TOP_STORIES, WORLD, NATION, BUSINESS, TECHNOLOGY, ENTERTAINMENT, SPORTS, SCIENCE, HEALTH, and leave `queries` empty if you want only the section. Top stories is the edition front page (`https://news.google.com/rss`). Topic feeds ignore `timeRange` and the date fields, because Google does not filter those feeds by date.

#### How do I search one site?

Put the operator in the query (`openai site:reuters.com`) or set `sites` to `["reuters.com"]`. A scheme and a leading `www.` are stripped. Several sites with several queries run as one search per pair. The same article is kept once.

#### What if the URL decoder breaks?

The row is still stored. `url` is the Google News link, `urlDecoded` is false and `decodeStatus` is `failed`. A bad signature page, an HTTP error, a "Sorry..." body or a response that is no longer the expected batchexecute payload all take that path. Nothing is charged for `url-resolved` unless a publisher URL came back.

#### Why is the publisher name missing from the title but present in `source`?

Google often appends ` - Publisher` to the RSS title. The parser strips that suffix when it matches the source tag, and keeps the publisher in `source` and `sourceUrl`.

#### Where does the image come from?

From the RSS item when Google includes one (`imageSource` `rss`), otherwise from the HTML page of that feed (`google-news`), otherwise from the publisher page `og:image` after a successful decode (`publisher`). Search RSS usually has no picture, so most images are the publisher `og:image` and only on rows that were decoded. Set `extractImages` to false to skip the extra requests. `image` null does not drop the row.

#### How is the Actor priced?

The Actor uses pay-per-event pricing with the event **`article`**: one charge for each stored article, plus a second event, **`url-resolved`**, only when a publisher URL is actually decoded. A failed decode is not charged, and image fetches are not a separate event. The price and the Apify platform fee are shown on the Pricing tab. Use the input limits and your Apify spending limit to keep a run within budget.

# Actor input Schema

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

Keywords as on news.google.com. Operators work: "exact phrase", OR, -exclude, site:reuters.com, intitle:. The form example is openai in the US English edition, which returned a full RSS page with no login and no proxy. Several queries run in one start and duplicates are dropped.

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

Section headlines, including Top stories. Empty means no topic feed. Date filters are not applied to topic feeds, because Google does not.

## `sites` (type: `array`):

Optional publisher domains. Each query is also run as query site:domain (www and the scheme are stripped). With no query, each domain is its own search. site: typed inside a query is left as-is.

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

Edition language, for example en, de, fr, es, ru, pt-BR or zh-Hans.

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

Two-letter Google News edition, for example US, GB, DE or IN.

## `timeRange` (type: `string`):

Relative window added as when:1h, when:1d, when:7d, when:30d or when:1y. Ignored when a date range is set. Empty means any time. The form example is the past day, which returned 100 articles for openai.

## `dateFrom` (type: `string`):

Optional inclusive start date. The Actor runs one search per day (after:D before:D+1) so a range can return more than 100 articles per query. Empty means no date range.

## `dateTo` (type: `string`):

Optional inclusive end date. Empty uses dateFrom as a single day when dateFrom is set.

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

Google returns at most about 100 articles per search. With a date range that cap applies to each day, not to the whole range. The form example is 20. An API call that omits the field uses 100.

## `maxArticles` (type: `integer`):

Hard cap for the whole run, across queries, days and topics.

## `resolveUrls` (type: `boolean`):

On by default. Turns news.google.com/rss/articles/… links into publisher URLs (two requests per article, paced). When decoding is off, fails, or passes the cap, url is the Google News link.

## `maxUrlResolves` (type: `integer`):

How many articles in the run are decoded. Further rows keep the Google News link in url. The prefill is 20, matching the example cap; API calls that omit the field decode up to 100.

## `resolveConcurrency` (type: `integer`):

How many article URLs to decode at once. Keep this at 1. Calls are still spaced, and HTTP 429 waits and retries. Used only while decode is on.

## `extractImages` (type: `boolean`):

On by default. Uses an image from the RSS item when Google sends one, then the Google News HTML page (one request per feed, no retry), then og:image on the decoded publisher page. A miss leaves image empty. The row is still stored. HTTP 429 on the HTML page skips later HTML image pages.

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

Google News RSS usually answers without a proxy. Enable Apify Proxy if a run is blocked.

## Actor input object example

```json
{
  "queries": [
    "openai"
  ],
  "topics": [],
  "sites": [
    "reuters.com"
  ],
  "language": "en",
  "country": "US",
  "timeRange": "1d",
  "dateFrom": "",
  "dateTo": "",
  "maxArticlesPerQuery": 20,
  "maxArticles": 100000,
  "resolveUrls": true,
  "maxUrlResolves": 20,
  "resolveConcurrency": 1,
  "extractImages": true,
  "proxyConfiguration": {
    "useApifyProxy": false
  }
}
```

# Actor output Schema

## `overview` (type: `string`):

Default dataset in the overview table: query, headline, publisher, date and links.

# 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"
    ],
    "topics": [],
    "sites": [],
    "language": "en",
    "country": "US",
    "timeRange": "1d",
    "dateFrom": "",
    "dateTo": "",
    "maxArticlesPerQuery": 20,
    "maxArticles": 100000,
    "resolveUrls": true,
    "maxUrlResolves": 20,
    "resolveConcurrency": 1,
    "extractImages": true,
    "proxyConfiguration": {
        "useApifyProxy": false
    }
};

// Run the Actor and wait for it to finish
const run = await client.actor("viktorov_aa/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": ["openai"],
    "topics": [],
    "sites": [],
    "language": "en",
    "country": "US",
    "timeRange": "1d",
    "dateFrom": "",
    "dateTo": "",
    "maxArticlesPerQuery": 20,
    "maxArticles": 100000,
    "resolveUrls": True,
    "maxUrlResolves": 20,
    "resolveConcurrency": 1,
    "extractImages": True,
    "proxyConfiguration": { "useApifyProxy": False },
}

# Run the Actor and wait for it to finish
run = client.actor("viktorov_aa/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": [
    "openai"
  ],
  "topics": [],
  "sites": [],
  "language": "en",
  "country": "US",
  "timeRange": "1d",
  "dateFrom": "",
  "dateTo": "",
  "maxArticlesPerQuery": 20,
  "maxArticles": 100000,
  "resolveUrls": true,
  "maxUrlResolves": 20,
  "resolveConcurrency": 1,
  "extractImages": true,
  "proxyConfiguration": {
    "useApifyProxy": false
  }
}' |
apify call viktorov_aa/google-news --silent --output-dataset

```

## MCP server setup

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