Google News (via Apify)

io.github.retracnv1.0.0更新于 Oct 5, 2026

Google News for AI agents: headlines, sources, dates and article URLs, with time filters.

已验证Streamable HTTP可网页运行Web Search & ScrapingMedia & Design

概览

AI 生成的概览

让助手通过 Apify 搜索 Google 新闻,返回标题、来源、日期和文章链接,并支持时间筛选。

功能
这个远程 MCP 服务器封装了一个 Apify Actor,可按任意主题、公司或关键词查询 Google 新闻。每条结果包含标题、摘要、来源、ISO 格式的发布时间以及发布者的文章链接。搜索支持从过去一小时到过去一年的时间筛选、按相关度或日期排序、任意国家和语言,每次搜索最多 300 篇文章。它只返回元数据和链接,不返回文章全文。
适用场景
当助手需要某主题、公司或关键词的最新新闻报道、来源追踪或带日期的标题时使用。适合研究、监测和简报类任务,尤其是文章链接和发布时间比全文更重要时。
运行要求
需要网络访问 mcp.apify.com 上的远程 MCP 端点。必须提供 Apify API 令牌,通过 Authorization 请求头以 Bearer 令牌形式发送;免费 Apify 账户即可获取。按返回的文章数量计费。
安装前请注意
Authorization 请求头携带 Apify API 令牌,应视为机密,避免在共享配置或日志中泄露。搜索会消耗付费 Apify 额度,价格为每 1,000 篇文章 1 美元,每月有 5 美元免费额度。查询和结果会经 Apify 与 Google 新闻处理,请避免提交敏感关键词。

安装

在 SourceWeft 中

  1. 打开 控制台中的 Google News (via Apify),将其添加到工作区。
  2. 为需要使用其工具的对话启用该服务。

Web executable,通过 Streamable HTTP。 远程服务在工作区中配置后即可从网页运行时运行。

其他 MCP 客户端

把它添加到你客户端的 mcpServers 配置中。

{
  "mcpServers": {
    "google-news": {
      "type": "http",
      "url": "https://mcp.apify.com/?tools=automationnation/google-news-scraper"
    }
  }
}

README

Google News Scraper & API: articles, sources and dates

[Run on Apify]

Google News Scraper is an Apify Actor that returns Google News results for any topic, company or keyword: headline, source, publish date, snippet and the article URL, with time filters (past hour to past year), sort by date and any country and language, up to 300 articles per search, at $1 per 1,000 articles.

Price: $1 per 1,000 articles ($0.80 on Gold and above) · Run it: https://apify.com/automationnation/google-news-scraper · Guide: https://retracn.github.io/automationnation-actors/google-news-scraper/

Quick facts

  • One row per article: headline, snippet, source, publish time (ISO) and the publisher's article URL.
  • Time filters: past hour, day, week, month or year; sort by relevance or date.
  • Any country and language, up to 300 articles per search.
  • Price: $1 per 1,000 articles; the free $5 monthly credit covers 5,000 articles.

Example input

json
{  "queries": [    "apple earnings"  ],  "time": "week",  "maxResultsPerQuery": 30}

Run it from code

REST API

bash
curl -X POST "https://api.apify.com/v2/acts/automationnation~google-news-scraper/run-sync-get-dataset-items?token=$APIFY_TOKEN" \  -H "Content-Type: application/json" \  -d '{"queries": ["apple earnings"], "time": "week", "maxResultsPerQuery": 30}'

Python — see examples/python_example.py

python
# pip install apify-clientfrom apify_client import ApifyClient
client = ApifyClient("YOUR_APIFY_TOKEN")run = client.actor("automationnation/google-news-scraper").call(run_input={  "queries": [    "apple earnings"  ],  "time": "week",  "maxResultsPerQuery": 30})for item in client.dataset(run["defaultDatasetId"]).iterate_items():    print(item.get("title"), item.get("source"), item.get("publishedAt"), item.get("url"))

JavaScript — see examples/node_example.mjs

js
// npm install apify-clientimport { ApifyClient } from 'apify-client';
const client = new ApifyClient({ token: 'YOUR_APIFY_TOKEN' });const run = await client.actor('automationnation/google-news-scraper').call({  "queries": [    "apple earnings"  ],  "time": "week",  "maxResultsPerQuery": 30});const { items } = await client.dataset(run.defaultDatasetId).listItems();for (const item of items) console.log(item.title, item.source, item.publishedAt, item.url);

Use it with AI agents (MCP)

Hosted MCP server URL (Claude, ChatGPT, Cursor and other clients with remote MCP support):

https://mcp.apify.com?tools=automationnation/google-news-scraper

Local config for Claude Desktop / Cursor — mcp/claude_desktop_config.json:

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

FAQ

Is there an official Google News API? No. Google retired the Google News API years ago. Google News Scraper on Apify returns Google News results as data through Apify's API, clients and MCP.

Do I get the full article text? You get the headline, snippet, source, date and URL; pass the URLs to a content crawler for full text.

More from AutomationNation


This repository holds usage examples. The scraper itself runs on the Apify platform; you need a free Apify account and API token. Examples are MIT licensed.

来源:README.md,提交 7679956

工具

0
工具元数据尚未被收录。

版本历史

1
  1. v1.0.0最新Oct 5, 2026