Google Shopping (via Apify)

السجل الرسمي التجارة الإلكترونية

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

التثبيت

أضف هذا إلى إعدادات MCP في عميلك (Claude Desktop: claude_desktop_config.json، وCursor: ‏.cursor/mcp.json، ويستخدم VS Code وغيره الصيغة نفسها «mcpServers»).

Remote (streamable-http)
Claude Code
claude mcp add --transport http google-shopping-via-apify 'https://mcp.apify.com/?tools=automationnation/google-shopping-scraper' --header 'Authorization: <Your Apify API token, sent as '\''Bearer <token>'\''. Get it at https://console.apify.com/settings/integrations (free account).>'
إعداد JSON (Claude Desktop وCursor وVS Code)
{
    "mcpServers": {
        "google-shopping-via-apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=automationnation/google-shopping-scraper",
            "headers": {
                "Authorization": "<Your Apify API token, sent as 'Bearer <token>'. Get it at https://console.apify.com/settings/integrations (free account).>"
            }
        }
    }
}

التوثيق

مأخوذ من ملف README للمشروع على GitHub ويُحدَّث أسبوعيًا. تفتح الروابط على GitHub.

المحتويات
  1. Google Shopping Scraper & API: prices, stores and reviews
  2. Quick facts
  3. Example input
  4. Run it from code
  5. Use it with AI agents (MCP)
  6. FAQ
  7. More from AutomationNation

Google Shopping Scraper & API: prices, stores and reviews

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 tracking: with Only new results on, a scheduled run returns only new listings and price changes since the last run (per store), with the previous price. Guide: https://retracn.github.io/automationnation-actors/guides/google-shopping-price-tracker/
  • Price: $1 per 1,000 products; Apify's free $5 monthly credit covers 5,000 products.

Example input

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

Run it from code

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 — see 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 — see 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);

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:

{
  "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.

Can it track price changes? Yes. Turn on Only new results and schedule it: each run returns new listings and price changes since the last run, marked price_down or price_up, with the previous price.

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.

الأسئلة الشائعة

ما هو Google Shopping (via Apify)؟

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

كيف أثبّت Google Shopping (via Apify)؟

يعمل كخادم بعيد. في Claude Code: claude mcp add --transport http google-shopping-via-apify 'https://mcp.apify.com/?tools=automationnation/google-shopping-scraper' --header 'Authorization: <Your Apify API token, sent as '\''Bearer <token>'\''. Get it at https://console.apify.com/settings/integrations (free account).>'. وفي العملاء الآخرين، الصق إعداد JSON من هذه الصفحة في إعدادات MCP الخاصة بهم.

هل يحتاج Google Shopping (via Apify) إلى مفتاح API؟

نعم. يتطلب Authorization، وتضبطها في إعداداته.

هل Google Shopping (via Apify) مفتوح المصدر؟

نعم. شيفرته متاحة على GitHub بترخيص MIT.

من يصون Google Shopping (via Apify)؟

ينشره retracn. يدرجه AI.tn لكنه لا يصونه ولا يوصي به.

من سجل MCP الرسمي. الإدراج ليس توصية: راجع شيفرة الخادم وصلاحياته قبل منحه الوصول إلى بياناتك.