google-news-api
Google News API in Python and JavaScript: search news by keyword, topic or URL with real publisher URLs and only-new monitoring.
Search Google News by keyword, topic or URL in 80+ country editions and get clean JSON with the real publisher URL (not the news.google.com/rss/articles/... redirect), source and date. Go past the 100-results limit, and switch on monitor mode to receive only the articles that appeared since your last run. A hosted alternative to pygooglenews and GNews. Powered by the google-news-scraper actor on Apify. No browser, no account on Google. 1. Create a free Apify account and copy your API token from Settings → Integrations. 2.
Summary extracted from the README.
Google News API – working examples in Python, JavaScript and n8n
Search Google News by keyword, topic or URL in 80+ country editions and get clean JSON with the real publisher URL (not the news.google.com/rss/articles/... redirect), source and date. Go past the 100-results limit, and switch on monitor mode to receive only the articles that appeared since your last run. A hosted alternative to pygooglenews and GNews.
Powered by the google-news-scraper actor on Apify. No browser, no account on Google.
Example output (real result, shortened)
{
"title": "Nvidia Requires Cloud Clients to Limit Business With Chinese Customers",
"source": "marketscreener.com",
"url": "https://www.marketscreener.com/news/nvidia-requires-cloud-clients-to-limit-business-with-chinese-customers-ce785fd9de81ff21",
"googleNewsUrl": "https://news.google.com/rss/articles/CBMiwAFBVV95cUxOUzROYnFu...?oc=5",
"publishedAt": "2026-11-03T09:23:19.000Z",
"metadata": {
"keyword": "nvidia",
"sourceType": "keyword",
"timeframe": "7d",
"regionLanguage": "US:en",
"origin": "google-news"
}
}
Quickstart (3 steps)
- Create a free Apify account and copy your API token from Settings → Integrations.
- Put it in an environment variable (never in code):
export APIFY_TOKEN=your_token - Run the example:
pip install -r python/requirements.txt
python python/example.py "openai" "nvidia" --timeframe 7d --region GB:en
JavaScript: cd js && npm install && node example.mjs openai nvidia
Examples
Python (pip install "apify-client<2")
import os
from apify_client import ApifyClient
client = ApifyClient(os.environ["APIFY_TOKEN"])
run = client.actor("lagenuina_agency/google-news-scraper").call(run_input={
"keywords": ["openai"],
"timeframe": "7d",
"maxArticles": 50,
})
for item in client.dataset(run["defaultDatasetId"]).iterate_items():
print(item["publishedAt"], item["source"], item["title"], item["url"])
JavaScript / Node.js (npm install apify-client)
import { ApifyClient } from 'apify-client';
const client = new ApifyClient({ token: process.env.APIFY_TOKEN });
const run = await client.actor('lagenuina_agency/google-news-scraper').call({ keywords: ['openai'], timeframe: '7d', maxArticles: 50 });
const { items } = await client.dataset(run.defaultDatasetId).listItems();
console.log(items);
cURL / any language – one HTTP call, results in the response:
curl -X POST "https://api.apify.com/v2/acts/lagenuina_agency~google-news-scraper/run-sync-get-dataset-items" \
-H "Authorization: Bearer $APIFY_TOKEN" \
-H "Content-Type: application/json" \
-d '{"topics": ["BUSINESS"], "region_language": "GB:en", "maxArticles": 20}'
All input fields are documented on the actor page (Input tab).
Use case: news alerts with only new articles
python/example.py writes the articles to news_<date>.csv. Add --only-new and each run returns only what was not returned before, so you can schedule it with cron and pay for new articles only. Use a separate monitorStoreName in the input for each independent monitor.
n8n workflow
n8n/workflow.json: every hour → run the actor with onlyNew: true → format each new article → post it to a Slack webhook.
- In n8n: Workflows → Import from File and pick
n8n/workflow.json. - Create a Header Auth credential named
Apify API tokenwith nameAuthorizationand valueBearer <your token>, and select it in the Run Apify actor node. - Edit the JSON body (your keywords) and the Slack webhook URL, then activate.
The run-sync-get-dataset-items endpoint waits up to 300 s; for bigger runs use /runs plus a webhook.
Use with AI agents (MCP)
Give Claude, ChatGPT, Cursor or any MCP client this actor as a tool:
https://mcp.apify.com/?actors=lagenuina_agency/google-news-scraper
Example config (Claude Desktop, Cursor, VS Code):
{
"mcpServers": {
"google-news-scraper": {
"url": "https://mcp.apify.com/?actors=lagenuina_agency/google-news-scraper"
}
}
}
Sign in with Apify OAuth when asked, or send Authorization: Bearer <APIFY_TOKEN>.
Pricing
Per 1,000 articles, publisher URL included, platform usage included, no start fee:
| Apify plan | Price per 1,000 articles |
|---|---|
| Free | $2.00 |
| Bronze | $1.80 |
| Silver | $1.50 |
| Gold, Platinum, Diamond | $0.80 |
See lagenuina_agency/google-news-scraper.
More tools from Quelli di Carne Genuina
- Ad intelligence: Google Ads Transparency · Meta Ad Library · LinkedIn Ad Library
- Competitor & SEO research: Google Trends · Google Play
- Travel prices: Google Hotels · Google Flights
- Content data: YouTube Transcript · Medium
All actors: apify.com/lagenuina_agency · Tutorials: assa83.github.io
Disclaimer
Independent, not affiliated with Google (not endorsed by Google LLC). It reads only publicly available data. Use it in line with the applicable terms and laws.
License
MIT © Quelli di Carne Genuina