# Google News Scraper API - Real URLs, Full Text & Sentiment (`vonsensey/google-news-scraper-api`) Actor

Scrape Google News as clean JSON with real publisher URLs instead of Google redirect links, plus full article text, author and image. Date-window archiving returns thousands of articles past Google's 100-per-feed limit. Search, topics, locations, publishers. Pay per article - failed runs are free.

- **URL**: https://apify.com/vonsensey/google-news-scraper-api.md
- **Developed by:** [Blackcube Agency AB](https://apify.com/vonsensey) (community)
- **Categories:** News, Automation, Developer tools
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $3.50 / 1,000 results

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/platform/actors/running/actors-in-store#pay-per-event

## What's an Apify Actor?

Actors are web data automations that power AI and operations. They run on the Apify platform to scrape websites, process data, connect APIs, and automate workflows.
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.
Actors are written with capital "A".

## 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.
The best way to integrate Actors is as follows.

- **AI agents and MCP clients** — the [Apify MCP server](https://docs.apify.com/integrations/mcp.md) at `https://mcp.apify.com` (remote, streamable HTTP, OAuth on first use).
- **Agentic workflows and local Actor development** — [Agent Skills](https://apify.com/.well-known/agent-skills/index.json) with the [Apify CLI](https://docs.apify.com/cli/docs.md): `npm install -g apify-cli`, then `apify login`.
- **JavaScript/TypeScript projects** — the official [JS/TS client](https://docs.apify.com/api/client/js/docs.md): `npm install apify-client`.
- **Python projects** — the official [Python client](https://docs.apify.com/api/client/python/docs.md): `pip install apify-client`.
- **Any other language** — the [REST API](https://docs.apify.com/api/v2.md).

For usage examples, see the [API](#api) section below.

For more details, see Apify documentation as [Markdown index](https://docs.apify.com/llms.txt) and [Markdown full-text](https://docs.apify.com/llms-full.txt).

# README

## Google News Scraper API — real publisher URLs, full text, sentiment, deep archive

<table style="border-collapse:collapse;width:100%;margin:0 0 4px">
<tr><td colspan="3" style="padding:9px 12px;background:#0B6E75;border:1px solid #0B6E75"><span style="color:#FFFFFF;font-weight:700;font-size:13px;letter-spacing:.3px">Google News Suite</span><span style="color:#CFF0F2;font-size:12px"> &nbsp;&bull;&nbsp; 7 Actors, one codebase, one article billed once</span></td></tr>
<tr><td style="padding:9px 12px;border:1px solid #E5E7EB;background:#ECFDF5;vertical-align:top;width:33%"><span style="color:#0B6E75;font-weight:700;font-size:13px">Google News Scraper API</span><br><span style="color:#0B6E75;font-size:11px;font-weight:600">&#10148; You are here</span></td><td style="padding:9px 12px;border:1px solid #E5E7EB;background:#FFFFFF;vertical-align:top;width:33%"><a href="https://apify.com/vonsensey/google-news-api" style="color:#111827;font-weight:700;font-size:13px;text-decoration:none">Google News API</a><br><span style="color:#6B7280;font-size:11px">JSON News Feed with Real Article URLs</span></td><td style="padding:9px 12px;border:1px solid #E5E7EB;background:#FFFFFF;vertical-align:top;width:33%"><a href="https://apify.com/vonsensey/news-monitoring-scraper" style="color:#111827;font-weight:700;font-size:13px;text-decoration:none">News Monitoring Scraper</a><br><span style="color:#6B7280;font-size:11px">Track Brands, Competitors &amp; Topics</span></td></tr>
<tr><td style="padding:9px 12px;border:1px solid #E5E7EB;background:#FFFFFF;vertical-align:top;width:33%"><a href="https://apify.com/vonsensey/news-archive-scraper" style="color:#111827;font-weight:700;font-size:13px;text-decoration:none">News Archive Scraper</a><br><span style="color:#6B7280;font-size:11px">Historical News Past the 100-Item Limit</span></td><td style="padding:9px 12px;border:1px solid #E5E7EB;background:#FFFFFF;vertical-align:top;width:33%"><a href="https://apify.com/vonsensey/breaking-news-scraper-api" style="color:#111827;font-weight:700;font-size:13px;text-decoration:none">Breaking News API</a><br><span style="color:#6B7280;font-size:11px">Live Headlines Feed as JSON</span></td><td style="padding:9px 12px;border:1px solid #E5E7EB;background:#FFFFFF;vertical-align:top;width:33%"><a href="https://apify.com/vonsensey/finance-news-scraper-api" style="color:#111827;font-weight:700;font-size:13px;text-decoration:none">Finance News Scraper API</a><br><span style="color:#6B7280;font-size:11px">Market &amp; Ticker News as JSON</span></td></tr>
<tr><td style="padding:9px 12px;border:1px solid #E5E7EB;background:#FFFFFF;vertical-align:top;width:33%"><a href="https://apify.com/vonsensey/crypto-news-scraper-api" style="color:#111827;font-weight:700;font-size:13px;text-decoration:none">Crypto News Scraper API</a><br><span style="color:#6B7280;font-size:11px">Bitcoin &amp; Altcoin News as JSON</span></td></tr>
</table>

**More from this account:** [YouTube Transcript Suite](https://apify.com/vonsensey/youtube-transcript-scraper) · [Website Contact & Email Suite](https://apify.com/vonsensey/website-contact-email-extractor) · [Career Site & ATS Jobs Suite](https://apify.com/vonsensey/career-page-job-postings-scraper-api) · [Keyword Research Suite](https://apify.com/vonsensey/google-keyword-ideas-scraper) · [Shopify Store Intelligence Suite](https://apify.com/vonsensey/shopify-store-leads-scraper) · [eBay Data Suite](https://apify.com/vonsensey/ebay-scraper-api) · [Amazon Reviews Suite](https://apify.com/vonsensey/amazon-reviews-scraper-api) · [Reddit](https://apify.com/vonsensey/reddit-scraper-posts-comments-api) · [Meta Ad Library](https://apify.com/vonsensey/facebook-ads-library-scraper-meta-ad-api) · [Vinted](https://apify.com/vonsensey/vinted-scraper-api)

Scrape Google News into clean JSON. Every article comes back with **the publisher's real
URL already resolved** — not a `news.google.com/rss/articles/CBMi…` redirect blob — plus the
headline, outlet and published date. Turn on full text and you also get the article body,
author, summary, image and canonical URL. Every article is scored for sentiment, free.

**Pay per article. Failed runs and empty runs cost nothing.**

```jsonc
// Input
{ "queries": ["tesla"], "maxItems": 25 }
```

```jsonc
// Output row
{
  "title": "Tesla's true believers are starting to question their faith in Elon Musk",
  "source": "The Washington Post",
  "publishedAt": "2026-08-18T10:00:01.000Z",
  "publisherUrl": "https://www.washingtonpost.com/technology/2026/08/18/teslas-true-believers…",
  "publisherDomain": "washingtonpost.com",
  "googleNewsUrl": "https://news.google.com/rss/articles/CBMiuwFBVV95cUxNNVpvQkFlV1lB…",
  "resolveStatus": "ok"
}
```

***

### Why this one

#### 1. The URL is the real article, not a Google redirect

Google's RSS feed hands you an encoded `CBMi…` token. It is not a URL you can fetch, store,
deduplicate, or hand to a model. The old trick of base64-decoding it **stopped working** —
of 99 feed items checked on 2026-08-19, **zero** decoded to a URL.

This Actor resolves it properly. **Measured: 500 of 500 articles resolved to a real
publisher domain in a single run** (and 100/100 in another). Not a sample — every row.

Several competing Actors either return the redirect blob on default settings, hide
resolution behind a flag, or bill it as a **separate paid event**. Here it is on by default
and included in the article price. If a URL genuinely cannot be resolved you get
`publisherUrl: null` and a `resolveStatus` telling you why — never a guessed URL.

#### 2. Break the 100-article ceiling

A Google News feed returns **at most ~100 items**, whatever you ask for — `num=` and
`start=` are ignored. Every scraper built on that feed inherits the ceiling.

Set `archiveDays` and this one splits your query into consecutive date windows and fetches
each separately:

| Run | Articles returned |
|---|---|
| One plain query | **101** |
| Same query, `archiveDays: 14` | **500** (capped by `maxItems`, not by Google) |

Measured 2026-08-19: 500 unique articles, 500/500 resolved, **196 distinct outlets**, in 31
seconds. Coverage reaches back years — verified returning full windows for 2015, 2018, 2020,
2022 and 2025.

> **Honest caveat:** archive coverage is *query-specific*, not a clean date cutoff. Some
> query/window pairs return nothing at all — `tesla` returns 0 results for June 2024 on
> repeated attempts while `apple` and `election` return 100 for that exact window. That is
> Google's index, not a fault in the Actor, and the diagnostics row reports what each window
> returned so you can see it.

#### 3. Full article text, and you only pay when it arrives

Turn on `fetchArticleText` to fetch each publisher page and extract the body, author,
canonical URL and image.

News publishers block and paywall aggressively, so here is the **measured breakdown from one
real 100-article run** rather than a marketing number:

| `textStatus` | Rows | What it means |
|---|---:|---|
| `ok` | 50 | Full body text returned |
| `blocked` | 30 | Publisher refused the request (401/403) |
| `too-short` | 15 | Page fetched, no article body found |
| `paywalled` | 3 | Publisher declares the content not free |
| `fetch-failed` | 2 | Connection failed or timed out |

**You are charged for the 50, not the 100.** Paywalled, blocked and empty extractions are
free, and every row carries an explicit `textStatus` so you always know which you got.
Reuters, Politico, NYT and Barron's are among the outlets that commonly block — the row
still arrives with headline, outlet, date and resolved URL.

#### 4. Five ways in, one run

Combine any of these in a single run; results are spread evenly across them, not drained
from whichever you listed first:

- **`queries`** — keywords, with Google operators: `"exact phrase"`, `tesla OR rivian`,
  `tesla -musk`, `intitle:tesla`, `site:reuters.com`
- **`topics`** — `WORLD`, `BUSINESS`, `TECHNOLOGY`, `SPORTS`, `SCIENCE`, `HEALTH`,
  `ENTERTAINMENT`, `NATION`, or an opaque topic ID from a Google News URL
- **`locations`** — local editions by place name: `London`, `New York`, `Berlin`
- **`publishers`** — restrict to named outlets: `reuters.com`, `bbc.co.uk`
- **`includeTopHeadlines`** — Google's front page for your language and country

Any language and country edition: `language: "de"`, `country: "DE"`, and so on.

#### 5. Sentiment that is actually there

Every competing listing measured advertises a sentiment field. **None of them emits one.**
This does, on every article, at no extra charge.

It uses VADER — the standard lexicon for short news and social text — not a hand-rolled word
list, so it handles negation properly ("Tesla is *not* doing badly" scores positive rather
than negative). You get `sentiment` (positive / negative / neutral), `sentimentScore` (-1 to
+1) and `sentimentBasis` telling you what was scored: the full article body when you have it,
otherwise headline plus summary, otherwise the headline.

> **The honest limit:** VADER's lexicon is English. Scoring a German or Japanese headline
> against it would produce a confident number derived from almost no matched words — so
> non-English articles return `sentiment: null` with `sentimentBasis: "unsupported-language"`
> instead. A null you can filter on beats a number you cannot trust.

#### 6. Collapse syndicated duplicates

One wire story runs across dozens of outlets. Set `dedupeSyndicated` and you get one row per
*story*, with the other outlets attached as `republishedBy[]` — so you pay once for a story
instead of forty times. Matching is on a normalized headline, so re-headlined copy
("Tesla recalls 12,000 cars" vs "12,000 cars recalled by Tesla") still collapses.

***

### Input

| Field | Type | Default | Description |
|---|---|---|---|
| `queries` | string\[] | — | Search keywords. Google operators supported. |
| `topics` | string\[] | — | `BUSINESS`, `TECHNOLOGY`, … or an opaque topic ID. |
| `locations` | string\[] | — | Local editions by place name. |
| `publishers` | string\[] | — | Restrict to these domains. |
| `publisherQuery` | string | — | Keyword filter applied to `publishers`. |
| `includeTopHeadlines` | boolean | `false` | Add Google's front-page headlines. |
| `archiveDays` | integer | `0` | Days back to reach. `0` = one latest-news pull. |
| `windowDays` | integer | `1` | Size of each archive window. |
| `maxItems` | integer | `100` | Hard cap on billable rows. |
| `maxCostUsd` | string | — | Optional spend ceiling; the run stops cleanly before it. |
| `language` | string | `en` | `en`, `de`, `ja`, `pt-BR`, … |
| `country` | string | `US` | `US`, `GB`, `DE`, `IN`, `SE`, … |
| `resolvePublisherUrls` | boolean | `true` | Resolve the Google redirect. |
| `fetchArticleText` | boolean | `false` | Fetch body text, author, canonical URL. |
| `dedupeSyndicated` | boolean | `false` | One row per story. |
| `includeDuplicates` | boolean | `false` | Keep collapsed copies, tagged. |
| `concurrency` | integer | `20` | Parallel requests. |
| `proxy` | object | off | Optional. Not needed — see below. |

At least one of `queries`, `topics`, `locations`, `publishers` or `includeTopHeadlines` is
required. Anything else fails immediately with a message that names the fix, and costs
nothing.

### Output

Field fill rates, measured over a real 100-article run:

| Field | Filled | Notes |
|---|---:|---|
| `title`, `publishedAt`, `source`, `sourceUrl` | **100%** | Straight from the feed |
| `publisherUrl`, `publisherDomain` | **100%** | Resolved |
| `imageUrl` | 65% | Needs `fetchArticleText` |
| `snippet` | 63% | Needs `fetchArticleText` — see note |
| `canonicalUrl` | 61% | Needs `fetchArticleText` |
| `articlePublishedAt` | 52% | Publisher's own timestamp, often more precise than Google's |
| `articleText` | 50% | See the `textStatus` table above |
| `author` | 47% | Many outlets simply do not publish one |

> **On `snippet`:** Google's RSS feed does not actually carry a summary — its description
> field is just the headline and outlet wrapped in markup (measured: 0 of 101 items on a
> search feed had anything more). Rather than echo the title back at you, this Actor leaves
> `snippet` null there and fills it from the publisher's own summary when `fetchArticleText`
> is on. Other scrapers pass Google's markup through as if it were a summary.

Every row also carries `resolveStatus`, `textStatus`, `matchedInput`, `inputType`, `window`,
`language`, `country` and `scrapedAt`. Rows collapsed by dedupe carry `duplicateOfId`;
canonical rows carry `republishedBy[]`.

Each run also emits one free **`diagnostics`** row — items collected, resolve rate, text
extraction rate, windows used, errors, estimated cost — and a free **`error`** row for any
input that failed, so a partial run is still actionable and never silently short.

### Pricing

Three events, all tiered by your Apify plan. Per 1,000:

| Event | What it is | FREE | GOLD | DIAMOND |
|---|---|---:|---:|---:|
| `article` | One article: headline, outlet, date, **sentiment**, image | $7.00 | **$3.50** | $3.10 |
| `publisher-url` | Google's redirect resolved to the real article URL | $0.80 | $0.50 | $0.40 |
| `article-text` | One full body successfully extracted | $1.80 | $1.40 | $1.00 |
| | **per resolved article** | **$7.80** | **$4.00** | **$3.50** |

Every event bills **only on success**:

- **A resolution that fails is free.** The row still arrives with `publisherUrl: null` and a
  `resolveStatus`. Set `resolvePublisherUrls: false` and you are never charged for it at all.
- **Text that is paywalled, blocked or empty is free.** Measured: on a 40-article run, 19
  extractions failed and 19 were not billed.
- **Sentiment is free.** No event, no charge.
- **No run-start fee.** An empty run costs exactly $0.00 — 5 of the 11 competing actors
  charge one, up to $0.09 per run before a single row is returned.
- Set `maxCostUsd` to cap any run; all three events count against it.

*Typical run:* 1,000 articles ≈ $3.10–7.00 depending on your plan tier. The same 1,000 with
full text on returns ~500 bodies and adds ~$0.50–1.00.

Platform compute on top of that is negligible and we tuned it deliberately: a measured
100-article run with full text enabled costs **$0.017 per 1,000 articles** in Apify compute,
because this Actor is pure HTTP — no headless browser — and runs at 1 GB rather than the
4 GB most Actors default to.

### Use it from anywhere

**API** — start a run and get the rows back in one call:

```bash
curl -X POST "https://api.apify.com/v2/acts/vonsensey~google-news-scraper-api/run-sync-get-dataset-items?token=YOUR_TOKEN" \
  -H 'Content-Type: application/json' \
  -d '{"queries":["your topic"],"maxItems":50}'
```

**Python**

```python
from apify_client import ApifyClient
client = ApifyClient("YOUR_TOKEN")
run = client.actor("vonsensey/google-news-scraper-api").call(
    run_input={"queries": ["tesla"], "archiveDays": 30, "maxItems": 500}
)
for a in client.dataset(run["defaultDatasetId"]).iterate_items():
    if a.get("type") == "article":
        print(a["publishedAt"], a["source"], a["publisherUrl"])
```

**n8n / Make / Zapier** — use the Apify integration, pick this Actor, and map the dataset
output. Schedule it and you have a monitoring feed.

**Feeding a model?** Turn on `fetchArticleText` and use `articleText` plus `publisherUrl` for
citations. `textStatus` tells you which rows have a real body, so you can filter before
embedding rather than indexing empty strings.

### Notes

- **No proxy needed.** Google News is reachable directly from Apify, which is why this is
  fast and cheap. The proxy input exists only if you need a specific country of origin.
- **Speed:** 500 articles with resolved URLs in ~31 seconds; 100 articles with full text in
  \~36 seconds.
- **Reliability:** failures never kill a run. A bad query, a dead publisher or a blocked page
  produces an `error` or a status field, and the run completes.

### Legal

This is an **unofficial** tool and is **not affiliated with, endorsed by, or sponsored by
Google**. "Google" and "Google News" are trademarks of Google LLC. It reads publicly
available Google News RSS feeds and public publisher pages — no login, no paywall
circumvention. Article text is provided for monitoring, indexing and analysis; you are
responsible for respecting publisher copyright in how you use it.

### More scrapers from Blackcube

- [eBay Scraper API](https://apify.com/vonsensey/ebay-scraper-api) — sold prices, listings, sellers
- [Amazon Reviews Scraper API](https://apify.com/vonsensey/amazon-reviews-scraper-api) — reviews and ratings
- [Reddit Scraper](https://apify.com/vonsensey/reddit-scraper-posts-comments-api) — posts and comments
- [Facebook Ads Library Scraper](https://apify.com/vonsensey/facebook-ads-library-scraper-meta-ad-api) — ad intelligence
- [Website Contact & Email Extractor](https://apify.com/vonsensey/website-contact-email-extractor) — B2B contacts
- [YouTube Transcript Scraper](https://apify.com/vonsensey/youtube-transcript-scraper) — transcripts for RAG

Issues and feature requests go in the **Issues** tab — first response within 24 hours.

> **Run it without configuring anything** — [Scrape Google News for a search term](https://apify.com/vonsensey/google-news-scraper-api/examples/news-articles-for-a-search-term), a ready-made example you can start as-is or copy.

### Use cases

- **Brand and competitor monitoring.** Track your own name and a rival's in one run and see both in the same dataset.
- **Feed a model or a dashboard.** Clean JSON with the real publisher URL, headline, source and publication time — no scraping of your own required.
- **Build a historical dataset.** Walk a date window to reach far more than the ~100 items a single news query returns.
- **Run it on a schedule.** News is a feed, not a one-off — a daily or hourly run is what turns this into a monitoring system.

### Run it on a schedule

A one-off pull answers a question; a schedule answers it every day without you. Open **Schedules** in the Apify Console, point a cron at this Actor, and the dataset keeps filling on its own — no server, no cron box, no babysitting. Everything here is built to be re-run: you are billed per article delivered, so a scheduled run that finds nothing new costs nothing.

### FAQ

#### Do I get the real article URL or a Google redirect link?

The real publisher URL, resolved for you. Redirect links are useless downstream, which is the single most common complaint about news scrapers.

#### Can I get the full article text, not just the headline?

Yes — full text, author and lead image where the publisher exposes them.

#### How far back can I go?

Far past the ~100-item ceiling a single query returns: the archive Actor in this suite walks the date range window by window.

#### Can I filter by topic or country?

Yes. Query, topic feed, language and country are all inputs, and can be combined in one run.

***

Something wrong, or a field you need that is missing? Open an issue on the **Issues** tab — it is read and it gets fixed. If this saved you time, a rating on the Store page helps the next person find it.

# Actor input Schema

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

Keywords to search Google News for. Supports Google operators: "exact phrase", tesla OR rivian, tesla -musk, intitle:tesla, site:reuters.com. One row is returned per article found.

## `archiveDays` (type: `integer`):

Go back this many days to break Google's 100-article-per-feed ceiling. The query is split into consecutive date windows and each is fetched separately, so 30 days can return thousands of articles instead of 100. Leave at 0 for a single latest-news pull. Applies to search and publisher inputs only.

## `windowDays` (type: `integer`):

Size of each date window when Archive depth is set. 1 gives the deepest coverage (up to ~100 articles per day); raise it for broad topics with fewer daily articles to save requests.

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

Hard cap on billable article rows for this run. The run stops as soon as it is reached.

## `maxCostUsd` (type: `string`):

Optional spend ceiling for this run. The run stops cleanly before exceeding it. Leave empty for no ceiling.

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

Google News interface language, e.g. en, de, fr, ja, sv, pt-BR. Controls which language the articles are returned in.

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

Two-letter country code for the Google News edition, e.g. US, GB, DE, IN, SE. Controls which regional outlets appear.

## `resolvePublisherUrls` (type: `boolean`):

Turn Google's encoded news.google.com/rss/articles/CBMi... redirect into the real article URL on the publisher's own domain. On by default — this is what makes the output usable.

## `fetchArticleText` (type: `boolean`):

Also fetch each publisher page and extract the full body text, author, image and canonical URL. Slower, and billed as a separate event — but only when text is actually returned. Paywalled and blocked pages cost nothing extra.

## `analyzeSentiment` (type: `boolean`):

Score each article positive / negative / neutral using VADER, the standard lexicon for short news text (it handles negation, so "not doing badly" reads positive). Free - no extra charge. English only: other languages return null rather than a score computed from an English word list.

## `dedupeSyndicated` (type: `boolean`):

One wire story often runs across dozens of outlets. Turn this on to return one row per story, with the other outlets listed in republishedBy — so you pay once for a story instead of forty times.

## `includeDuplicates` (type: `boolean`):

When collapsing syndicated duplicates, still emit the duplicate rows (tagged with duplicateOfId) instead of dropping them. Only applies when the option above is on.

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

Google News topic sections: WORLD, NATION, BUSINESS, TECHNOLOGY, ENTERTAINMENT, SPORTS, SCIENCE, HEALTH. Opaque topic IDs from a Google News URL (CAAqJggK...) also work.

## `locations` (type: `array`):

Local news editions by place name, e.g. London, New York, Berlin. Returns the local headlines Google curates for that place.

## `publishers` (type: `array`):

Restrict results to specific outlets. Accepts reuters.com, www.reuters.com or a full URL. Use this to monitor a defined media set.

## `publisherQuery` (type: `string`):

Optional keyword applied to the publisher domains above, e.g. "earnings" to get only earnings coverage from those outlets.

## `includeTopHeadlines` (type: `boolean`):

Add Google News' main front-page headlines for the selected language and country.

## `concurrency` (type: `integer`):

How many requests to run in parallel. The default is tuned for speed without tripping rate limits; lower it only if you see errors.

## `proxy` (type: `object`):

Optional. Google News is reachable without a proxy from Apify, so leaving this off is both faster and cheaper. Enable it only if you need requests to originate from a specific country.

## Actor input object example

```json
{
  "queries": [
    "tesla",
    "\"interest rates\" OR inflation"
  ],
  "archiveDays": 0,
  "windowDays": 1,
  "maxItems": 100,
  "maxCostUsd": "5.00",
  "language": "de",
  "country": "GB",
  "resolvePublisherUrls": true,
  "fetchArticleText": false,
  "analyzeSentiment": true,
  "dedupeSyndicated": false,
  "includeDuplicates": false,
  "topics": [
    "BUSINESS",
    "TECHNOLOGY"
  ],
  "locations": [
    "London",
    "New York"
  ],
  "publishers": [
    "reuters.com",
    "bbc.co.uk"
  ],
  "publisherQuery": "earnings",
  "includeTopHeadlines": false,
  "concurrency": 20,
  "proxy": {
    "useApifyProxy": false
  }
}
```

# Actor output Schema

## `articles` (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": [
        "tesla"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("vonsensey/google-news-scraper-api").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": ["tesla"] }

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

```

## MCP server setup

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

```

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/IEEAcBx1lzwwLQ2bE/builds/nxbklqfhN85NoYGr1/openapi.json
