{
  "openapi": "3.0.1",
  "info": {
    "title": "Google Shopping Scraper",
    "description": "Google Shopping products by keyword, barcode or link, plus every seller per product: price, stock, delivery, returns and the store's own URL. Adds specs, reviews, star breakdown and up to 12 months of daily price history per seller. Organic results and sponsored ads, any country.",
    "version": "1.0",
    "x-build-id": "NFL8xltnDIZlqPIIp"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/memo23~google-shopping-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-memo23-google-shopping-scraper",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor, waits for its completion, and returns Actor's dataset items in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/acts/memo23~google-shopping-scraper/runs": {
      "post": {
        "operationId": "runs-sync-memo23-google-shopping-scraper",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor and returns information about the initiated run in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/runsResponseSchema"
                }
              }
            }
          }
        }
      }
    },
    "/acts/memo23~google-shopping-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-memo23-google-shopping-scraper",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor, waits for completion, and returns the OUTPUT from Key-value store in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "inputSchema": {
        "type": "object",
        "properties": {
          "queries": {
            "title": "Search keywords",
            "type": "array",
            "description": "Product or category searches to run on Google Shopping. Each keyword is scraped as its own query. Examples: wireless headphones, office chair, nike running shoes. Provide this, productCodes and/or Google Shopping links.",
            "items": {
              "type": "string"
            }
          },
          "productCodes": {
            "title": "EAN / UPC / GTIN codes",
            "type": "array",
            "description": "Barcode-style product codes (EAN-8, UPC-A / 12 digits, EAN-13, GTIN-14). Each code is searched on Google Shopping and every seller card is saved as type=offer. Example: 194253015518.",
            "items": {
              "type": "string"
            }
          },
          "startUrls": {
            "title": "Google Shopping links",
            "type": "array",
            "description": "Paste Google Shopping links instead of (or as well as) keywords. A results link (google.com/search?...&udm=28 or tbm=shop) is searched with its own country, language and filters. A product link (one that contains prds=catalogid:...) returns that one product with its sellers, specs, reviews and price history.",
            "items": {
              "type": "string"
            }
          },
          "fetchProductDetails": {
            "title": "Open each product page (sellers, specs, reviews, price history)",
            "type": "boolean",
            "description": "Adds a second step per product: its own Google page. Each row then also carries the seller list (store, price, old price, stock, delivery, returns, store rating, link to the store's product page), the full description, specs, colour/size variants, the star breakdown, Google's review summary, sample reviews, the typical price range and, in markets where Google shows it, up to 12 months of daily price history per seller. Charged as a separate event per product page. Off by default.",
            "default": false
          },
          "maxDetailsPerQuery": {
            "title": "Product pages per keyword",
            "minimum": 1,
            "type": "integer",
            "description": "Open product pages for at most this many products per keyword or link, in result order. Leave empty to open one for every product saved."
          },
          "resolveSellerUrls": {
            "title": "Store links for every seller",
            "type": "boolean",
            "description": "With product pages on, turn each seller's Google link into the URL of the product on the store's own site (retailerUrl). Off keeps only Google's link (offerUrl).",
            "default": true
          },
          "trackPriceChanges": {
            "title": "Track price changes between runs",
            "type": "boolean",
            "description": "Remember every product's price (and each seller's, with product pages on) and, on the next run with the same tracking list, add changeStatus (new / up / down / unchanged), previousPrice, priceChange and priceChangePercent to each row. Schedule the same input to monitor prices. No extra charge.",
            "default": false
          },
          "changedOnly": {
            "title": "Save only new or changed prices",
            "type": "boolean",
            "description": "Save only products that are new or whose price (or a seller's price) moved since the last run with this tracking list. Unchanged products are not saved and not charged as rows; product pages opened for them are still charged. Turns tracking on. The first run saves everything.",
            "default": false
          },
          "trackingListName": {
            "title": "Tracking list name",
            "type": "string",
            "description": "Each name keeps its own price memory, stored in your account. Use one name per schedule (for example headphones-us) so separate schedules do not overwrite each other.",
            "default": "default"
          },
          "minChangePercent": {
            "title": "Smallest change to report (%)",
            "minimum": 0,
            "type": "number",
            "description": "Price moves smaller than this percentage count as unchanged. 0 reports every change. Small moves still add up: the comparison is always against the last price reported.",
            "default": 0
          },
          "maxProductsPerQuery": {
            "title": "Max products per keyword",
            "minimum": 1,
            "maximum": 200,
            "type": "integer",
            "description": "Maximum number of product rows (organic + sponsored combined, across pages and devices) to save for each keyword or product code.",
            "default": 40
          },
          "maxTotalProducts": {
            "title": "Total product limit",
            "minimum": 1,
            "maximum": 10000,
            "type": "integer",
            "description": "Optional run-wide cap across all keywords and codes. Leave empty to use the per-keyword limit only."
          },
          "startPage": {
            "title": "Start page",
            "minimum": 1,
            "maximum": 20,
            "type": "integer",
            "description": "First Google Shopping results page to fetch (1 = first page). Page 2 uses start=10.",
            "default": 1
          },
          "maxPages": {
            "title": "Pages per search",
            "minimum": 1,
            "maximum": 10,
            "type": "integer",
            "description": "How many result pages to walk for each keyword or product code. Stops early when a page is empty. Free accounts are capped at 1.",
            "default": 1
          },
          "deepSearch": {
            "title": "Dig deeper until the product limit is reached",
            "type": "boolean",
            "description": "Ignore Pages per search and keep reading pages until Max products per keyword is reached or Google stops showing new products. With relevance order it then also reads the same search sorted by lowest and highest price, which finds products the default order does not show (about 25-30% more on a test search).",
            "default": false
          },
          "countryCode": {
            "title": "Market (country)",
            "type": "string",
            "description": "Google Shopping market as an ISO 3166-1 alpha-2 country code. Affects currency, merchants, and available offers.",
            "default": "US"
          },
          "languageCode": {
            "title": "Language",
            "type": "string",
            "description": "Google page language as an ISO 639-1 code (for example: en, de, fr, es, ja).",
            "default": "en"
          },
          "location": {
            "title": "City or postal code",
            "type": "string",
            "description": "Optional local Shopping location encoded as Google uule. City or ZIP, for example Austin, Texas, United States or 78701."
          },
          "device": {
            "title": "Device",
            "enum": [
              "desktop",
              "mobile",
              "both"
            ],
            "type": "string",
            "description": "User-Agent used for the request. both fetches desktop then mobile and tags each row with device.",
            "default": "desktop"
          },
          "includeSponsored": {
            "title": "Include sponsored PLA ads",
            "type": "boolean",
            "description": "When enabled, also collect the paid Product Listing Ads shown above organic Shopping results. Sponsored rows include direct retailer URLs when Google exposes them.",
            "default": true
          },
          "includeOrganic": {
            "title": "Include organic products",
            "type": "boolean",
            "description": "When enabled, collect organic Google Shopping product cards (title, price, merchant, rating, delivery, sale and condition signals).",
            "default": true
          },
          "resolveRetailerUrls": {
            "title": "Copy retailer URLs onto organic rows",
            "type": "boolean",
            "description": "When a sponsored PLA on the same page matches an organic card (same title + merchant), copy that PLA's retailerUrl onto the organic row. Organic cards themselves have no <a href>.",
            "default": true
          },
          "sortBy": {
            "title": "Sort by",
            "enum": [
              "relevance",
              "price_low",
              "price_high",
              "rating"
            ],
            "type": "string",
            "description": "How Google should order Shopping results.",
            "default": "relevance"
          },
          "minPrice": {
            "title": "Minimum price",
            "minimum": 0,
            "type": "number",
            "description": "Only include products at or above this price in the local market currency. Leave empty for no minimum."
          },
          "maxPrice": {
            "title": "Maximum price",
            "minimum": 0,
            "type": "number",
            "description": "Only include products at or below this price in the local market currency. Leave empty for no maximum."
          },
          "productCondition": {
            "title": "Condition",
            "enum": [
              "any",
              "new",
              "used",
              "refurbished"
            ],
            "type": "string",
            "description": "Google Shopping condition filter (tbs). any leaves the filter off.",
            "default": "any"
          },
          "onSaleOnly": {
            "title": "On sale only",
            "type": "boolean",
            "description": "Ask Google for sale-priced items only (tbs sales:1).",
            "default": false
          },
          "freeShipping": {
            "title": "Free shipping",
            "type": "boolean",
            "description": "Ask Google for free-shipping offers only (tbs ship:1).",
            "default": false
          },
          "freeReturns": {
            "title": "Free returns",
            "type": "boolean",
            "description": "Ask Google for free-returns offers only (tbs free_return:1).",
            "default": false
          },
          "stores": {
            "title": "Stores",
            "type": "array",
            "description": "Optional merchant names to keep (Best Buy, Amazon, Target). Names are also appended to the Google query, then rows whose merchant does not match are dropped.",
            "items": {
              "type": "string"
            }
          },
          "maxConcurrency": {
            "title": "Max concurrency",
            "minimum": 1,
            "maximum": 10,
            "type": "integer",
            "description": "How many keywords to fetch in parallel. Keep low (2–4) to reduce Google soft-blocks.",
            "default": 3
          },
          "maxRequestRetries": {
            "title": "Max retries per keyword",
            "minimum": 1,
            "maximum": 10,
            "type": "integer",
            "description": "Retry attempts for a keyword when Google soft-blocks or returns an empty page.",
            "default": 3
          },
          "saveHtml": {
            "title": "Save raw HTML",
            "type": "boolean",
            "description": "Store the raw Shopping HTML for each keyword in the default key-value store (debugging only — increases storage use).",
            "default": false
          },
          "proxy": {
            "title": "Proxy configuration",
            "type": "object",
            "description": "Optional Apify or custom proxy. Leave empty to use the platform GOOGLE_SERP proxy, which reaches Google Shopping reliably. Custom proxy URLs are respected; other Apify proxy groups fall back to GOOGLE_SERP because Google blocks them."
          }
        }
      },
      "runsResponseSchema": {
        "type": "object",
        "properties": {
          "data": {
            "type": "object",
            "properties": {
              "id": {
                "type": "string"
              },
              "actId": {
                "type": "string"
              },
              "userId": {
                "type": "string"
              },
              "startedAt": {
                "type": "string",
                "format": "date-time",
                "example": "2025-01-08T00:00:00.000Z"
              },
              "finishedAt": {
                "type": "string",
                "format": "date-time",
                "example": "2025-01-08T00:00:00.000Z"
              },
              "status": {
                "type": "string",
                "example": "READY"
              },
              "meta": {
                "type": "object",
                "properties": {
                  "origin": {
                    "type": "string",
                    "example": "API"
                  },
                  "userAgent": {
                    "type": "string"
                  }
                }
              },
              "stats": {
                "type": "object",
                "properties": {
                  "inputBodyLen": {
                    "type": "integer",
                    "example": 2000
                  },
                  "rebootCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "restartCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "resurrectCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "computeUnits": {
                    "type": "integer",
                    "example": 0
                  }
                }
              },
              "options": {
                "type": "object",
                "properties": {
                  "build": {
                    "type": "string",
                    "example": "latest"
                  },
                  "timeoutSecs": {
                    "type": "integer",
                    "example": 300
                  },
                  "memoryMbytes": {
                    "type": "integer",
                    "example": 1024
                  },
                  "diskMbytes": {
                    "type": "integer",
                    "example": 2048
                  }
                }
              },
              "buildId": {
                "type": "string"
              },
              "defaultKeyValueStoreId": {
                "type": "string"
              },
              "defaultDatasetId": {
                "type": "string"
              },
              "defaultRequestQueueId": {
                "type": "string"
              },
              "buildNumber": {
                "type": "string",
                "example": "1.0.0"
              },
              "containerUrl": {
                "type": "string"
              },
              "usage": {
                "type": "object",
                "properties": {
                  "ACTOR_COMPUTE_UNITS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_WRITES": {
                    "type": "integer",
                    "example": 1
                  },
                  "KEY_VALUE_STORE_LISTS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_INTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_EXTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_SERPS": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_UNBLOCKER_UNITS": {
                    "type": "integer",
                    "example": 0
                  }
                }
              },
              "usageTotalUsd": {
                "type": "number",
                "example": 0.00005
              },
              "usageUsd": {
                "type": "object",
                "properties": {
                  "ACTOR_COMPUTE_UNITS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_WRITES": {
                    "type": "number",
                    "example": 0.00005
                  },
                  "KEY_VALUE_STORE_LISTS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_INTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_EXTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_SERPS": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_UNBLOCKER_UNITS": {
                    "type": "integer",
                    "example": 0
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}