# Google News Scraper - Headlines, Articles & Search (`socialscrapers/google-news-scraper`) Actor

Google News API alternative: scrape news articles, headlines, top stories, topics and local news from any Google News search or RSS link, in 89 countries and languages. Real publisher URLs, dates, related coverage and optional full text. No login, no API key. $1.94 per 1,000 articles.

- **URL**: https://apify.com/socialscrapers/google-news-scraper.md
- **Developed by:** [Social Scrapers](https://apify.com/socialscrapers) (community)
- **Categories:** News, Automation
- **Features:** Limited permissions
- **Stats:** 1 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $1.55 / 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** extracts news articles from [Google News](https://news.google.com): search results, top stories, topics such as Business or Technology, and local news, in any of Google News' 89 country and language editions. Every article comes with its headline, publisher, date, Google News link, the **publisher's own article URL**, its rank and the other outlets covering the same story, and you can add the **full article text**, authors and image. No Google account, no API key and no proxy needed. It costs **$1.94 per 1,000 articles**, plus $0.95 per 1,000 articles with full text.

> 💡 **Need a feature that isn't here? Just ask.** Open an issue on the **Issues** tab and tell us what you need: a new field, filter, input type or output format. We build requested features fast, usually within 24 hours, at no extra cost.

> ⭐ **Found it useful?** A short review on the **Reviews** tab helps other people find this scraper, and tells us what to build next.

### What does Google News Scraper do?

Google News Scraper works like a Google News API: give it searches, topics or Google News links and get clean, structured news data you can download or read through an API.

- 🔎 **Search Google News** with every search operator: `"exact phrase"`, `OR`, `-exclude`, `site:bbc.com`, `intitle:`, `when:7d`, `after:` and `before:`.
- 📰 **Top stories and topics**: World, Nation, Business, Technology, Entertainment, Science, Sports and Health, for any country.
- 🔗 **Paste Google News links**: topic pages, searches, local news or RSS feeds.
- 📍 **Local news** for a city or region: `London`, `Austin, Texas`, `Bavaria`.
- 🌍 **89 editions**: pick a country and its language (United States in English or Spanish, India in English, Hindi, Bengali and six more, Germany, Japan, Brazil...).
- 🔗 **Real article URLs**: the publisher's link for every article, not only the Google News redirect.
- 🗂️ **Related coverage**: the other outlets' headlines on the same story, as Google groups them.
- 📄 **Full article text** (optional): main text, authors, published and updated dates, image and description from the publisher's page.
- ♾️ **More than 100 articles per search**: ask for more, or for all of them (`maxArticles: 0`), and the search is collected day by day through your date range.
- 🧹 **No duplicates**: an article found by several queries is saved once and charged once.
- 💸 **Pay per article**, with a maximum cost per run that is never exceeded.

### What data can you extract from Google News?

| Field | Description |
| --- | --- |
| `title` | Headline, without the publisher's name Google adds |
| `publisher`, `publisherUrl` | Publisher name and home page |
| `url` | The article on the publisher's site |
| `googleNewsUrl` | The article's Google News link |
| `publishedAt` | Publication time (ISO 8601, UTC) |
| `relatedCoverage` | Other outlets' articles on the same story: title, publisher, link |
| `position` | Rank of the article among its query's or topic's results |
| `sourceType`, `source`, `query`, `topic` | The search, topic, link or location that found it |
| `edition` | The Google News edition read, e.g. `US:en`, `DE:de`, `JP:ja` |
| `id` | Google News article id |
| `fullText`, `wordCount` | The article's main text, paragraph by paragraph (full text option) |
| `authors` | Article authors (full text option) |
| `articlePublishedAt`, `articleModifiedAt` | Published and updated times from the publisher's page (full text option) |
| `description`, `image` | The article's summary and main image (full text option) |
| `fullTextError` | Why the text is missing, when it is (paywall, publisher refused the visit...) |
| `scrapedAt` | When the article was collected |

### How to scrape Google News

1. Open Google News Scraper on Apify and click **Try for free**.
2. Type your **search queries**, pick **topics**, paste **Google News links** or add **local news** places.
3. Choose the **country** and **language**, and optionally a **date range**.
4. Set **max articles per query or topic** (0 = no limit) and turn on **full article text** if you need it.
5. Click **Start** and download the articles as JSON, CSV, Excel or HTML, or read them through the API.

### How much does it cost to scrape Google News?

**$1.94 per 1,000 articles** saved to your dataset, publisher URLs included. **Full article text costs $0.95 per 1,000 articles** whose text was found; articles where the publisher refused the visit are not charged for text. Apify subscribers pay less: **Silver 10% off** ($1.746 and $0.855 per 1,000), **Gold 20% off** ($1.552 and $0.76 per 1,000). Platform usage is included. Each run also carries Apify's standard Actor start charge of $0.0005 (one per GB of memory, at least one).

- **Example:** 1,000 headlines with publisher URLs: **$1.94** ($1.552 on Gold).
- **Example:** every article about a topic over 30 days, about 3,000 articles: **$5.82**.
- **Example:** 500 articles with full text, of which about 400 have text: $0.97 + $0.38 = **$1.35**.
- **Example:** 10 queries of 100 articles every day for a month, 30,000 articles: **$58.20**.
- Apify's free plan includes monthly platform credit (currently $5), enough for about 2,500 articles.

Set a **maximum cost per run** when you start it, and the scraper stops cleanly before the first article that would go over it.

### Input example

```json
{
  "queries": ["\"heat pump\" when:7d", "site:bbc.com climate"],
  "topics": ["TOP_STORIES", "BUSINESS"],
  "startUrls": [{ "url": "https://news.google.com/search?q=Energiewende&hl=de&gl=DE&ceid=DE:de" }],
  "locations": ["London"],
  "country": "US",
  "language": "en",
  "dateFrom": "7 days",
  "maxArticles": 100,
  "resolveUrls": true,
  "includeFullText": false
}
```

| Field | Default | What it does |
| --- | --- | --- |
| `queries` | | Searches, one per line, with any Google News operator |
| `topics` | | `TOP_STORIES`, `WORLD`, `NATION`, `BUSINESS`, `TECHNOLOGY`, `ENTERTAINMENT`, `SCIENCE`, `SPORTS`, `HEALTH` |
| `startUrls` | | Google News links: topic pages, searches, local news, RSS feeds |
| `locations` | | Places for local news |
| `country`, `language` | `US`, the country's main language | The edition: e.g. `IN` + `hi`, `CA` + `fr`, `BR` (Portuguese) |
| `dateFrom`, `dateTo` | | A date (`2026-01-31`, `2026-1-31`, `31/01/2026`, `Jan 31 2026`; a UTC day), a date-time, or an age (`12 hours`, `7 days`, `2w`, `6 months`, `yesterday`). With both day and month 12 or less (`01/02/2026`) the date is read month/day/year. |
| `maxArticles` | `100` | Per query, topic, link and location; `0` = no limit |
| `resolveUrls` | `true` | Find the publisher's article URL |
| `includeFullText` | `false` | Add the article text, authors, dates, image and description |
| `dedupe` | `true` | Save an article once even when several queries find it |

### Output example

A search result with full text (the text is shortened here):

```json
{
  "id": "CBMimwFBVV95cUxNQ2JkSEx3dzdqRXB0Mk94dzUt...",
  "title": "Researchers develop 10.56 kW solar-powered pleasure boat",
  "publisher": "pv magazine Global",
  "publisherUrl": "https://www.pv-magazine.com",
  "url": "https://www.pv-magazine.com/2026/11/07/researchers-unveil-10-56-kw-solar-powered-pleasure-boat/",
  "googleNewsUrl": "https://news.google.com/rss/articles/CBMimwFBVV95cUxNQ2JkSEx3dzdqRXB0Mk94dzUteGt...",
  "publishedAt": "2026-11-07T08:57:54.000Z",
  "description": "Researchers in Canada have designed a solar-powered pleasure boat featuring a 10.56 kW PV array and a 19.68 kWh battery system.",
  "image": "https://www.pv-magazine.com/wp-content/uploads/2026/11/1-s2.0-S3050475926013242-gr3_lrg.jpg",
  "relatedCoverage": [],
  "sourceType": "search",
  "source": "solar energy",
  "query": "solar energy",
  "topic": null,
  "position": 8,
  "edition": "US:en",
  "fullText": "Researchers in Canada have designed a solar-powered pleasure boat featuring a 10.56 kW PV array and a 19.68 kWh battery system. ...\n\nA research team from Canada's Memorial University of Newfoundland has designed a solar-powered pleasure boat. ...",
  "wordCount": 575,
  "authors": ["Lior Kahana"],
  "articlePublishedAt": "2026-11-07T08:00:00.000Z",
  "articleModifiedAt": null,
  "fullTextError": null,
  "scrapedAt": "2026-11-08T11:45:57.194Z"
}
```

A top story from the Business topic, with related coverage:

```json
{
  "title": "NASA unveils $10B Moon base contract as SpaceX, Blue Origin join lunar gold rush",
  "publisher": "Fox Business",
  "publisherUrl": "https://www.foxbusiness.com",
  "url": "https://www.foxbusiness.com/fox-news-air-space/nasa-unveils-10b-moon-base-contract-spacex-blue-origin-join-lunar-gold-rush",
  "publishedAt": "2026-11-08T03:09:00.000Z",
  "relatedCoverage": [
    { "title": "NASA Awards Moon Base Transportation, Technology, Science Projects", "publisher": "NASA (.gov)", "googleNewsUrl": "https://news.google.com/rss/articles/..." },
    { "title": "NASA reveals new lunar rover, PROMISE, to launch to moon in 2028", "publisher": "Scientific American", "googleNewsUrl": "https://news.google.com/rss/articles/..." }
  ],
  "sourceType": "topic",
  "source": "Business",
  "topic": "Business",
  "position": 4,
  "edition": "US:en"
}
```

The Output tab has two views: **Overview** (title, publisher, date, links, rank, related coverage) and **Full text**. Each run also saves a summary (articles per query, why the run stopped) as `RUN_SUMMARY` in its key-value store.

### Use cases

- **Media monitoring and PR**: track every article that mentions your brand, competitors or executives, in every market you care about.
- **News alerts**: run a search every hour or day and send new articles to Slack, email or a spreadsheet.
- **Market and investment research**: follow industries, companies and tickers across business and technology news.
- **Content and SEO research**: see which publishers rank for a topic and how stories are covered.
- **AI and NLP datasets**: build corpora of news headlines and full article text by topic, country and language.
- **Academic research**: study news coverage of a subject over time, by country and outlet.

### Use Google News Scraper via API, Python, JavaScript and integrations

Run it from your own code with the [Apify API](https://docs.apify.com/api/v2) and read the articles from the run's dataset.

Python ([apify-client](https://docs.apify.com/api/client/python)):

```python
from apify_client import ApifyClient

client = ApifyClient("<YOUR_APIFY_TOKEN>")
run = client.actor("socialscrapers/google-news-scraper").call(run_input={
    "queries": ["electric vehicles when:1d"],
    "country": "GB",
    "maxArticles": 200,
})
for article in client.dataset(run["defaultDatasetId"]).iterate_items():
    print(article["publishedAt"], article["publisher"], article["title"], article["url"])
```

JavaScript ([apify-client](https://docs.apify.com/api/client/js)):

```javascript
import { ApifyClient } from 'apify-client';

const client = new ApifyClient({ token: '<YOUR_APIFY_TOKEN>' });
const run = await client.actor('socialscrapers/google-news-scraper').call({
    topics: ['TOP_STORIES', 'TECHNOLOGY'],
    country: 'IN',
    language: 'hi',
    includeFullText: true,
    maxArticles: 50,
});
const { items } = await client.dataset(run.defaultDatasetId).listItems();
console.log(`${items.length} articles`);
```

- **No-code:** connect the scraper to Make, Zapier, n8n, Google Sheets, Slack, Airbyte and more through [Apify integrations](https://docs.apify.com/platform/integrations).
- **Webhooks and schedules:** run it every hour or day, and get notified or push the results when a run finishes.
- **AI agents:** let AI assistants and agents run it and read the news through the [Apify MCP server](https://docs.apify.com/platform/integrations/mcp).

### Limits

- **About 100 articles per search at once.** Ask for more and the search is collected one day at a time across your date range (the last 12 months when no start date is set); a search stops early after 60 days in a row without any article.
- **Topics, topic links and local news** give what their Google News page lists, usually 30 to 100 articles.
- **Dates of older articles** may be given by Google News as the day only (shown as midnight Pacific time).
- **Google News gives no snippet or image** in its lists: `description` and `image` are filled from the publisher's page when full text is on.
- **Full text depends on the publisher.** Some sites refuse automated visits, sit behind a paywall or build the page by script; those articles keep all other fields and `fullTextError` says why. In our tests about 8 in 10 articles had full text.
- **Related coverage** appears where Google News groups a story's articles: top stories and topics.
- **Editions** are the country and language pairs Google News offers; another pair is refused with the list of the country's languages.
- **Publication pages and full-coverage stories** cannot be read as links: for one publication, search with `site:example.com`.
- **Links work as they are**: Google News links with or without `https://`, links from a signed-in browser (`/u/0/…`) and Google web searches (`google.com/search?q=…`, the News tab included) are all read; words put in `startUrls` instead of `queries` are searched for. Country names (`Germany`, `UK`, `USA`) and language names (`German`) work in place of codes.
- **A run with 0 results still succeeds.** When a search, topic or link matches no article (or none in your date range), the run ends as Succeeded with a status message naming each input and why, and no results are charged. Input with nothing usable in it (for example only links to other websites) ends as Succeeded too, before reading anything: its status message starts with "Nothing to scrape:" and says what to change, and no results are charged. A run fails only when Google News refuses every one of 3 or more inputs and a check on a public feed as well, or on an unexpected error.

### FAQ

#### Is it legal to scrape Google News?

Google News Scraper collects only what Google News shows to any visitor, without logging in. Scraping public data is generally lawful, but rules differ by country and by use, and articles are copyrighted by their publishers. You are responsible for how you use the data; ask a lawyer if you are unsure.

#### Do I need a Google account or an API key?

No. The scraper needs no Google account, no API key, no cookies and no proxy.

#### How many articles can I get?

As many as Google News has for your searches: set `maxArticles` to any number, or `0` for no limit, and add a date range to cover a longer period. A popular search can return 100 articles for each day.

#### Why did I get fewer articles than `maxArticles`?

The search has fewer results in that period, some articles were already saved from another query (`dedupe`), the date range left some out, or the run reached its maximum cost. `RUN_SUMMARY` shows the count for each query and topic.

#### How do I get only new articles?

Schedule the scraper and set `dateFrom` to the interval between runs, for example `1 day` for a daily run or `1 hour` for an hourly one. The `when:1d` operator in a query does the same.

#### Which countries and languages are available?

All 89 Google News editions: 72 countries, several with more than one language (United States: English and Spanish; Canada: English and French; India: English, Hindi, Bengali, Gujarati, Malayalam, Marathi, Punjabi, Tamil, Telugu; and more).

#### Can I get the full text of every article?

Turn on `includeFullText`. The text is read from the publisher's page, so paywalled sites and sites that refuse automated visits give no text; you pay for text only when it was found.

#### Can I limit how much a run costs?

Yes. Set the maximum cost per run when you start it: the scraper saves articles until the next one would go over that amount, then stops.

### Other scrapers by Social Scrapers

| Scraper | What it gets |
| --- | --- |
| [TikTok API](https://apify.com/socialscrapers/tiktok-api) | Profiles, Videos and Comments |
| [TikTok Comments Scraper](https://apify.com/socialscrapers/tiktok-comments-scraper) | Comments, Replies and Likes |
| [TikTok Hashtag Scraper](https://apify.com/socialscrapers/tiktok-hashtag-scraper) | Top Videos, Views and Likes |
| [TikTok Profile Scraper](https://apify.com/socialscrapers/tiktok-profile-scraper) | Followers, Bio, Stats and Videos |
| [TikTok Scraper](https://apify.com/socialscrapers/tiktok-scraper) | Videos, Profiles, Hashtags and Comments |
| [TikTok Sound Scraper](https://apify.com/socialscrapers/tiktok-sound-scraper) | Videos Using a Sound and Music Info |
| [TikTok Video Scraper](https://apify.com/socialscrapers/tiktok-video-scraper) | Views, Likes, Captions and Comments |
| [Instagram API](https://apify.com/socialscrapers/instagram-api) | Profiles, Posts, Reels, Comments and Hashtags |
| [Instagram Comments Scraper](https://apify.com/socialscrapers/instagram-comments-scraper) | Comments, Likes and Reply Counts |
| [Instagram Hashtag Scraper](https://apify.com/socialscrapers/instagram-hashtag-scraper) | Reels and Keyword Search |
| [Instagram Post Details Scraper](https://apify.com/socialscrapers/instagram-post-details-scraper) | Likes, Comments, Views and Media |
| [Instagram Post Scraper](https://apify.com/socialscrapers/instagram-post-scraper) | Posts, Reels and Comments |
| [Instagram Profile Scraper](https://apify.com/socialscrapers/instagram-profile-scraper) | Followers, Bio, Posts and Reels |
| [Instagram Reels Scraper](https://apify.com/socialscrapers/instagram-reels-scraper) | Reels, Plays, Likes and Comments |
| [Instagram Reels Transcript Scraper](https://apify.com/socialscrapers/instagram-reels-transcript-scraper) | Speech to Text and Captions |
| [Instagram Scraper](https://apify.com/socialscrapers/instagram-scraper) | Posts, Profiles, Reels, Comments and Hashtags |
| [YouTube API](https://apify.com/socialscrapers/youtube-api) | Videos, Transcripts, Search, Channels and Comments |
| [YouTube Channel Scraper](https://apify.com/socialscrapers/youtube-channel-scraper) | Videos, Shorts, Subscribers and About |
| [YouTube Comments Scraper](https://apify.com/socialscrapers/youtube-comments-scraper) | Comments, Replies and Likes |
| [YouTube Scraper](https://apify.com/socialscrapers/youtube-scraper) | Videos, Shorts, Channels and Comments |
| [YouTube Search Scraper](https://apify.com/socialscrapers/youtube-search-scraper) | Videos, Channels, Views and Filters |
| [YouTube Shorts Scraper](https://apify.com/socialscrapers/youtube-shorts-scraper) | Shorts, Views, Likes and Search |
| [YouTube Transcript Scraper](https://apify.com/socialscrapers/youtube-transcript-scraper) | Subtitles, Captions and SRT |
| [YouTube Video Details Scraper](https://apify.com/socialscrapers/youtube-video-details-scraper) | Stats, Subtitles and Comments |
| [Facebook Ads Library Scraper](https://apify.com/socialscrapers/facebook-ads-library-scraper) | Meta Ad Library and Spend |
| [Facebook Comments Scraper](https://apify.com/socialscrapers/facebook-comments-scraper) | Posts, Reels, Videos and Replies |
| [Facebook Groups Scraper](https://apify.com/socialscrapers/facebook-groups-scraper) | Public Group Posts and Reactions |
| [Facebook Marketplace Scraper](https://apify.com/socialscrapers/facebook-marketplace-scraper) | Prices, Locations and Sellers |
| [Facebook Page Contact Info Scraper](https://apify.com/socialscrapers/facebook-page-contact-scraper) | Email, Phone and WhatsApp |
| [Facebook Posts Scraper](https://apify.com/socialscrapers/facebook-profile-posts-scraper) | Pages, Profiles and Timelines |
| [Facebook Pages Scraper](https://apify.com/socialscrapers/facebook-profile-scraper) | Profiles, Contact Info and Reviews |
| [Facebook Reels Scraper](https://apify.com/socialscrapers/facebook-reels-scraper) | Reels, Videos, Plays and Captions |
| [X (Twitter) Profile Scraper](https://apify.com/socialscrapers/x-profile-scraper) | Followers, Bio and Tweets |
| [X (Twitter) Tweet Scraper](https://apify.com/socialscrapers/x-tweet-scraper) | Latest Posts by Profile |
| [Threads Profile Scraper](https://apify.com/socialscrapers/threads-profile-scraper) | Followers, Bio, Links and Posts |
| [Threads Replies Scraper](https://apify.com/socialscrapers/threads-replies-scraper) | Comments, Authors, Likes and Media |
| [Threads Scraper](https://apify.com/socialscrapers/threads-scraper) | Posts, Profiles, Replies and Search |
| [Threads Search Scraper](https://apify.com/socialscrapers/threads-search-scraper) | Keywords, Hashtags, Top and Recent Posts |
| [Reddit Comments Scraper](https://apify.com/socialscrapers/reddit-comments-scraper) | Threads, Replies, Votes and Authors |
| [Reddit Scraper](https://apify.com/socialscrapers/reddit-scraper) | Posts, Comments, Subreddits, Users and Search |
| [Reddit Search Scraper](https://apify.com/socialscrapers/reddit-search-scraper) | Posts by Keyword, Subreddit and Date |
| [Reddit User Scraper](https://apify.com/socialscrapers/reddit-user-scraper) | Profiles, Karma, Posts and Comments |
| [Subreddit Scraper](https://apify.com/socialscrapers/subreddit-scraper) | Hot, New and Top Posts with Comments |
| [Quora Scraper](https://apify.com/socialscrapers/quora-scraper) | Answers, Questions, Profiles and Topic Search |
| [LinkedIn Ad Library Scraper](https://apify.com/socialscrapers/linkedin-ad-library-scraper) | Ads, Advertisers and Impressions |
| [LinkedIn Job Search Scraper](https://apify.com/socialscrapers/linkedin-job-search-scraper) | Filters, Salaries and New Jobs |
| [LinkedIn Jobs Scraper](https://apify.com/socialscrapers/linkedin-jobs-scraper) | Job Listings, Salaries and Companies |
| [Google Maps Email Extractor](https://apify.com/socialscrapers/google-maps-email-extractor) | Emails, Phones and Social Links |
| [Google Maps Scraper](https://apify.com/socialscrapers/google-maps-scraper) | Places, Phones, Websites, Ratings and Hours |
| [Google Ads Transparency Scraper](https://apify.com/socialscrapers/google-ads-transparency-scraper) | Ad Creatives and Advertisers |
| [Amazon Product Scraper](https://apify.com/socialscrapers/amazon-product-scraper) | Search Results, Prices, Ratings, ASINs |
| [Indeed Jobs Scraper](https://apify.com/socialscrapers/indeed-jobs-scraper) | Salaries, Full Descriptions, Company Data |
| [Contact Details Scraper](https://apify.com/socialscrapers/contact-details-scraper) | Emails, Phones and Social Links |
| [Telegram Channel Scraper](https://apify.com/socialscrapers/telegram-channel-scraper) | Posts, Views and Media |
| [Doximity Scraper](https://apify.com/socialscrapers/doximity-physician-scraper) | Physician Profiles and Doctor Directory |
| [KevinMD Scraper](https://apify.com/socialscrapers/kevinmd-articles-scraper) | Physician Articles and Author Specialties |
| [Op-Med Scraper](https://apify.com/socialscrapers/opmed-articles-scraper) | Physician Essays and Doctor Profiles |
| [Career Site Jobs Scraper](https://apify.com/socialscrapers/career-site-jobs-scraper) | Greenhouse, Lever, Ashby and Workday |
| [Google Trends Scraper](https://apify.com/socialscrapers/google-trends-scraper) | Interest Over Time, Regions and Queries |

# Actor input Schema

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

What to search Google News for, one query per line. Google News search operators work: <code>"exact phrase"</code>, <code>OR</code>, <code>-exclude</code>, <code>site:reuters.com</code>, <code>intitle:tesla</code>, <code>when:7d</code> (last 7 days; also <code>when:12h</code>, <code>when:1y</code>), <code>after:2025-01-01</code>, <code>before:2025-02-01</code>.

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

Google News sections to collect: Top stories (the headlines), World, Nation (the country’s national news), Business, Technology, Entertainment, Science, Sports, Health. Each one is read for the country and language below.

## `startUrls` (type: `array`):

Links copied from news.google.com: a topic page (<code>https://news.google.com/topics/...</code>), a search, local news, or a Google News RSS feed. For one publication, search with <code>site:example.com</code> instead. A link’s own country and language (hl, gl, ceid) are kept; without them the ones below apply.

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

Places to collect local news for, one per line: a city, region or country as you would type it on Google News, e.g. <code>London</code>, <code>Austin, Texas</code>, <code>Bavaria</code>.

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

The Google News edition to read: the country whose news and sources you get. Searches, topics and local news use it; a link keeps its own.

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

The edition’s language. Leave empty for the country’s main language. Countries with more than one: BE: fr, nl; CA: en, fr; IN: en, hi, bn, gu, ml, mr, pa, ta, te; ID: id, en; IL: he, en; LV: lv, en; MY: en, ms; CH: de, fr; UA: uk, ru; US: en, es-419.

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

Only articles published on or after this date. Pick a date or an age, or type one: a date (<code>2026-01-31</code>, <code>31/01/2026</code>, <code>Jan 31 2026</code>; a UTC day), a date-time (<code>2026-01-31T18:00:00Z</code>), or an age such as <code>12 hours</code>, <code>7 days</code>, <code>2w</code>, <code>6 months</code> or <code>yesterday</code>. Leave empty for no lower limit.

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

Only articles published on or before this date (the whole UTC day is included): a date (<code>2026-01-31</code>, <code>31/01/2026</code>, <code>Jan 31 2026</code>) or an age such as <code>7 days</code>. Leave empty for no upper limit.

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

The most articles to collect for each query, topic, link and location. 0 = no limit. Google News returns about 100 articles per search; above that, a search is collected day by day back through the date range (the last 12 months when no start date is set) to find more. Topics, links and local news give what their page lists (about 30 to 100).

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

Find each article’s URL on the publisher’s site (the url field), not only its Google News link. Turn off for faster runs when the Google News link is enough. Always on with full text.

## `includeFullText` (type: `boolean`):

Open each article on the publisher’s site and add its main text, authors, published and updated dates, image and description. Charged as an extra event per article whose text was found. Some publishers refuse automated visits or sit behind a paywall; those articles keep their other fields and say why in fullTextError.

## `dedupe` (type: `boolean`):

Save each article once, even when several queries or topics find it (the first one that finds it is kept). Turn off to keep every match.

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

Not needed: the Actor connects directly and switches to Apify Proxy on its own if Google ever refuses it.

## Actor input object example

```json
{
  "queries": [
    "artificial intelligence",
    "\"electric vehicles\" when:7d",
    "site:bbc.com climate"
  ],
  "topics": [
    "TOP_STORIES",
    "BUSINESS"
  ],
  "startUrls": [
    {
      "url": "https://news.google.com/topics/CAAqJggKIiBDQkFTRWdvSUwyMHZNRGRqTVhZU0FtVnVHZ0pWVXlnQVAB?hl=en-US&gl=US&ceid=US%3Aen"
    }
  ],
  "locations": [
    "London",
    "Austin, Texas"
  ],
  "country": "US",
  "maxArticles": 100,
  "resolveUrls": true,
  "includeFullText": false,
  "dedupe": true,
  "proxyConfiguration": {
    "useApifyProxy": false
  }
}
```

# 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"
    ],
    "proxyConfiguration": {
        "useApifyProxy": false
    }
};

// Run the Actor and wait for it to finish
const run = await client.actor("socialscrapers/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"],
    "proxyConfiguration": { "useApifyProxy": False },
}

# Run the Actor and wait for it to finish
run = client.actor("socialscrapers/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"
  ],
  "proxyConfiguration": {
    "useApifyProxy": false
  }
}' |
apify call socialscrapers/google-news-scraper --silent --output-dataset

```

## MCP server setup

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