# Google Shopping ## Overview | Property | Value | |----------|-------| | **Status** | active | | **Method** | `GET` | | **Endpoint** | `/v2/google/shopping` | | **Base URL** | `https://api.autom.dev` | | **Credit Cost** | 1 credit per call | | **Documentation** | https://www.piloterr.com/library/google-shopping | ## Description Search Google Shopping and retrieve structured product listings with prices, ratings, merchants, and product IDs. ## Authentication - **Key Name:** `x-api-key` - **Location:** HTTP Header - **Get an API key:** https://app.autom.dev/register ## Example Request ```bash curl --location --request GET 'https://api.autom.dev/v2/google/shopping' \ --header 'Content-Type: application/json' \ --header 'x-api-key: YOUR_API_KEY' ``` ## Example Response ### Search 'playstation 5'. US/English ```json { "organic_results": [ { "price": "$119.00", "title": "Sony PlayStation 5 Pro Console", "rating": 4.5, "source": "UpTrade", "reviews": 780, "position": 1, "thumbnail": "https://encrypted-tbn0.gstatic.com/shopping?q=tbn:ANd9GcPs5-pro", "product_id": "17823632577842932598", "product_link": "https://www.google.com/shopping/product/17823632577842932598", "extracted_price": 119, "multiple_sources": true }, { "price": "$649.99", "title": "PlayStation 5 Digital Console Marvel's Wolverine Limited Edition Bundle", "rating": null, "source": "GameStop", "reviews": null, "position": 2, "thumbnail": "https://encrypted-tbn0.gstatic.com/shopping?q=tbn:ANd9GcWolverine", "product_id": "9908583768713725158", "product_link": "https://www.google.com/shopping/product/9908583768713725158", "extracted_price": 649.99, "multiple_sources": true }, { "price": "$499.00", "title": "Certified Refurbished PlayStation 5 Digital Edition Console Slim", "rating": null, "source": "PlayStation", "reviews": null, "position": 3, "thumbnail": "https://encrypted-tbn0.gstatic.com/shopping?q=tbn:ANd9GcPs5-slim", "product_id": "7126033585643939278", "product_link": "https://www.google.com/shopping/product/7126033585643939278", "extracted_price": 499, "multiple_sources": false } ], "search_parameters": { "q": "playstation 5", "gl": "us", "hl": "en", "page": 1, "type": "shopping", "uule": null, "engine": "google", "location": null } } ``` ## Documentation ## Overview Search Google Shopping and retrieve structured product listings with title, price, merchant, rating, product ID, and product URL. Localize with `gl` and `hl`, target a city with `location` or `uule`, and paginate with `page`. ## Main use cases - Track product prices across merchants over time - Benchmark competitor listings and ratings on Google Shopping - Enrich a catalog with market prices and product IDs - Discover top-ranked products for a category or brand ## Quickstart ``` GET https://api.piloterr.com/v2/google/shopping?query=playstation+5&page=1&gl=us&hl=en ``` GET and POST are supported. On GET, pass parameters in the query string. On POST, send the same fields as a JSON body. ``` POST https://api.piloterr.com/v2/google/shopping Content-Type: application/json { "query": "playstation 5", "page": 1, "gl": "us", "hl": "en" } ``` ## Parameters | Parameter | Type | Required | Description | |---|---|---|---| | `query` | string | yes | Product search query | | `page` | integer | no | Page number (default: `1`) | | `google_domain` | string | no | Google domain (default `google.com`) | | `gl` | string | no | 2-letter country code (e.g. `us`, `uk`, `fr`) | | `hl` | string | no | Language code (e.g. `en`, `fr`, `en-gb`) | | `cr` | string | no | Country restriction (`countryUS` or `countryFR\|countryDE`) | | `lr` | string | no | Language restriction (`lang_en` or `lang_fr\|lang_de`) | | `location` | string | no | City-level location | | `safe` | string | no | `active` enables Google SafeSearch; `off` disables it | | `uule` | string | no | Google-encoded location |