{
  "openapi": "3.0.1",
  "info": {
    "title": "Google Shopping Scraper (Prices, Stores, Price Tracking)",
    "description": "Google Shopping products for any search in 44 countries: price as a number with its currency code, earlier price, store, rating, review count, delivery, brand and product ids, with price-change tracking between runs and a free min, median and max price summary per query.",
    "version": "0.1",
    "x-build-id": "bj7RYv9rqOW1samvs"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/locaihost~google-shopping/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-locaihost-google-shopping",
        "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/locaihost~google-shopping/runs": {
      "post": {
        "operationId": "runs-sync-locaihost-google-shopping",
        "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/locaihost~google-shopping/run-sync": {
      "post": {
        "operationId": "run-sync-locaihost-google-shopping",
        "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": "Products to search",
            "type": "array",
            "description": "What to search on Google Shopping, one per line (up to 500). A pasted Google Shopping link (google.com/search?q=...&udm=28) works too: its words, country, language and filters are read from the link.",
            "items": {
              "type": "string"
            }
          },
          "country": {
            "title": "Country",
            "enum": [
              "us",
              "gb",
              "ca",
              "au",
              "nz",
              "ie",
              "in",
              "sg",
              "my",
              "ph",
              "za",
              "ng",
              "ae",
              "de",
              "at",
              "ch",
              "fr",
              "be",
              "es",
              "mx",
              "ar",
              "co",
              "cl",
              "it",
              "pt",
              "br",
              "nl",
              "se",
              "dk",
              "no",
              "fi",
              "pl",
              "cz",
              "ro",
              "gr",
              "tr",
              "il",
              "jp",
              "kr",
              "tw",
              "hk",
              "id",
              "th",
              "vn"
            ],
            "type": "string",
            "description": "The country searched from: products, stores and prices are what a shopper there sees, in the local currency. A pasted link with its own gl parameter overrides this for that query.",
            "default": "us"
          },
          "language": {
            "title": "Language",
            "enum": [
              "",
              "en",
              "es",
              "de",
              "fr",
              "it",
              "pt-BR",
              "pt-PT",
              "nl",
              "sv",
              "da",
              "no",
              "fi",
              "pl",
              "cs",
              "ro",
              "el",
              "tr",
              "he",
              "ar",
              "hi",
              "ja",
              "ko",
              "zh-CN",
              "zh-TW",
              "zh-HK",
              "id",
              "ms",
              "th",
              "vi",
              "tl"
            ],
            "type": "string",
            "description": "Interface language. Country default uses the country's own language.",
            "default": ""
          },
          "maxProducts": {
            "title": "Products per query",
            "minimum": 1,
            "maximum": 100,
            "type": "integer",
            "description": "Most product rows per query. Google Shopping shows about 90 products for a plain search (two pages) and about 40 when a sort or price filter is set.",
            "default": 40
          },
          "sort": {
            "title": "Sort",
            "enum": [
              "relevance",
              "priceLow",
              "priceHigh",
              "rating"
            ],
            "type": "string",
            "description": "Order Google lists the products in. If Google ignores the order, the run sorts the products itself.",
            "default": "relevance"
          },
          "onlyPriceChanges": {
            "title": "Only new products and price changes",
            "type": "boolean",
            "description": "Return only products this setup has not returned before, or whose price changed since it last did. Unchanged products are skipped and cost nothing. Every row carries previousPrice and priceChange either way.",
            "default": false
          },
          "minPrice": {
            "title": "Lowest price",
            "minimum": 0,
            "type": "integer",
            "description": "Only products at or above this price, in the country's currency. Products below it are dropped before charging even if Google shows them."
          },
          "maxPrice": {
            "title": "Highest price",
            "minimum": 0,
            "type": "integer",
            "description": "Only products at or below this price, in the country's currency."
          },
          "condition": {
            "title": "Condition",
            "enum": [
              "any",
              "new",
              "used",
              "refurbished"
            ],
            "type": "string",
            "description": "New, used or refurbished only. Google reads this as a word in front of your search; products whose condition does not match are dropped before charging.",
            "default": "any"
          },
          "onSale": {
            "title": "On sale only",
            "type": "boolean",
            "description": "Only products Google marks as on sale (a crossed-out earlier price).",
            "default": false
          },
          "freeShipping": {
            "title": "Free delivery only",
            "type": "boolean",
            "description": "Ask Google for products with free delivery.",
            "default": false
          },
          "stores": {
            "title": "Stores",
            "type": "array",
            "description": "Keep only offers from these stores (part of the name is enough, e.g. walmart, best buy). Leave empty for every store.",
            "items": {
              "type": "string"
            }
          },
          "onlyNew": {
            "title": "Only new products",
            "type": "boolean",
            "description": "Return only products this setup has never returned before, whatever their price.",
            "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}