Google Trends (via Apify) について
Google Trends Scraperは、開発者やAIエージェント向けに検索トレンドを取得するApify Actorです。過去の関心度、地域別データ、関連クエリ、現在の急上昇検索を提供し、条件指定や語句比較にも対応します。
主な機能
- 01関心度の推移とトレンド変化
- 02国・州・都市別データ
- 03人気および上昇中の関連クエリ
- 04増加率と検索量を含む急上昇検索
- 05地域・期間・検索種別の指定と語句比較
活用シーン
- 01キーワードへの関心度を追跡
- 02語句ごとの検索需要を比較
- 03国別の新しい検索動向を監視
- 04AIエージェントにトレンドデータを提供
MCP 対応
Apifyのホスト型MCPサーバーを通じて公開され、MCPクライアントからGoogle Trends Scraper Actorを呼び出せます。
設定
リモートサーバーはインストール不要です。クライアントを選んで設定をコピーするか、ワンクリックで導入できます。
https://mcp.apify.com/?tools=automationnation/google-trends-scraperclaude mcp add --transport http retracn-google-trends https://mcp.apify.com/?tools=automationnation/google-trends-scraper{"mcpServers":{"retracn-google-trends":{"type":"http","url":"https://mcp.apify.com/?tools=automationnation/google-trends-scraper"}}}Cursor で開く{"servers":{"retracn-google-trends":{"type":"http","url":"https://mcp.apify.com/?tools=automationnation/google-trends-scraper"}}}VS Code で開く{"mcpServers":{"retracn-google-trends":{"type":"http","url":"https://mcp.apify.com/?tools=automationnation/google-trends-scraper"}}}{"mcpServers":{"retracn-google-trends":{"serverUrl":"https://mcp.apify.com/?tools=automationnation/google-trends-scraper"}}}コマンドはターミナルで実行し、JSON は各クライアントの MCP 設定に貼り付けて再起動します。認可が必要なサーバーは初回接続時にログインを求めます。
https://mcp.apify.com/?tools=automationnation/google-trends-scraper認証が必要ツール
詳細
Google Trends スクレイパー&API:キーワードのトレンドと急上昇中の検索
Google Trends Scraper は Apify Actor です。任意のキーワードや地域について、Google Trends のデータ(時間の経過に伴う関心度、地域別・都市別の関心度、上昇中および上位の関連クエリ、任意の国の急上昇中の検索)を、キーワードレポート 1,000 件あたり 1 ドルで取得します。Google Trends API として利用でき、コードから呼び出したり、トレンドアラート用にスケジュールを設定したり、Apify の MCP サーバー経由で AI エージェントに利用させたりできます。
**料金:**キーワードレポート 1,000 件あたり 1 ドル(有料プランでは 0.27~0.90 ドル)・急上昇中の検索 1,000 件あたり 0.50 ドル · 実行: https://apify.com/automationnation/google-trends-scraper · ガイド: https://retracn.github.io/automationnation-actors/google-trends-scraper/
基本情報
- キーワードごとに 1 行を出力します。日付、トレンドの方向と変化率、ピーク日、1 文の概要、国/州/都市別の関心度、成長率と Breakout フラグを含む上位および上昇中の関連クエリを確認できます。
- pytrends からの移行をお考えですか?オープンソースの pytrends-cloud パッケージ(github.com/retracn/pytrends-cloud)は pytrends の TrendReq インターフェースを維持し、この Actor 上で動作します。インポートを 1 か所変更するだけで、429 エラーが発生しなくなります。
- 任意の国の急上昇中の検索に対応します。検索ボリューム、成長率、開始時刻、関連検索、ニュース記事を取得できます。「新しいトレンドのみ」モードを使うと、スケジュール実行をアラートとして利用できます。
- Google Trends と同様に最大 5 個の語句を比較できます。また、共通の基準語句を使って尺度を再調整すれば、任意の数の語句を同じ尺度で比較できます。
- Google Trends のすべてのオプションに対応します。任意の国または地域、過去 1 時間から 2004 年~現在まで、またはカスタム日付、カテゴリ、ウェブ/画像/ニュース/YouTube/ショッピング検索を指定できます。キーワード、Google Trends の URL、または Google スプレッドシートから入力できます。
- 料金:Free プランではキーワードレポート 1,000 件あたり 1 ドル、急上昇中の検索 1,000 件あたり 0.50 ドル(有料プランでは割安)。検索ボリュームが少なすぎるキーワードは無料です。Apify の毎月の無料クレジット 5 ドルで、キーワードレポートを約 5,000 件取得できます。
- apify/google-trends-scraper と同じ入力フィールドに対応し、各行にはその Actor の出力フィールドもすべて含まれます。
- Node.js をお使いですか?オープンソースの google-trends-api-cloud パッケージ(github.com/retracn/google-trends-api-cloud)は google-trends-api npm の API と JSON を維持し、この Actor 上で動作します。dailyTrends と realTimeTrends が再び使えるようになります。
入力例
{
"searchTerms": [
"chatgpt",
"gemini",
"claude ai"
],
"geo": "US",
"timeRange": "today 12-m"
}
コードから実行する
REST API
curl -X POST "https://api.apify.com/v2/acts/automationnation~google-trends-scraper/run-sync-get-dataset-items?token=$APIFY_TOKEN" \
-H "Content-Type: application/json" \
-d '{"searchTerms": ["chatgpt", "gemini", "claude ai"], "geo": "US", "timeRange": "today 12-m"}'
Python — examples/python_example.py を参照してください
# pip install apify-client
from apify_client import ApifyClient
client = ApifyClient("YOUR_APIFY_TOKEN")
run = client.actor("automationnation/google-trends-scraper").call(run_input={
"searchTerms": [
"chatgpt",
"gemini",
"claude ai"
],
"geo": "US",
"timeRange": "today 12-m"
})
for item in client.dataset(run["defaultDatasetId"]).iterate_items():
print(item.get("searchTerm"), item.get("trendDirection"), item.get("changePercent"), item.get("summary"))
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-trends-scraper').call({
"searchTerms": [
"chatgpt",
"gemini",
"claude ai"
],
"geo": "US",
"timeRange": "today 12-m"
});
const { items } = await client.dataset(run.defaultDatasetId).listItems();
for (const item of items) console.log(item.searchTerm, item.trendDirection, item.changePercent, item.summary);
AI エージェントで利用する(MCP)
ホスト型 MCP サーバーの URL(Claude、ChatGPT、Cursor、およびリモート MCP に対応するその他のクライアント向け):
https://mcp.apify.com?tools=automationnation/google-trends-scraper
Claude Desktop/Cursor 用のローカル設定 — mcp/claude_desktop_config.json:
{
"mcpServers": {
"google-trends-scraper": {
"command": "npx",
"args": [
"-y",
"@apify/actors-mcp-server",
"--tools",
"automationnation/google-trends-scraper"
],
"env": {
"APIFY_TOKEN": "YOUR_APIFY_TOKEN"
}
}
}
}
よくある質問
公式の Google Trends API はありますか? Google は 2025 年に、少数のアルファテスター向けに公式の Google Trends API を公開しました。それ以外の方は、Apify の Google Trends Scraper を利用すると、Apify の REST API、Python および JavaScript クライアント、インテグレーション、MCP を通じて Google Trends のデータを取得できます。
Google Trends Scraper はどのようなデータを返しますか? 各キーワードについて、時系列での人気度(日付付きの 0~100)、トレンドの方向、変化率、ピークの日付、1 文の概要、地域および都市別の人気度、関連する検索キーワードの上位および急上昇データを返します。「現在トレンド」の行には、検索ボリューム、成長率、開始時刻、関連する検索キーワード、ニュース記事が含まれます。
5 個を超えるキーワードを比較できますか? はい。「すべての検索語句を同じスケールで比較」を使用すると、検索語句は共通の基準語句を中心にまとめて処理され、再スケーリングされるため、任意の数の検索語句を 0~100 の同じスケールで比較できます。
料金はいくらですか? Apify の Free プランでは、キーワードレポート 1,000 件あたり 1 ドル、トレンド検索 1,000 件あたり 0.50 ドルです。有料プランではさらに安くなります。検索ボリュームが十分でないキーワードと、失敗した検索は無料です。
apify/google-trends-scraper から切り替えられますか? はい。入力(searchTerms、isMultiple、timeRange、customTimeRange、geo、category、startUrls、spreadsheetId、maxItems)はそのままにして、Actor ID を変更してください。行には、より明確なフィールド名と並んで、従来の Actor のフィールド名も保持されます。
AutomationNation のその他の情報
- AI Visibility Tracker — チェックした回答1件あたり$0.05(Goldでは$0.04)+オプションのレポート1件あたり$0.50 · GitHubの例
- Google Jobs Scraper — 求人1,000件あたり$2(有料プランでは$1.50)+検索1件あたり$0.03 · GitHubの例
- YouTube Transcript Scraper — 文字起こし1,000件あたり$1.50(Gold以上では$1.20) · GitHubの例
- Google Shopping Scraper — 商品1,000件あたり$1(Gold以上では$0.80) · GitHubの例
- Google Flights Scraper — フライト1,000件あたり$0.20(Gold以上では$0.16) · GitHubの例
- Google Hotels Scraper — ホテル1,000件あたり$1(Gold以上では$0.80) · GitHubの例
- Google Ads Transparency Scraper — 広告1,000件あたり$1(Gold以上では$0.80) · GitHubの例
- Google News Scraper — 記事1,000件あたり$1(Gold以上では$0.80) · GitHubの例
- Google Images Scraper — 画像1,000件あたり$0.25(Gold以上では$0.20) · GitHubの例
- Google Custom Search API Alternative — 最大10件の結果を返す検索1,000件あたり$5(Gold以上では$4) · GitHubの例
- Google Videos Scraper — 動画1,000件あたり$1(Gold以上では$0.80) · GitHubの例
- App Store Reviews Scraper — レビュー1,000件あたり$0.08(有料プランでは$0.05~$0.07) · GitHubの例
- Google Play Reviews Scraper — レビュー1,000件あたり$0.08(有料プランでは$0.05~$0.07) · GitHubの例
- AEO & GEO Tracker — Google AI Overview Citation Checker — キーワード1件あたり$0.04(Goldでは$0.032)、2026年11月17日から実行1回あたり$2が追加されます。2026年10月16日まではキーワード1件あたり$0.01 · GitHubの例
- Google Maps Leads Scraper — リード1件あたり$0.03(Goldでは$0.024)。ウェブサイトなし、または未登録のフィルターで見つかった企業1社あたり$0.08 · GitHubの例
- Google Maps Leads Scraper UK — リード1件あたり$0.05(Goldでは$0.04) · GitHubの例
- App Store & Google Play Reviews Scraper + AI — アプリのレポート1件あたり$0.05(Goldでは$0.04) · GitHubの例
- UK Companies House Leads — Filing Signals & AI Outreach — リード1件あたり$0.008
- Contact Waterfall Enrichment — Emails & Directors — 企業1社あたり$0.015
- すべてのActorとガイド · AI可視性トラッカーの比較 · Google Jobsスクレイパーの比較 · Google Trendsスクレイパーの比較 · App Storeレビュー用スクレイパーの比較 · Google Playレビュー用スクレイパーの比較 · YouTube文字起こしスクレイパーの比較 · Google Flightsスクレイパーの比較 · Google Hotelsスクレイパーの比較 · Google Ads Transparencyスクレイパーの比較 · Google Shoppingスクレイパーの比較 · Google Newsスクレイパーの比較
このリポジトリには使用例が含まれています。スクレイパー自体はApify プラットフォームで実行されます。無料の Apify アカウントと API トークンが必要です。使用例は MIT ライセンスです。
コメント
AI アプリケーションが外部のツールやデータソースに統一的な方法で接続するためのオープンなプロトコルです。クライアントはモデルとの対話を担い、MCP サーバーはツール・リソース・プロンプトテンプレートを提供します。標準メッセージでやり取りするため、1 つのサーバーを複数のクライアントで再利用できます。