# Google News Scraper - Articles & Publisher URLs (`sumitr_mardy/google-news-scraper`) Actor

Scrape Google News by keyword, topic or country with resolved publisher URLs included. Get headlines, dates, sources and related headlines in JSON or CSV. Date-window search, no login or proxy. Failed and undecoded rows are free.

- **URL**: https://apify.com/sumitr_mardy/google-news-scraper.md
- **Developed by:** [Sumitr Mardy](https://apify.com/sumitr_mardy) (community)
- **Stats:** 2 total users, 1 monthly users, 0.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.
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

Search Google News by keyword, topic, language and country. Get structured headlines, publisher details, publication dates and **resolved publisher article URLs included in the base price**. Export JSON, CSV or Excel without a Google account or proxy.

### Input

```json
{
    "queries": ["artificial intelligence"],
    "topics": [],
    "topStories": false,
    "language": "en",
    "country": "US",
    "maxArticlesPerQuery": 10,
    "dateFrom": "",
    "dateTo": "",
    "decodeUrls": true
}
```

Provide search queries, topics, or enable topStories. Up to 50 unique inputs per run; identical queries and topics are deduplicated. Topics: WORLD, NATION, BUSINESS, TECHNOLOGY, ENTERTAINMENT, SPORTS, SCIENCE and HEALTH. Google search operators work inside queries, including quotes, OR, site:reuters.com and when:7d. Invalid inputs produce free failed rows.

maxArticlesPerQuery defaults to 100 and supports up to 5,000 article rows per input. Search requests above 100, or with dateFrom/dateTo, split into daily windows, newest first, and deduplicate article IDs within each input. Dates are inclusive UTC dates, YYYY-MM-DD. If no start date is given for daily searches, the most recent 365 days ending at dateTo or today are searched. Explicit date ranges can be broader, subject to the work/time guard. Topic and top-stories feeds use one current RSS window; dates only filter that window. Queries matching the same article may produce one row per query.

### Output

One flat row per article. Every key is always present; missing strings are empty, numbers are 0, arrays are empty.

| Field | Meaning |
|---|---|
| inputIndex, input, inputType | Input position, original normalized input and search/topic/top_stories type |
| status, subStatus, error | Result classification and any error |
| position | Article position in that input, starting at 1; 0 for status rows |
| title | Headline with the trailing publisher suffix removed |
| publisher, publisherUrl | Publisher name and homepage from the RSS source |
| articleUrl | Resolved publisher URL, empty when not decoded |
| googleNewsUrl, articleId | Original Google News RSS article link and ID |
| publishedAt | Publication date in ISO 8601, or empty if missing |
| language, country | Requested Google News edition |
| relatedHeadlines | Headline strings from the RSS description |
| scrapedAt | Extraction timestamp |

| status | subStatus | Article charge |
|---|---|---|
| ok | article | Yes |
| partial | url_not_decoded | No |
| no_results | no_results | No |
| failed | invalid_input, http_CODE, blocked, network_error | No |
| failed | free_work_limit (internal cost/time guard) | No |
| failed | cost_limit_reached (your spending cap) | No |

URL resolution is enabled by default. Missing results are retried once individually. If a URL still cannot be resolved, the article remains a free partial row. If you explicitly set decodeUrls=false, URL resolution is skipped, articleUrl stays empty and articles are charged at the same price. A later request failure preserves earlier saved articles and adds a free status row.

### Pricing

| Plan | Price per 1,000 article rows |
|---|---:|
| FREE | $2.00 |
| BRONZE | $1.50 |
| SILVER | $1.20 |
| GOLD and above | $1.00 |

Resolved publisher URLs are included. Actor start is $0.00005 per GB of run memory, minimum one event. Free partial/empty/failed rows have no article charge; the start event still applies. Your maximum charge limit is respected.

### Measured performance and limits

On 2026-10-28, three search feeds returned HTTP 200 and 300/300 publisher URLs resolved from Apify datacenter IPs at 256 MB, without cookies or proxy. This is a measured sample, not a guarantee. RSS often caps search results at 100 per window; topic/top-story counts vary. Daily splitting cannot guarantee complete coverage if more than 100 matches fall in one day. Google chooses indexing and ranking; this Actor does not supply historical completeness or article bodies.

The publisher URL decoder relies on an undocumented Google endpoint that may change. A resolved URL can still lead to a paywall, moved page or a publisher restriction; publisher pages are not fetched. Language/country control the feed edition and do not translate headlines. Free work is bounded by a loss guard, so large empty or blocked searches may stop early with free_work_limit.

### Python

```python
import os
from apify_client import ApifyClient

client = ApifyClient(os.environ["APIFY_TOKEN"])
run = client.actor("sumitr_mardy/google-news-scraper").call(run_input={
    "queries": ["artificial intelligence"],
    "maxArticlesPerQuery": 10,
})
for article in client.dataset(run["defaultDatasetId"]).iterate_items():
    print(article["status"], article["title"], article["articleUrl"])
```

### cURL

```bash
curl -X POST 'https://api.apify.com/v2/acts/sumitr_mardy~google-news-scraper/run-sync-get-dataset-items' \
  -H "Authorization: Bearer $APIFY_TOKEN" \
  -H 'Content-Type: application/json' \
  -d '{"queries":["artificial intelligence"],"maxArticlesPerQuery":10}'
```

### Use it from AI agents (MCP)

Connect your client to the hosted [Apify MCP server](https://mcp.apify.com/?tools=sumitr_mardy/google-news-scraper) and sign in using Apify OAuth.

```json
{"mcpServers":{"google-news":{"url":"https://mcp.apify.com/?tools=sumitr_mardy/google-news-scraper"}}}
```

For clients using an API token:

```json
{"mcpServers":{"google-news":{"url":"https://mcp.apify.com/?tools=sumitr_mardy/google-news-scraper","headers":{"Authorization":"Bearer YOUR_APIFY_TOKEN"}}}}
```

For local stdio clients:

```json
{"mcpServers":{"google-news":{"command":"npx","args":["-y","@apify/actors-mcp-server@latest","--tools","sumitr_mardy/google-news-scraper"],"env":{"APIFY_TOKEN":"YOUR_APIFY_TOKEN"}}}}
```

Start with 5–10 articles, inspect status/subStatus, and only use articleUrl when it is present. Use quoted brand queries for mention research; topic feeds are current headlines rather than historical search. Credentials belong in client settings, never in a repository.

This Actor is independent and is not affiliated with or endorsed by Google.

# Actor input Schema

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

Google News searches. Operators such as quotes, OR, site:, when:, after: and before: are supported. Duplicate queries are removed. Provide queries, topics, or enable top stories.

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

Optional topic codes: WORLD, NATION, BUSINESS, TECHNOLOGY, ENTERTAINMENT, SPORTS, SCIENCE, HEALTH. Unknown codes produce a free invalid_input row.

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

Include the Google News top-stories RSS feed for the chosen country and language.

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

Language code such as en or vi; regional codes such as en-US are accepted. Country is configured separately.

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

Two-letter country code, such as US or VN. Controls the Google News edition.

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

Maximum article rows per query, topic or top-stories input. Above 100 search results, day windows are queried newest first. RSS limits still apply per day; topic/top feeds remain a single window.

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

Optional inclusive UTC start date, YYYY-MM-DD. Search inputs split into daily windows. Topic/top feeds are filtered without historical pagination.

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

Optional inclusive UTC end date, YYYY-MM-DD. Defaults to today. When daily pagination needs a start date and none is supplied, the most recent 365 days are searched.

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

Resolve Google News redirect links into publisher URLs, included in the article price. Failed decodes yield free partial rows. If you explicitly disable this, URL resolution is skipped and article rows are still charged.

## Actor input object example

```json
{
  "queries": [
    "artificial intelligence"
  ],
  "topStories": false,
  "language": "en",
  "country": "US",
  "maxArticlesPerQuery": 10,
  "dateFrom": "",
  "dateTo": "",
  "decodeUrls": true
}
```

# 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"
    ],
    "maxArticlesPerQuery": 10
};

// Run the Actor and wait for it to finish
const run = await client.actor("sumitr_mardy/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": ["artificial intelligence"],
    "maxArticlesPerQuery": 10,
}

# Run the Actor and wait for it to finish
run = client.actor("sumitr_mardy/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": [
    "artificial intelligence"
  ],
  "maxArticlesPerQuery": 10
}' |
apify call sumitr_mardy/google-news-scraper --silent --output-dataset

```

## MCP server setup

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