# Google News Scraper (RSS search by keyword, topic, site) (`webdatatools/google-news-scraper`) Actor

Google News Scraper returns headlines from Google News RSS search and topic feeds for any keyword, site: or when: query, and resolves each article's real publisher URL — one row per article.

- **URL**: https://apify.com/webdatatools/google-news-scraper.md
- **Developed by:** [Murat Uzun](https://apify.com/webdatatools) (community)
- **Categories:** News, Marketing, AI
- **Stats:** 1 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $0.30 / 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

### What is Google News Scraper?

Google News Scraper is an Apify Actor that reads **Google News RSS search and section-topic feeds** for any list of keywords, `site:` searches or `when:Nd` recency queries, and returns **one clean row per article** — title, source, publish date and the Google News link. No API key, no browser, no anti-bot wall: Google's own public `news.google.com/rss/*` feeds do the work. When **Resolve publisher URLs** is on, the Actor also follows each article's `news.google.com/rss/articles/...` redirect link and resolves the publisher's real URL (see "Publisher URL resolution" below) instead of leaving you with a Google-branded link nobody wants to click.

### What data does Google News Scraper extract?

Google News Scraper extracts 11 fields per article:

| Field                       | Type          | Description                                                                                          |
| --------------------------- | ------------- | ------------------------------------------------------------------------------------------------------ |
| `query`                     | string        | The search query, or `topic:NAME`, this article came from                                            |
| `title`                     | string        | Headline as shown by Google News (often "Headline - Publisher")                                       |
| `googleUrl`                 | string        | The `news.google.com/rss/articles/...` link from the feed                                             |
| `publisherUrl`              | string|null  | The article's real URL on the publisher's own site, resolved best-effort                              |
| `source`, `sourceUrl`       | string        | Publisher name and homepage, from the feed's `<source>` tag                                           |
| `publishedAt`               | string        | Publish date/time (ISO 8601 UTC)                                                                       |
| `snippet`                   | string|null  | Plain text derived from the feed's description                                                        |
| `guid`                      | string        | The feed's stable item id, used to dedupe articles across overlapping queries                          |
| `error`, `scrapedAt`        | string        | Per-query failure note and check timestamp                                                            |

### How to use Google News Scraper

1. Enter one or more **Search queries** — plain keywords, or Google operators like `site:reuters.com AI` or `"exact phrase"`. Add **Section topics** (`TECHNOLOGY`, `BUSINESS`, `WORLD`…) if you also want whole-section feeds.
2. Set **Only articles from the last N days** if you want a recency window (adds Google's `when:Nd` operator to every query).
3. Leave **Resolve publisher URLs** on to get the real article link, click **Start**, then export as JSON, CSV, Excel or HTML.

### Example input

```json
{
    "queries": ["web scraping", "site:reuters.com AI"],
    "topics": ["TECHNOLOGY"],
    "sinceDays": 7,
    "resolvePublisherUrls": true,
    "maxItemsPerQuery": 50
}
```

### Example output

```json
{
    "query": "web scraping",
    "title": "EDPB web scraping guidelines for AI: Making the impossible possible? - Reed Smith LLP",
    "googleUrl": "https://news.google.com/rss/articles/CBMi3AFBVV95cUxOTUxq...?oc=5",
    "publisherUrl": "https://www.reedsmith.com/our-insights/blogs/technology-law-dispatch/102nbqu/edpb-web-scraping-guidelines-for-ai-making-the-impossible-possible/",
    "source": "Reed Smith LLP",
    "sourceUrl": "https://www.reedsmith.com",
    "publishedAt": "2026-07-14T07:00:00.000Z",
    "snippet": "EDPB web scraping guidelines for AI: Making the impossible possible? Reed Smith LLP",
    "guid": "CBMi3AFBVV95cUxOTUxq...",
    "error": null,
    "scrapedAt": "2026-09-13T00:00:00.000Z"
}
```

### Input parameters

| Parameter               | Type    | Default          | Description                                                        |
| ------------------------ | ------- | ---------------- | ------------------------------------------------------------------- |
| `queries`                | array   | `["web scraping"]` | Search terms/operators, one Google News search feed per entry     |
| `topics`                 | array   | `[]`              | Section topics: WORLD, NATION, BUSINESS, TECHNOLOGY, ENTERTAINMENT, SCIENCE, SPORTS, HEALTH |
| `language` / `country`   | string  | `en` / `US`       | Interface language and edition (builds `hl`/`gl`/`ceid`)           |
| `sinceDays`              | integer | `0`               | Adds `when:Nd` to searches; `0` disables it (topics ignore it)     |
| `maxItemsPerQuery`       | integer | `100`             | Cap per query/topic (Google itself rarely returns more than ~100) |
| `resolvePublisherUrls`   | boolean | `true`            | Resolve the real publisher URL (2 extra requests/article)          |
| `maxConcurrency`         | integer | `5`               | Parallel feed fetches, and parallel URL resolutions (1-20)         |

### Pricing

Google News Scraper uses pay-per-event pricing: **$0.0005 per article result, i.e. $0.50 per 1,000 articles**, plus a negligible actor-start fee. A single feed request typically returns dozens of articles for a fraction of a cent; resolving publisher URLs adds two extra requests per article but no extra dataset charge. Set **Maximum cost per run** and the Actor trims the result list to what the budget covers instead of overspending.

### Google News Scraper vs. manual Google News browsing

Reading Google News by hand means opening dozens of tabs and copy-pasting headlines one at a time, and every article link is a Google-branded redirect you cannot drop into a report. This Actor takes a whole list of keywords, sites and topics in one run, returns a flat structured dataset, resolves the real publisher link, and can be scheduled to catch new coverage the moment it appears.

### Using Google News Scraper with AI agents and MCP

Google News Scraper is pay-per-event with limited permissions — the two requirements for an Actor to be callable through the Apify MCP server at `mcp.apify.com`. An agent passes `queries` or `topics` and gets back one structured row per article — headline, source, publish date, and (best-effort) the real publisher link — ready to feed into a summarizer, a lead-monitoring workflow or a competitor-tracking pipeline. The same run works from n8n, Make, Zapier and LangChain through Apify's integrations.

### FAQ

**How does publisher URL resolution work?** Google's feed link is never the publisher's own URL — it is a `news.google.com/rss/articles/<id>` redirect that answers a 302 pointing back to itself, then a client-rendered page. This Actor fetches that page, extracts the `data-n-a-id`/`data-n-a-ts`/`data-n-a-sg` values Google embeds in it, and posts them to Google's internal redirect-resolution endpoint to get the real URL back. This is an **undocumented internal API**, verified live but not published by Google — it can break without notice if Google changes the page or endpoint shape, in which case affected rows simply get `publisherUrl: null` and keep everything else.

**Why is `publisherUrl` null on some rows?** Either **Resolve publisher URLs** was off, the resolution request failed or timed out, or Google's page/endpoint shape changed since this Actor was last verified. The row still ships with its Google News link, title, source and date.

**Does `when:Nd` apply to section topics?** No — topic feeds (`topics[]`) are always "latest for that section"; the recency filter only applies to `queries[]` searches, where it is a genuine Google search operator (verified live: `site:reuters.com AI when:7d` returned only reuters.com articles from the prior week).

**What are the limitations?** Google's feeds return at most roughly 100 items per request with no further pagination, so a very broad query is naturally capped. Google News' own copyright notice restricts the feed to personal, non-commercial feed-reader use; treat bulk/commercial reuse of the underlying articles as your responsibility. A failing query still produces one row, with the reason in `error`.

**Is this legal to run?** The RSS feeds are Google's own public syndication format. Downstream use of the article text/links is subject to Google's feed terms and each publisher's own copyright — this Actor only extracts metadata and links, it does not copy article bodies.

**Can I export to CSV or Excel?** Yes, from the Output tab or the API, with a ready-made **Overview** view.

### Related Actors

Part of the **webdatatools** web-intelligence suite — every Actor is pay-per-event, reads public data
without a login, and returns one clean row per entity:

Browse the whole suite at [webdatatools](https://paulet4a-commits.github.io/webdatatools/), or call ten of
these Actors straight from Claude, Cursor or Cline with the
[webdatatools MCP server](https://github.com/paulet4a-commits/webdatatools-mcp-server).

**Website & domain intelligence**

- [Email Extractor — Website Contact & Social Finder](https://apify.com/webdatatools/contact-extractor) — e-mails, phones and social profiles per domain
- [Tech Stack Detector — Wappalyzer & BuiltWith Alternative](https://apify.com/webdatatools/tech-stack-detector) — CMS, e-commerce, analytics, pixels and payments per domain
- [Domain DNS & Email Security Checker](https://apify.com/webdatatools/dns-email-security-checker) — SPF, DKIM, DMARC, MX provider, registrar and domain age
- [Domain Security Audit (TLS, HTTP headers, redirects, robots)](https://apify.com/webdatatools/domain-security-audit) — TLS expiry, security headers, redirect chain, robots and llms.txt
- [Subdomain Finder (Certificate Transparency)](https://apify.com/webdatatools/subdomain-finder) — every subdomain seen in CT logs, with a live DNS check
- [Bulk Core Web Vitals & PageSpeed Audit](https://apify.com/webdatatools/core-web-vitals-audit) — Lighthouse scores, LCP, CLS, INP and top fixes per URL
- [On-Page SEO Audit](https://apify.com/webdatatools/seo-page-audit) — title, meta, headings, links, images and schema issues per page
- [Sitemap URL Extractor & Change Monitor](https://apify.com/webdatatools/sitemap-extractor) — every sitemap URL, or new and removed pages between runs
- [Wayback Machine Snapshot & Page Change Tracker](https://apify.com/webdatatools/wayback-page-diff) — how a page changed over time, or every archived snapshot
- [Bulk Domain WHOIS & RDAP Lookup](https://apify.com/webdatatools/domain-whois-rdap) — registrar, dates, status and nameservers per domain
- [Web Scraper — CSS Selector & Data Extractor](https://apify.com/webdatatools/css-selector-extractor) — pull any CSS selector off any page, one row per URL
- [Website Screenshot Generator](https://apify.com/webdatatools/website-screenshot) — full-page or viewport PNG/JPEG screenshots of any URL

**Content for AI, LLMs and RAG**

- [AI Web Search & Read: Google results as clean Markdown](https://apify.com/webdatatools/ai-web-search) — a query turned into clean Markdown from the top search results
- [Website to Markdown — Content Crawler for LLM & RAG](https://apify.com/webdatatools/website-to-markdown) — any site as clean Markdown per page, no browser
- [Article & News Extractor (clean text, author, date, markdown)](https://apify.com/webdatatools/article-extractor) — clean article text, author, date and Markdown per URL
- [Structured Data & JSON-LD Extractor (Schema.org, Open Graph)](https://apify.com/webdatatools/structured-data-extractor) — Schema.org and Open Graph data from any page
- [Press Release Monitor: PR Newswire, BusinessWire, GlobeNewswire](https://apify.com/webdatatools/press-release-monitor) — PR Newswire, Business Wire and GlobeNewswire releases

**Search, video and social**

- [YouTube Shorts Scraper](https://apify.com/webdatatools/youtube-shorts-scraper) — Shorts from channels, hashtags and searches with view counts
- [Pinterest Pins Scraper](https://apify.com/webdatatools/pinterest-pins-scraper) — latest pins of public Pinterest profiles and boards
- [YouTube Transcript Scraper](https://apify.com/webdatatools/youtube-transcript-scraper) — captions and subtitles as text + timed segments, per video or channel
- [Google Search Results Scraper — SERP API](https://apify.com/webdatatools/google-search-scraper) — organic SERP results per keyword and country
- [YouTube Comments Scraper — Comments & Replies](https://apify.com/webdatatools/youtube-comments-scraper) — comments and replies with likes, no API key
- [YouTube Channel Latest Videos (RSS, no API key)](https://apify.com/webdatatools/youtube-channel-videos) — the latest 15 videos of any channel from RSS
- [YouTube Channel Scraper (videos, shorts, live)](https://apify.com/webdatatools/youtube-channel-scraper) — a channel's full video, shorts and stream list
- [YouTube Search Results Scraper (videos, channels, no API key)](https://apify.com/webdatatools/youtube-search-scraper) — videos, channels and playlists per query
- [YouTube Video Details Scraper (views, likes, description, tags)](https://apify.com/webdatatools/youtube-video-details) — views, likes, description, tags and chapters per video
- [Apple Podcasts Lookup & Episodes Scraper](https://apify.com/webdatatools/podcast-lookup) — podcast metadata and episodes from iTunes and RSS
- [Bluesky Post, Search & Profile Scraper](https://apify.com/webdatatools/bluesky-scraper) — posts, profiles, followers and threads from the AT Protocol API
- [Telegram Channel Posts Scraper](https://apify.com/webdatatools/telegram-channel-scraper) — posts, views and media flags from any public channel
- [Substack Publication & Posts Scraper](https://apify.com/webdatatools/substack-scraper) — archive, authors and paywall status per publication
- [Google Play Reviews Scraper](https://apify.com/webdatatools/google-play-reviews-scraper) — reviews, ratings, replies and app versions per app
- [App Store Reviews Scraper](https://apify.com/webdatatools/app-store-reviews-scraper) — iOS reviews and ratings per app and country
- [Google Trends Scraper](https://apify.com/webdatatools/google-trends-scraper) — interest over time, by region, and related queries per keyword
- [Google Ads Transparency Scraper](https://apify.com/webdatatools/google-ads-transparency-scraper) — ads any advertiser runs on Google, with format and dates
- [Keyword Suggestions Scraper (Google, YouTube, Amazon, Bing)](https://apify.com/webdatatools/keyword-suggestions-scraper) — autocomplete keyword ideas from four search engines
- [Bilibili Scraper (Videos, Search, Popular)](https://apify.com/webdatatools/bilibili-scraper) — Chinese video platform: views, likes, coins, danmaku, uploader
- [Mastodon Scraper (Hashtags, Accounts, Trending)](https://apify.com/webdatatools/mastodon-scraper) — public fediverse posts by hashtag, account or trending
- [Meetup Events Scraper (Search by Keyword & City)](https://apify.com/webdatatools/meetup-events-scraper) — upcoming events with RSVPs, fees, venues and groups
- [Eventbrite Scraper (Events by Keyword & City)](https://apify.com/webdatatools/eventbrite-scraper) — events by keyword and city with venue, dates and organizer

**Leads, jobs and company data**

- [Career Site Jobs API (Greenhouse, Lever, Ashby, Workday +1)](https://apify.com/webdatatools/career-site-jobs-api) — company domains in, their open jobs out, ATS detected automatically
- [Workday Jobs Scraper](https://apify.com/webdatatools/workday-jobs-scraper) — jobs with full descriptions from any Workday career site
- [Google Maps Scraper](https://apify.com/webdatatools/google-maps-scraper) — businesses with phone, website, address, rating and coordinates per search
- [LinkedIn Jobs Scraper](https://apify.com/webdatatools/linkedin-jobs-scraper) — job titles, companies, locations and full descriptions from LinkedIn job search
- [Company 360: full company profile from a domain](https://apify.com/webdatatools/company-360) — one row per domain: contacts, tech, security, hiring and company facts
- [Hiring Signals Scraper (Greenhouse, Lever, Ashby, Workable)](https://apify.com/webdatatools/hiring-signals) — open jobs and hiring velocity from 10 public ATS boards
- [Y Combinator Companies & Founders Scraper](https://apify.com/webdatatools/yc-companies-scraper) — YC startups by batch, industry and hiring status
- [Wikidata Entity & Company Enrichment (facts, IDs, links)](https://apify.com/webdatatools/wikidata-entity-enrichment) — HQ, founders, employees, revenue and social IDs per company
- [Email Validator & Verifier — Bulk Email Check](https://apify.com/webdatatools/email-validator) — syntax, MX, disposable, role and free-provider checks
- [OpenStreetMap POI Extractor (Overpass API: shops, amenities)](https://apify.com/webdatatools/overpass-poi-extractor) — shops and amenities by radius, bbox or area
- [Stock, Crypto & FX Quotes](https://apify.com/webdatatools/market-quotes) — one row per symbol from Yahoo, Binance and ECB rates
- [Remote Jobs Aggregator (RemoteOK, WWR, Hacker News)](https://apify.com/webdatatools/remote-jobs-aggregator) — one clean row per remote job, de-duplicated across feeds
- [Greenhouse Jobs Scraper](https://apify.com/webdatatools/greenhouse-jobs-scraper) — jobs with descriptions from any Greenhouse job board
- [Lever Jobs Scraper](https://apify.com/webdatatools/lever-jobs-scraper) — jobs with descriptions from any Lever careers page
- [Ashby Jobs Scraper](https://apify.com/webdatatools/ashby-jobs-scraper) — jobs, salaries and descriptions from any Ashby job board
- [SmartRecruiters Jobs Scraper](https://apify.com/webdatatools/smartrecruiters-jobs-scraper) — jobs with descriptions from any SmartRecruiters company
- [Seek Jobs Scraper (Australia & New Zealand)](https://apify.com/webdatatools/seek-jobs-scraper) — Seek job ads with salary, work type and location
- [Dice Jobs Scraper](https://apify.com/webdatatools/dice-jobs-scraper) — US tech jobs from Dice with salary and remote flag
- [AutoScout24 Scraper](https://apify.com/webdatatools/autoscout24-scraper) — European car listings with price, mileage and seller
- [Rightmove Scraper](https://apify.com/webdatatools/rightmove-scraper) — UK property for sale or rent with price and agent
- [Wellfound Jobs Scraper (AngelList Startup Jobs)](https://apify.com/webdatatools/wellfound-jobs-scraper) — startup jobs with salary and equity ranges, company size and stage
- [Yandex Maps Scraper (Places, Ratings, Phones)](https://apify.com/webdatatools/yandex-maps-scraper) — businesses in Russia, Türkiye and the CIS with phones, ratings, hours
- [Craigslist Scraper (Listings, Prices, Locations)](https://apify.com/webdatatools/craigslist-scraper) — listings in any area and category with price, date and coordinates
- [JobStreet Scraper (Malaysia, Singapore, PH, ID + JobsDB)](https://apify.com/webdatatools/jobstreet-scraper) — JobStreet and JobsDB jobs in 6 Asian countries with parsed salaries
- [InfoJobs Scraper (Spain Jobs, Salaries, Companies)](https://apify.com/webdatatools/infojobs-scraper) — Spanish jobs with salary range, contract type and full description
- [Redfin Scraper (Homes for Sale, Prices, Details)](https://apify.com/webdatatools/redfin-scraper) — US homes for sale or sold from any Redfin search, with price and details
- [Kleinanzeigen Scraper (Ads, Prices, Locations)](https://apify.com/webdatatools/kleinanzeigen-scraper) — German classifieds with price, VB flag, ZIP, city and seller type

**Developer, app and research data**

- [npm, PyPI & Crates.io Package Health Checker](https://apify.com/webdatatools/package-health-checker) — releases, downloads, deprecation and a health score
- [GitHub Repository Health & Activity Report](https://apify.com/webdatatools/github-repo-health) — stars, commits, contributors and risk flags per repo
- [VS Code Marketplace Extension Scraper (installs, ratings)](https://apify.com/webdatatools/vscode-marketplace-extensions) — installs, ratings and versions per extension
- [Chrome Web Store Extension Scraper (installs, ratings)](https://apify.com/webdatatools/chrome-web-store-extensions) — users, rating, version and developer per extension
- [Google Play Scraper](https://apify.com/webdatatools/google-play-scraper) — apps, ratings, installs, developer contact and reviews
- [App Store (iOS) App Metadata, Ratings & Top Charts Lookup](https://apify.com/webdatatools/app-store-lookup) — ratings, price, version and charts per app
- [CrossRef DOI & Citation Metadata Lookup](https://apify.com/webdatatools/crossref-doi-lookup) — papers, authors, journals and citation counts
- [FDA Recalls & Adverse Events Monitor (openFDA)](https://apify.com/webdatatools/openfda-recall-monitor) — food, drug and device recalls from openFDA
- [iCal / ICS Calendar Feed to Events Extractor](https://apify.com/webdatatools/ical-calendar-extractor) — any public calendar feed as event rows
- [Shopify Store Products Scraper](https://apify.com/webdatatools/shopify-products-scraper) — catalog, prices, variants and stock per store
- [Hacker News Search & Front Page Scraper](https://apify.com/webdatatools/hacker-news-scraper) — stories, comments and points by query or front page
- [GitHub Trending Repositories Scraper](https://apify.com/webdatatools/github-trending-scraper) — trending repos and developers by language and period
- [Stack Overflow & Stack Exchange Q\&A Scraper](https://apify.com/webdatatools/stackexchange-scraper) — questions, answers and scores by query, tag or site
- [Bulk Image Downloader](https://apify.com/webdatatools/bulk-image-downloader) — download image URLs to storage with size, dimensions and a ZIP
- [Google Flights Scraper (Prices, Airlines, Stops)](https://apify.com/webdatatools/google-flights-scraper) — flight prices, airlines, times, stops and CO2 by route and date
- [Google Hotels Scraper (Prices, Ratings, Reviews)](https://apify.com/webdatatools/google-hotels-scraper) — hotel prices per night, stars, rating and reviews by city and dates
- [AliExpress Scraper (Search Products & Prices)](https://apify.com/webdatatools/aliexpress-scraper) — AliExpress search results with USD price, discount and rank
- [Lazada Scraper (Products, Prices, Sold, Ratings)](https://apify.com/webdatatools/lazada-scraper) — Lazada products in 6 countries with price, rating, units sold and seller

### Support and feedback

Found a topic Google added, a feed shape that changed, or a resolution bug? Open an issue on the **Issues** tab.

# Actor input Schema

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

Enter Google News search terms, one row is returned per matching article. Supports Google's search operators, e.g. web scraping, "exact phrase", site:reuters.com AI, or -unwanted. Leave empty and use Topics below instead if you only want section feeds.

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

Enter Google News section topics to fetch instead of (or in addition to) a search, e.g. TECHNOLOGY or BUSINESS. Accepted values: WORLD, NATION, BUSINESS, TECHNOLOGY, ENTERTAINMENT, SCIENCE, SPORTS, HEALTH. Unknown values are ignored.

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

Enter the 2-letter interface language code Google News should use, e.g. en for English or fr for French. Combined with Country to build the hl/gl/ceid feed parameters.

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

Enter the 2-letter country/edition code, e.g. US for the United States or GB for the United Kingdom. Combined with Language to build the hl/gl/ceid feed parameters.

## `sinceDays` (type: `integer`):

Enter how many days back to search, e.g. 7 for the last week. Appends Google's when:Nd search operator to every query (topic feeds ignore this — they are always "latest"). Enter 0 to disable and return whatever Google's default ranking gives.

## `maxItemsPerQuery` (type: `integer`):

Enter the maximum number of articles to keep per query or topic, e.g. 50. Google's own feed rarely returns more than ~100 items for a single request no matter how high this is set.

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

Keep this on to follow each article's news.google.com redirect link and fetch the publisher's real URL (2 extra requests per article, using an undocumented Google endpoint — best-effort, see README). Turn it off for a much faster run that only returns the Google News link.

## `maxConcurrency` (type: `integer`):

Enter how many queries/topics — and, separately, how many publisher-URL resolutions — to run in parallel, e.g. 5. Raise it for large query lists, lower it if Google starts responding slower or with errors.

## Actor input object example

```json
{
  "queries": [
    "web scraping",
    "site:reuters.com AI"
  ],
  "topics": [
    "TECHNOLOGY",
    "BUSINESS"
  ],
  "language": "en",
  "country": "US",
  "sinceDays": 7,
  "maxItemsPerQuery": 50,
  "resolvePublisherUrls": true,
  "maxConcurrency": 5
}
```

# Actor output Schema

## `articles` (type: `string`):

All matched articles — download as JSON, CSV, Excel or HTML.

# 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": [
        "web scraping",
        "site:reuters.com AI"
    ],
    "topics": [
        "TECHNOLOGY",
        "BUSINESS"
    ],
    "language": "en",
    "country": "US",
    "sinceDays": 7,
    "maxItemsPerQuery": 50,
    "resolvePublisherUrls": true,
    "maxConcurrency": 5
};

// Run the Actor and wait for it to finish
const run = await client.actor("webdatatools/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": [
        "web scraping",
        "site:reuters.com AI",
    ],
    "topics": [
        "TECHNOLOGY",
        "BUSINESS",
    ],
    "language": "en",
    "country": "US",
    "sinceDays": 7,
    "maxItemsPerQuery": 50,
    "resolvePublisherUrls": True,
    "maxConcurrency": 5,
}

# Run the Actor and wait for it to finish
run = client.actor("webdatatools/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": [
    "web scraping",
    "site:reuters.com AI"
  ],
  "topics": [
    "TECHNOLOGY",
    "BUSINESS"
  ],
  "language": "en",
  "country": "US",
  "sinceDays": 7,
  "maxItemsPerQuery": 50,
  "resolvePublisherUrls": true,
  "maxConcurrency": 5
}' |
apify call webdatatools/google-news-scraper --silent --output-dataset

```

## MCP server setup

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