关于 Google Shopping (via Apify)
这是一个 Apify Actor,可按搜索词和国家获取 Google Shopping 商品信息,包括价格、商店、评分和配送详情。开发者和 Agent 可用它比较商品,或通过定期运行监测新商品及价格变化。
主要功能
- 01商品价格、折扣和商店信息
- 02评分、评论和配送详情
- 03按搜索词和国家查询
- 04跟踪新商品和价格变化
适用场景
- 01比较不同商店的商品价格
- 02持续监测商品价格变化
- 03查看商品评分和配送选项
MCP 相关
可通过 Apify 托管的 MCP 服务使用,让 MCP 客户端和 AI Agent 获取 Shopping 搜索结果。
配置
远程服务无需本地安装。选择你使用的客户端,复制配置或使用一键安装。
https://mcp.apify.com/?tools=automationnation/google-shopping-scraperclaude mcp add --transport http retracn-google-shopping https://mcp.apify.com/?tools=automationnation/google-shopping-scraper{"mcpServers":{"retracn-google-shopping":{"type":"http","url":"https://mcp.apify.com/?tools=automationnation/google-shopping-scraper"}}}在 Cursor 中打开{"servers":{"retracn-google-shopping":{"type":"http","url":"https://mcp.apify.com/?tools=automationnation/google-shopping-scraper"}}}在 VS Code 中打开{"mcpServers":{"retracn-google-shopping":{"type":"http","url":"https://mcp.apify.com/?tools=automationnation/google-shopping-scraper"}}}{"mcpServers":{"retracn-google-shopping":{"serverUrl":"https://mcp.apify.com/?tools=automationnation/google-shopping-scraper"}}}命令在终端中运行;JSON 粘贴到对应客户端的 MCP 配置后重启。需要授权的服务会在首次连接时提示登录。
https://mcp.apify.com/?tools=automationnation/google-shopping-scraper需要授权工具
详细介绍
Google Shopping 抓取工具与 API:价格、商店和评价
Google Shopping Scraper 是一个 Apify Actor,可针对任意搜索词和国家/地区返回 Google Shopping 结果:产品标题、价格、原价和折扣、商店、评分、评价数量、配送、退货政策和 Google 产品 ID。每次搜索只需几秒即可获取约 50 个产品,价格为每 1,000 个产品 $1。可通过代码、定时任务或 Apify MCP 服务从 AI Agent 调用。
**价格:**每 1,000 个产品 $1(Gold 及以上套餐为 $0.80) · 立即运行:https://apify.com/automationnation/google-shopping-scraper · 指南:https://retracn.github.io/automationnation-actors/google-shopping-scraper/
快速了解
- 每个产品一行:标题、价格和货币、原价和折扣、商店、其他商店标记、配送、退货政策、评分、评价数量、缩略图、Google 产品 ID 和 Google Shopping 链接。
- 支持任意 Google Shopping 国家/地区;价格使用该国家/地区的货币。
- 通过 Apify 的 Google SERP 代理发送普通 HTTP 请求:一次搜索只需几秒。
- 价格跟踪:启用 Only new results 后,定时运行会返回自上次运行以来的新商品和价格变化(按商店区分),并附上先前价格。指南:https://retracn.github.io/automationnation-actors/guides/google-shopping-price-tracker/
- 价格:每 1,000 个产品 $1;Apify 每月 $5 的免费额度可覆盖 5,000 个产品。
示例输入
{
"queries": [
"wireless earbuds"
],
"country": "us",
"maxResultsPerQuery": 50
}
通过代码运行
REST API
curl -X POST "https://api.apify.com/v2/acts/automationnation~google-shopping-scraper/run-sync-get-dataset-items?token=$APIFY_TOKEN" \
-H "Content-Type: application/json" \
-d '{"queries": ["wireless earbuds"], "country": "us", "maxResultsPerQuery": 50}'
Python — 请参阅 examples/python_example.py
# pip install apify-client
from apify_client import ApifyClient
client = ApifyClient("YOUR_APIFY_TOKEN")
run = client.actor("automationnation/google-shopping-scraper").call(run_input={
"queries": [
"wireless earbuds"
],
"country": "us",
"maxResultsPerQuery": 50
})
for item in client.dataset(run["defaultDatasetId"]).iterate_items():
print(item.get("title"), item.get("price"), item.get("store"), item.get("rating"))
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-shopping-scraper').call({
"queries": [
"wireless earbuds"
],
"country": "us",
"maxResultsPerQuery": 50
});
const { items } = await client.dataset(run.defaultDatasetId).listItems();
for (const item of items) console.log(item.title, item.price, item.store, item.rating);
与 AI Agent 一起使用(MCP)
托管 MCP 服务 URL(适用于 Claude、ChatGPT、Cursor 及其他支持远程 MCP 的客户端):
https://mcp.apify.com?tools=automationnation/google-shopping-scraper
Claude Desktop / Cursor 的本地配置 — mcp/claude_desktop_config.json:
{
"mcpServers": {
"google-shopping-scraper": {
"command": "npx",
"args": [
"-y",
"@apify/actors-mcp-server",
"--tools",
"automationnation/google-shopping-scraper"
],
"env": {
"APIFY_TOKEN": "YOUR_APIFY_TOKEN"
}
}
}
}
常见问题
是否有官方 Google Shopping API? Google 的 Content API 用于管理你自己的 Merchant Center 产品;它不会返回 Google Shopping 搜索结果。Apify 上的 Google Shopping Scraper 通过 Apify 的 API、客户端和 MCP 将结果页作为数据返回。
每次搜索能获取多少个产品? 约 50 个,即 Google 在 Shopping 结果页上显示的数量。
能否跟踪价格变化? 可以。启用 Only new results 并设置定时运行:每次运行都会返回自上次运行以来的新商品和价格变化,分别标记为 price_down 或 price_up,并附上先前价格。
更多 AutomationNation 内容
- AI Visibility Tracker — 每检查一个答案收费 $0.05(Gold 计划为 $0.04)+ 每份可选报告收费 $0.50 · GitHub 示例
- Google Jobs Scraper — 每 1,000 个职位收费 $2(付费计划为 $1.50)+ 每次搜索收费 $0.03 · GitHub 示例
- YouTube Transcript Scraper — 每 1,000 份文字稿收费 $1.50(Gold 及以上计划为 $1.20)· 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 — 每 1,000 次搜索(每次最多 10 条结果)收费 $5(Gold 及以上计划为 $4)· GitHub 示例
- Google Videos Scraper — 每 1,000 个视频收费 $1(Gold 及以上计划为 $0.80)· GitHub 示例
- Google Trends Scraper — 每 1,000 份关键词报告收费 $1(付费计划为 $0.27–$0.90)· 每 1,000 次热门搜索收费 $0.50 · 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 — 每个关键词收费 $0.04(Gold 计划为 $0.032),自 2026 年 11 月 17 日起每次运行另收 $2;截至 2026 年 10 月 16 日,每个关键词收费 $0.01 · GitHub 示例
- Google Maps Leads Scraper — 每条潜在客户线索收费 $0.03(Gold 计划为 $0.024);使用无网站或未认领筛选条件时,每找到一家企业收费 $0.08 · GitHub 示例
- Google Maps Leads Scraper UK — 每条潜在客户线索收费 $0.05(Gold 计划为 $0.04)· GitHub 示例
- App Store & Google Play Reviews Scraper + AI — 每份应用报告收费 $0.05(Gold 计划为 $0.04)· GitHub 示例
- UK Companies House Leads — Filing Signals & AI Outreach — 每条潜在客户线索收费 $0.008
- Contact Waterfall Enrichment — Emails & Directors — 每家公司收费 $0.015
- 所有 Actors 和指南 · 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 服务负责提供工具、资源和提示模板,两者通过标准消息通信,同一个服务可以被不同客户端复用。