{
  "openapi": "3.0.1",
  "info": {
    "title": "Google Shopping Scraper",
    "description": "Google Shopping scraper: products for many queries and countries in one run with numeric price, currency, old price and discount, store, rating, reviews, delivery, image and product link. Filter by price, store, rating, sale or condition and dedupe across queries.",
    "version": "0.1",
    "x-build-id": "ABQR56zqk9TXodoDj"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/datahamster~google-shopping-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-datahamster-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/datahamster~google-shopping-scraper/runs": {
      "post": {
        "operationId": "runs-sync-datahamster-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/datahamster~google-shopping-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-datahamster-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 queries",
            "type": "array",
            "description": "One Google Shopping search per line, e.g. \"wireless earbuds\", \"standing desk\". Every query runs in every country below. Repeated queries run once.",
            "default": [
              "wireless earbuds"
            ],
            "items": {
              "type": "string"
            }
          },
          "countries": {
            "title": "Countries",
            "type": "array",
            "description": "Google Shopping country, one or more: each country uses its own Google domain, language and currency. Each query runs once per country. Example: us, gb, de.",
            "items": {
              "type": "string",
              "enum": [
                "us",
                "gb",
                "ca",
                "au",
                "nz",
                "ie",
                "de",
                "at",
                "ch",
                "fr",
                "be",
                "nl",
                "es",
                "pt",
                "it",
                "pl",
                "cz",
                "sk",
                "hu",
                "ro",
                "gr",
                "se",
                "no",
                "dk",
                "fi",
                "ua",
                "tr",
                "il",
                "ae",
                "sa",
                "za",
                "in",
                "id",
                "my",
                "sg",
                "ph",
                "th",
                "vn",
                "jp",
                "kr",
                "tw",
                "hk",
                "br",
                "mx",
                "ar",
                "cl",
                "co",
                "pe"
              ],
              "enumTitles": [
                "United States",
                "United Kingdom",
                "Canada",
                "Australia",
                "New Zealand",
                "Ireland",
                "Germany",
                "Austria",
                "Switzerland",
                "France",
                "Belgium",
                "Netherlands",
                "Spain",
                "Portugal",
                "Italy",
                "Poland",
                "Czechia",
                "Slovakia",
                "Hungary",
                "Romania",
                "Greece",
                "Sweden",
                "Norway",
                "Denmark",
                "Finland",
                "Ukraine",
                "Turkey",
                "Israel",
                "United Arab Emirates",
                "Saudi Arabia",
                "South Africa",
                "India",
                "Indonesia",
                "Malaysia",
                "Singapore",
                "Philippines",
                "Thailand",
                "Vietnam",
                "Japan",
                "South Korea",
                "Taiwan",
                "Hong Kong",
                "Brazil",
                "Mexico",
                "Argentina",
                "Chile",
                "Colombia",
                "Peru"
              ]
            },
            "default": [
              "us"
            ]
          },
          "languageCode": {
            "title": "Interface language",
            "type": "string",
            "description": "Optional Google interface language (hl) for every country, e.g. en, de, pt-BR. Empty = each country's own language (de for Germany, ja for Japan)."
          },
          "maxPagesPerQuery": {
            "title": "Pages per query",
            "minimum": 1,
            "maximum": 3,
            "type": "integer",
            "description": "Results pages per query and country, about 40 products each. Google usually serves 2 pages (about 80 products); the run stops at the last one. Example: 2.",
            "default": 1
          },
          "minPrice": {
            "title": "Min price",
            "minimum": 0,
            "type": "number",
            "description": "Optional: keep only products priced at least this much, in the country's currency. Example: 20."
          },
          "maxPrice": {
            "title": "Max price",
            "minimum": 0,
            "type": "number",
            "description": "Optional: keep only products priced at most this much, in the country's currency. Example: 100."
          },
          "merchants": {
            "title": "Only these stores",
            "type": "array",
            "description": "Keep only offers from stores whose name contains one of these words (case-insensitive), e.g. \"best buy\", \"walmart\", \"amazon\". Empty = all stores.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "excludeMerchants": {
            "title": "Skip these stores",
            "type": "array",
            "description": "Drop offers from stores whose name contains one of these words, e.g. \"ebay\" or \"walmart -\" (Walmart marketplace sellers).",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "onSaleOnly": {
            "title": "Only discounted",
            "type": "boolean",
            "description": "true = keep only offers with an old price above the current one (oldPrice and discountPercent filled).",
            "default": false
          },
          "minRating": {
            "title": "Min rating",
            "minimum": 0,
            "maximum": 5,
            "type": "number",
            "description": "Optional: keep only products rated at least this (0-5). Unrated products are dropped. Example: 4.5."
          },
          "condition": {
            "title": "Condition",
            "enum": [
              "any",
              "new",
              "used",
              "refurbished"
            ],
            "type": "string",
            "description": "Keep only offers in this condition as Google labels it.",
            "default": "any"
          },
          "dedupeAcrossQueries": {
            "title": "Remove duplicates across queries",
            "type": "boolean",
            "description": "true = the same product at the same store is returned once per country, for the first query that found it; duplicatesRemoved in the SHOPPING_STATS record counts the rest.",
            "default": true
          },
          "strictQueryMatch": {
            "title": "Drop unrelated results",
            "type": "boolean",
            "description": "true = when Google cannot match a query it shows unrelated products; in English-language countries (us, gb, ca, au, nz, ie, in, sg, ph, za, my, ae with an English interface) a page where no product title contains a word of the query is dropped instead of charged. Elsewhere titles use the local word (\"laptop\" in Brazil is \"Notebook\"), so pages are always kept.",
            "default": true
          },
          "saveHtmlToKeyValueStore": {
            "title": "Save page HTML",
            "type": "boolean",
            "description": "true = store the raw HTML of every results page in the run's key-value store (for debugging).",
            "default": false
          },
          "maxItems": {
            "title": "Max items",
            "minimum": 1,
            "maximum": 10000,
            "type": "integer",
            "description": "Stop after this many products (one charge each). Example: 200.",
            "default": 100
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}