mcpField
G
Google Shopping (via Apify)

Google Shopping (via Apify)

远程服务
apify.com商业与营销03 周前更新

关于 Google Shopping (via Apify)

这是一个 Apify Actor,可按搜索词和国家获取 Google Shopping 商品信息,包括价格、商店、评分和配送详情。开发者和 Agent 可用它比较商品,或通过定期运行监测新商品及价格变化。

主要功能

  1. 01商品价格、折扣和商店信息
  2. 02评分、评论和配送详情
  3. 03按搜索词和国家查询
  4. 04跟踪新商品和价格变化

适用场景

  1. 01比较不同商店的商品价格
  2. 02持续监测商品价格变化
  3. 03查看商品评分和配送选项

MCP 相关

可通过 Apify 托管的 MCP 服务使用,让 MCP 客户端和 AI Agent 获取 Shopping 搜索结果。

配置

远程服务无需本地安装。选择你使用的客户端,复制配置或使用一键安装。

服务地址https://mcp.apify.com/?tools=automationnation/google-shopping-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-shopping-scraper需要授权

工具

详细介绍

Google Shopping 抓取工具与 API:价格、商店和评价

在 Apify 上运行

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 内容


此代码库包含使用示例。抓取工具本身运行在 Apify 平台上;你需要一个免费的 Apify 账号和 API 令牌。示例采用 MIT 许可证。

评论

支持 Markdown

第一次接触 MCP?

从协议是什么,到在客户端里装上第一个服务,这几条回答覆盖了大多数入门问题。

一个开放协议,规定了 AI 应用如何以统一方式连接外部工具与数据源。客户端负责与模型对话,MCP 服务负责提供工具、资源和提示模板,两者通过标准消息通信,同一个服务可以被不同客户端复用。