{
  "openapi": "3.0.1",
  "info": {
    "title": "Google Shopping Scraper - Prices, Stores, Offers & Ratings",
    "description": "Scrape Google Shopping by search term or product id: title, price, old price, discount, store, delivery, returns, condition, rating, exact review count, brand and image. Google's own sort and price filters, ~250 products per term, optional store offers with store links, price monitor.",
    "version": "0.1",
    "x-build-id": "wdDfOWK25ltUxD5pG"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/scrapersdelight~google-shopping-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-scrapersdelight-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/scrapersdelight~google-shopping-scraper/runs": {
      "post": {
        "operationId": "runs-sync-scrapersdelight-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/scrapersdelight~google-shopping-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-scrapersdelight-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 terms",
            "type": "array",
            "description": "One Google Shopping search per line, e.g. \"wireless earbuds\", \"sony wh-1000xm5\", a barcode like \"0194253397694\", or a pasted Google Shopping search URL (its own filters are kept).",
            "default": [
              "wireless earbuds"
            ],
            "items": {
              "type": "string"
            }
          },
          "productIds": {
            "title": "Product ids or links",
            "type": "array",
            "description": "Optional. Google product ids (the `productId` column of a previous run, e.g. \"13817196430795275231\") or Google Shopping product links. Each returns one product with its full product page (charged as a product + product details).",
            "items": {
              "type": "string"
            }
          },
          "country": {
            "title": "Country",
            "enum": [
              "us",
              "gb",
              "ca",
              "au",
              "de",
              "fr",
              "it",
              "es",
              "nl",
              "be",
              "at",
              "ch",
              "ie",
              "se",
              "no",
              "dk",
              "pl",
              "cz",
              "pt",
              "in",
              "jp",
              "br",
              "mx",
              "nz",
              "sg",
              "za",
              "ae",
              "tr"
            ],
            "type": "string",
            "description": "Google Shopping country (Google's gl parameter): prices, stores and currency are that country's.",
            "default": "us"
          },
          "language": {
            "title": "Language",
            "type": "string",
            "description": "Google's interface language (hl), e.g. \"en\", \"de\", \"fr\", \"es\". Store names and texts such as delivery and returns come back in it.",
            "default": "en"
          },
          "sortBy": {
            "title": "Sort by",
            "enum": [
              "relevance",
              "price_low",
              "price_high",
              "rating"
            ],
            "type": "string",
            "description": "Google's own result order (the Sort by menu on Google Shopping).",
            "default": "relevance"
          },
          "minPrice": {
            "title": "Minimum price",
            "minimum": 0,
            "type": "number",
            "description": "Only products priced at or above this, in the country's currency (e.g. 20). Empty = no minimum."
          },
          "maxPrice": {
            "title": "Maximum price",
            "minimum": 0,
            "type": "number",
            "description": "Only products priced at or below this, in the country's currency (e.g. 150). Empty = no maximum."
          },
          "onSale": {
            "title": "On sale only",
            "type": "boolean",
            "description": "Google's \"On sale\" filter: products with a reduced price.",
            "default": false
          },
          "freeShipping": {
            "title": "Free shipping only",
            "type": "boolean",
            "description": "Google's \"Free shipping\" filter.",
            "default": false
          },
          "minRating": {
            "title": "Minimum rating",
            "minimum": 0,
            "maximum": 5,
            "type": "number",
            "description": "Only products rated at least this many stars (1-5, e.g. 4). Products without a rating are left out."
          },
          "exactQuery": {
            "title": "Exact search term",
            "type": "boolean",
            "description": "Stop Google from correcting the spelling of a term (Google's own \"Search instead for\" link). Use it for barcodes, model numbers and brand names Google does not know.",
            "default": false
          },
          "condition": {
            "title": "Condition",
            "enum": [
              "any",
              "new",
              "used",
              "refurbished"
            ],
            "type": "string",
            "description": "Keep only new, used (pre-owned) or refurbished products, as Google labels them on the card.",
            "default": "any"
          },
          "freeReturns": {
            "title": "Free returns only",
            "type": "boolean",
            "description": "Keep only products whose card shows free returns.",
            "default": false
          },
          "stores": {
            "title": "Stores",
            "type": "array",
            "description": "Keep only products sold by these stores (part of the name is enough, e.g. \"Walmart\", \"Best Buy\", \"Amazon\"). Empty = every store.",
            "items": {
              "type": "string"
            }
          },
          "minReviews": {
            "title": "Minimum reviews",
            "minimum": 0,
            "type": "integer",
            "description": "Keep only products with at least this many reviews (e.g. 100)."
          },
          "includeDetails": {
            "title": "Product details and store offers",
            "type": "boolean",
            "description": "Adds the product page: description, specifications, photos, variants, typical price range and the store offers (store, price, old price, availability, delivery, returns, store rating and the store's own product URL). About 60 s per product page.",
            "default": false
          },
          "maxDetailsPerQuery": {
            "title": "Product details per search",
            "minimum": 0,
            "maximum": 500,
            "type": "integer",
            "description": "How many products of each search get their product page (the first ones in Google's order). 0 = every delivered product.",
            "default": 10
          },
          "monitorMode": {
            "title": "Only new or re-priced products",
            "type": "boolean",
            "description": "Deliver (and charge) only products that earlier runs of the same search did not return, or whose price changed - with the previous price and the change. The first run returns everything.",
            "default": false
          },
          "monitorName": {
            "title": "Monitor name",
            "type": "string",
            "description": "Optional. Keeps a separate memory under this name (e.g. one per client or schedule watching the same searches)."
          },
          "maxResultsPerQuery": {
            "title": "Max products per search",
            "minimum": 1,
            "maximum": 500,
            "type": "integer",
            "description": "Products per search term. Google shows about 170-250 different products per term over up to 8 pages; 40-60 come on the first page.",
            "default": 100
          },
          "maxResults": {
            "title": "Max products in total",
            "minimum": 0,
            "type": "integer",
            "description": "Cap for the whole run across all searches and product ids. 0 = no cap.",
            "default": 1000
          },
          "maxConcurrency": {
            "title": "Parallel requests",
            "minimum": 1,
            "maximum": 10,
            "type": "integer",
            "description": "Google pages fetched at the same time (1-10).",
            "default": 4
          },
          "saveHtml": {
            "title": "Save raw pages",
            "type": "boolean",
            "description": "Debugging: also save every Google results page as HTML in the run's key-value store (HTML_<search>_p<page>).",
            "default": false
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}