# Google News Scraper with Real Article URLs & Full Text (`uber_byte/google-news-scraper`) Actor

Google News scraper: search by keyword, topic or top stories. Get real publisher article URLs (decoded Google links), source, date and full article text.

- **URL**: https://apify.com/uber\_byte/google-news-scraper.md
- **Developed by:** [Marlon Lee](https://apify.com/uber_byte) (community)
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $2.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 Scraper

Export Google News articles by keyword, topic or top stories, with the real publisher URL instead of the `news.google.com/rss/articles/...` redirect, plus title, source, publish date and related coverage. Turn on text extraction to also get the article body, author and main image. PR teams, traders, researchers and AI builders use it for media monitoring and news datasets in any Google News language or country edition.

### What you get

Each article is one row with:

- The feed it came from (your query, a topic or top stories)
- Title, source name and source website, and publish date
- The Google News link and article ID
- The decoded publisher URL (on by default)
- Related articles from other outlets covering the same story, for topic and top-story feeds
- Optional full text: the article headline, body text, author and main image, read from the publisher page

The Actor removes duplicate articles across all your queries and topics in a run.

### Use cases

- **Media monitoring and PR:** track mentions of your brand, competitors or executives.
- **Market signals:** watch tickers and companies with `when:1h` queries on a schedule.
- **AI, LLM and RAG pipelines:** feed clean article text with canonical URLs into summarizers or embeddings.
- **Research and journalism:** build news datasets by topic, country and date range.
- **SEO and content teams:** see which publishers rank in Google News for your keywords.

### How to use the Google News scraper

1. Open the Actor in Apify Console.
2. Enter search queries (Google News operators work), pick topic sections, turn on top stories, or combine them.
3. Set the language and country edition, for example `de` and `DE`, or `pt-BR` and `BR`.
4. Keep **Resolve real article URLs** on, and turn on **Extract full article text** if you need the body. Set **Max articles per query/topic**.
5. Click **Start**, then download the results as JSON, CSV, Excel or HTML, or read them through the Apify API.

### Input example

```json
{
  "queries": ["openai when:7d", "\"interest rates\" site:reuters.com"],
  "topics": ["TECHNOLOGY", "BUSINESS"],
  "topStories": true,
  "language": "en-US",
  "country": "US",
  "maxItems": 100,
  "decodeUrls": true,
  "extractArticleText": false
}
```

Search operators: `"exact phrase"`, `OR`, `-exclude`, `site:reuters.com`, `intitle:`, `when:1h`, `when:1d`, `when:7d`, `after:2026-01-01`, `before:2026-02-01`. Topics: `WORLD`, `NATION`, `BUSINESS`, `TECHNOLOGY`, `ENTERTAINMENT`, `SPORTS`, `SCIENCE`, `HEALTH`. For editions where the ID isn't `COUNTRY:language`, set `ceid`, for example `BR:pt-419`.

### Output example

A real item from a test run with `extractArticleText: true`. The article text is shortened.

```json
{
  "feed": "query:openai when:7d",
  "title": "OpenAI Targets $30 Billion in New Funding at $1.4 Trillion Value",
  "source": "Bloomberg",
  "sourceUrl": "https://www.bloomberg.com",
  "publishedAt": "2026-09-29T17:35:13.000Z",
  "googleNewsUrl": "https://news.google.com/rss/articles/CBMiswFBVV95cUxObmVY...?oc=5",
  "articleId": "CBMiswFBVV95cUxObmVY...",
  "description": "OpenAI Targets $30 Billion in New Funding at $1.4 Trillion Value Bloomberg",
  "relatedArticles": [],
  "decodedUrl": "https://www.bloomberg.com/news/articles/2026-09-29/openai-targets-30-billion-in-new-funding-at-1-4-trillion-value",
  "articleTitle": "OpenAI Targets $30 Billion in New Funding at $1.4 Trillion Value",
  "articleText": "OpenAI aims to raise at least $30 billion from investors in a new round of funding, according to people familiar with the matter...",
  "author": "Rebecca Torrence, Edward Ludlow, Shirin Ghaffary",
  "image": "https://assets.bwbx.io/images/users/iqjWHBFdfxIU/iBQYMNSiiUWc/v1/1200x800.jpg"
}
```

Items from topic and top-story feeds fill `relatedArticles` with `{ title, source, googleNewsUrl }` for other outlets covering the same story.

### Pricing

You pay per article saved, with no monthly rental. Each article counts as one of two results:

- `article`: an article with its metadata and the decoded publisher URL
- `article-with-text`: an article whose full text was extracted

If text extraction fails for an article (a paywall or a bot wall), it's charged as an `article`, not an `article-with-text`. Set a maximum spend per run and the Actor stops once it reaches that limit.

### FAQ

**Is it legal to scrape Google News?**
The Actor collects headlines and links that Google News publishes in its public feeds, plus publicly accessible publisher pages. Publishers own the copyright in their articles, so check your rights before you republish full text or use it for AI training. You're responsible for how you use the data.

**How does URL decoding work?**
Google News wraps each link in an encoded `news.google.com/rss/articles/CBMi...` redirect. For each article, the Actor reads the Google News article page to get a signature, then asks Google's own `batchexecute` endpoint for the real URL, the same approach the open-source `googlenewsdecoder` library uses. If decoding still fails after retries, you get the article with `decodedUrl: null`.

**Will Google block it? Which proxy should I use?**
The default is Apify residential proxy in the US, the most reliable choice for Google. If you turn off URL decoding, the Actor only reads Google News feeds, and a cheaper datacenter proxy is usually enough.

**How many articles can I get per query?**
Google News feeds return up to about 100 articles per query or topic. To get more, split your search with date operators, for example `after:2026-09-01 before:2026-09-08`, or use narrower queries.

**Why is `description` so short?**
Google News feeds include only the headline and the source, plus related headlines for topic stories. Turn on text extraction to get the article content.

**Why is `articleText` sometimes null?**
Some publishers (WSJ, FT and other paywalled or bot-protected sites) don't serve the article to scrapers. You still get the item with its decoded URL.

**What are the limits?**

- Up to about 100 articles per query or topic feed, a Google limit.
- Text extraction uses a lightweight readability-style heuristic, not a browser. JavaScript-only or paywalled pages return no text.
- Text extraction needs URL decoding on.
- Google may change its link encoding. If decoding breaks, items still arrive with `decodedUrl: null` until the Actor is updated.

# Actor input Schema

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

Google News searches. Operators work: "exact phrase", OR, -exclude, site:reuters.com, intitle:, when:7d (also when:1h, when:1d), after:2026-01-01, before:2026-02-01.

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

Google News topic sections: WORLD, NATION, BUSINESS, TECHNOLOGY, ENTERTAINMENT, SPORTS, SCIENCE, HEALTH.

## `topStories` (type: `boolean`):

Also scrape the Google News top stories (home page) feed.

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

Google News interface language, e.g. en-US, en-GB, de, fr, es-419, pt-BR, ja.

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

Two-letter edition country, e.g. US, GB, DE, FR, IN, BR, JP.

## `ceid` (type: `string`):

Leave empty to use COUNTRY:language (e.g. US:en). Set it only for editions that differ, e.g. BR:pt-419 or MX:es-419.

## `maxItems` (type: `integer`):

Google News feeds return up to about 100 articles each. Use more specific queries or date ranges to get more.

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

Turn news.google.com redirect links into the publisher's real article URL.

## `extractArticleText` (type: `boolean`):

Also download each publisher page and extract the article text, author and main image. Requires 'Resolve real article URLs'. Paywalled or bot-protected sites may return no text.

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

Proxy settings. Apify Proxy is recommended for larger runs.

## Actor input object example

```json
{
  "queries": [
    "openai when:7d"
  ],
  "topStories": false,
  "language": "en-US",
  "country": "US",
  "maxItems": 100,
  "decodeUrls": true,
  "extractArticleText": false,
  "proxyConfiguration": {
    "useApifyProxy": true,
    "apifyProxyGroups": [
      "RESIDENTIAL"
    ],
    "apifyProxyCountry": "US"
  }
}
```

# 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": [
        "openai when:7d"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("uber_byte/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": ["openai when:7d"] }

# Run the Actor and wait for it to finish
run = client.actor("uber_byte/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": [
    "openai when:7d"
  ]
}' |
apify call uber_byte/google-news-scraper --silent --output-dataset

```

## MCP server setup

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