mcpField
G
Google News (via Apify)

Google News (via Apify)

リモート
apify.com検索03 週間前に更新
リポジトリ公式サイト

Google News (via Apify) について

Google News Scraperは、話題や企業、キーワードを追跡する調査担当者やAIエージェント向けのApify Actorです。見出し、媒体、日付、スニペット、記事URLを返し、期間指定や定期実行での新着のみの取得に対応します。

主な機能

  1. 01見出し、媒体、日付、概要、URL
  2. 02過去1時間から1年までの期間指定
  3. 03関連度または日付順の並べ替え
  4. 04任意の国と言語に対応
  5. 05定期実行で新着記事のみ取得

活用シーン

  1. 01企業や話題に関する報道を追跡
  2. 02キーワードの新着記事を定期取得

MCP 対応

Apifyのホスト型MCPサーバーがニュース検索をAIエージェント向けのツールとして公開します。ローカルのMCP設定にも対応しています。

設定

リモートサーバーはインストール不要です。クライアントを選んで設定をコピーするか、ワンクリックで導入できます。

エンドポイントhttps://mcp.apify.com/?tools=automationnation/google-news-scraper
インストールコマンドをコピー
Claude CodeTerminal
Cursor.cursor/mcp.json
VS Code.vscode/mcp.json
Claude Desktopclaude_desktop_config.json
Windsurf~/.codeium/windsurf/mcp_config.json

コマンドはターミナルで実行し、JSON は各クライアントの MCP 設定に貼り付けて再起動します。認可が必要なサーバーは初回接続時にログインを求めます。

すべてのエンドポイント
Streamable HTTPhttps://mcp.apify.com/?tools=automationnation/google-news-scraper認証が必要

ツール

詳細

Google News スクレイパー&API:記事、情報源、日付

Apify で実行

Google News Scraper は Apify Actor です。トピック、企業、キーワードを指定すると、見出し、情報源、公開日、スニペット、記事 URL を含む Google News の検索結果を返します。過去 1 時間から過去 1 年までの期間フィルター、日付順の並べ替え、国と言語の指定に対応し、検索 1 回あたり最大 300 件の記事を取得できます。料金は記事 1,000 件あたり $1 です。

**料金:**記事 1,000 件あたり $1(Gold 以上では $0.80) · 実行:https://apify.com/automationnation/google-news-scraper · ガイド:https://retracn.github.io/automationnation-actors/google-news-scraper/

基本情報

  • 記事ごとに 1 行:見出し、スニペット、情報源、公開時刻(ISO 形式)、配信元の記事 URL。
  • 期間フィルター:過去 1 時間、1 日、1 週間、1 か月、1 年。関連度または日付順で並べ替えられます。
  • 任意の国と言語を指定でき、検索 1 回あたり最大 300 件の記事を取得できます。
  • モニタリング:「新しい結果のみ」をオンにすると、スケジュール実行で過去の実行時にはなかった記事のみが返されます(コードで利用できる Google Alerts フィードです)。ガイド:https://retracn.github.io/automationnation-actors/guides/google-alerts-api/
  • 料金:記事 1,000 件あたり $1。毎月の無料クレジット $5 で、記事 5,000 件を取得できます。

入力例

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

コードから実行する

REST API

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 — examples/python_example.py を参照してください

# pip install apify-client
from 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 — examples/node_example.mjs を参照してください

// npm install apify-client
import { 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);

AI エージェントで使用する(MCP)

ホスト型 MCP サーバー URL(Claude、ChatGPT、Cursor、およびリモート MCP に対応するその他のクライアント向け):

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

Claude Desktop / Cursor 用のローカル設定 — mcp/claude_desktop_config.json:

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

よくある質問

Google News の公式 API はありますか? いいえ。Google は数年前に Google News API を終了しました。Apify の Google News Scraper は、Apify の API、クライアント、MCP を通じて Google News の検索結果をデータとして返します。

記事の全文を取得できますか? 取得できるのは見出し、スニペット、情報源、日付、URL です。全文を取得するには、URL をコンテンツクローラーに渡してください。

Google Alerts API はありますか? いいえ。Google Alerts はメールまたは RSS でのみ届きます。この Actor で「新しい結果のみ」をオンにしてスケジュール実行すると、検索内容に関する新着記事を JSON、Slack、Sheets、または Webhook で取得できます。

AutomationNation のその他の情報


このリポジトリには使用例が含まれています。スクレイパー自体はApify プラットフォームで実行されます。無料の Apify アカウントと API トークンが必要です。使用例は MIT ライセンスで公開されています。

コメント

MCP は初めてですか?

プロトコルの概要から最初のサーバーの導入まで、よくある疑問にまとめて答えます。

AI アプリケーションが外部のツールやデータソースに統一的な方法で接続するためのオープンなプロトコルです。クライアントはモデルとの対話を担い、MCP サーバーはツール・リソース・プロンプトテンプレートを提供します。標準メッセージでやり取りするため、1 つのサーバーを複数のクライアントで再利用できます。