Google Shopping (via Apify)

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

Google Shopping for AI agents: product prices, discounts, stores, ratings and reviews.

已验证Streamable HTTP可网页运行Web Search & ScrapingBusiness & Commerce

概览

AI 生成的概览

让助手按关键词和国家搜索 Google Shopping,获取商品价格、折扣、店铺、评分和评论。

功能
这个远程 MCP 服务器封装了一个 Apify Actor,可按搜索词和国家返回 Google Shopping 结果。每条结果包含商品标题、价格与货币、原价与折扣、店铺、配送与退货信息、评分、评论数、缩略图、Google 商品 ID 以及购物链接。一次搜索大约返回 50 个商品,即 Google 购物结果页展示的数量。
适用场景
适合需要获取商品当前零售价格、折扣、店铺对比或评分的场景,例如比价、市场或竞品调研,以及跨国家的购物比较。
运行要求
使用 mcp.apify.com 上的远程 MCP 端点,无需本地运行环境。需要 Apify API 令牌,通过 Authorization 请求头以 Bearer 形式发送;注册免费 Apify 账号即可获取。按返回的商品数量计费。
安装前请注意
Authorization 请求头携带 Apify API 令牌,应视为机密,避免在共享配置中泄露。运行会消耗付费 Apify 额度,价格为每 1,000 个商品 1 美元,免费月度额度约可覆盖 5,000 个商品。查询和结果会经过 Apify 与 Google Shopping。

安装

在 SourceWeft 中

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

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

其他 MCP 客户端

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

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

README

Google Shopping Scraper & API: prices, stores and reviews

[Run on Apify]

Google Shopping Scraper is an Apify Actor that returns Google Shopping results for any search and country: product title, price, original price and discount, store, rating, review count, delivery, returns and Google product IDs, about 50 products per search in seconds, at $1 per 1,000 products. Use it from code, on a schedule or from AI agents through Apify's MCP server.

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

Quick facts

  • One row per product: title, price and currency, original price and discount, store, other stores flag, delivery, returns, rating, review count, thumbnail, Google product IDs and a Google Shopping link.
  • Any Google Shopping country; prices come in that country's currency.
  • Plain HTTP through Apify's Google SERP proxy: a search takes a few seconds.
  • Price: $1 per 1,000 products; Apify's free $5 monthly credit covers 5,000 products.

Example input

json
{  "queries": [    "wireless earbuds"  ],  "country": "us",  "maxResultsPerQuery": 50}

Run it from code

REST API

bash
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 — see examples/python_example.py

python
# pip install apify-clientfrom 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 — 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-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);

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-shopping-scraper

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

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

FAQ

Is there an official Google Shopping API? Google's Content API manages your own Merchant Center products; it doesn't return Google Shopping search results. Google Shopping Scraper on Apify returns the results page as data through Apify's API, clients and MCP.

How many products per search? About 50, the number Google shows on a Shopping results page.

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,提交 4bf5d33

工具

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

版本历史

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