{
  "openapi": "3.0.1",
  "info": {
    "title": "Google Shopping Scraper",
    "description": "Google Shopping scraper: one row per product from a search, with price, old price, discount, store, rating, reviews, delivery and returns. Filter by price, sale, free shipping, condition and store, sort by price, and add each product's seller offers.",
    "version": "0.1",
    "x-build-id": "XeQS6sqPgUHIdYopU"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/dami_studio~google-shopping-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-dami_studio-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/dami_studio~google-shopping-scraper/runs": {
      "post": {
        "operationId": "runs-sync-dami_studio-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/dami_studio~google-shopping-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-dami_studio-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": "What you would type into Google Shopping, one search per line. Each search returns its own products, with the search on every row.",
            "items": {
              "type": "string"
            }
          },
          "startUrls": {
            "title": "Google Shopping addresses",
            "type": "array",
            "description": "Or paste a Google Shopping address from your browser: a results page (search on the Shopping tab, set any filters there, copy the address) or a product's own page. A results page keeps its own country, filters and sort; the filters below apply to search terms only. A product page comes back as one row with its offers and details, priced as a product page.",
            "items": {
              "type": "string"
            }
          },
          "productIds": {
            "title": "Product ids",
            "type": "array",
            "description": "Google's id for a product, the productId column of an earlier run, one per line. Each id returns that product's seller offers and details as one row, priced as a product page.",
            "items": {
              "type": "string"
            }
          },
          "country": {
            "title": "Country",
            "enum": [
              "us",
              "ar",
              "au",
              "at",
              "be",
              "br",
              "ca",
              "cl",
              "co",
              "cz",
              "dk",
              "fi",
              "fr",
              "de",
              "gr",
              "hk",
              "hu",
              "in",
              "id",
              "ie",
              "il",
              "it",
              "jp",
              "my",
              "mx",
              "nl",
              "nz",
              "no",
              "ph",
              "pl",
              "pt",
              "ro",
              "sa",
              "sg",
              "sk",
              "za",
              "kr",
              "es",
              "se",
              "ch",
              "tw",
              "th",
              "tr",
              "ua",
              "ae",
              "uk",
              "vn"
            ],
            "type": "string",
            "description": "The Google Shopping market to search. Prices, stores and delivery are the ones shown to shoppers there.",
            "default": "us"
          },
          "language": {
            "title": "Language",
            "type": "string",
            "description": "Language of titles and labels, as a code such as en, de, fr or pt-BR. Leave it empty for the country's own language."
          },
          "location": {
            "title": "City",
            "type": "string",
            "description": "Optional. Search as a shopper in one city, written the way Google names places: Austin,Texas,United States. Local stores and delivery follow it."
          },
          "maxProductsPerQuery": {
            "title": "Products per search",
            "minimum": 5,
            "maximum": 400,
            "type": "integer",
            "description": "From 5 to 400. Google shows about 40 products a page, so each 40 more is one more page.",
            "default": 40
          },
          "startPage": {
            "title": "Start at page",
            "minimum": 1,
            "maximum": 10,
            "type": "integer",
            "description": "Skip the first pages of results. Page 2 starts after the first 40 or so products.",
            "default": 1
          },
          "maxItems": {
            "title": "Products for the whole run",
            "minimum": 1,
            "maximum": 100000,
            "type": "integer",
            "description": "Optional cap across every search in the run."
          },
          "sortBy": {
            "title": "Sort by",
            "enum": [
              "relevance",
              "price_low_to_high",
              "price_high_to_low",
              "rating_high_to_low"
            ],
            "type": "string",
            "description": "The order Google Shopping lists products in.",
            "default": "relevance"
          },
          "minPrice": {
            "title": "Minimum price",
            "minimum": 0,
            "type": "number",
            "description": "In the country's own currency."
          },
          "maxPrice": {
            "title": "Maximum price",
            "minimum": 0,
            "type": "number",
            "description": "In the country's own currency."
          },
          "onSale": {
            "title": "On sale only",
            "type": "boolean",
            "description": "Only products shown with a reduced price.",
            "default": false
          },
          "freeShipping": {
            "title": "Free shipping only",
            "type": "boolean",
            "description": "Only products shown with free delivery.",
            "default": false
          },
          "freeReturns": {
            "title": "Free returns only",
            "type": "boolean",
            "description": "Only products whose listing says returns are free. Products that say nothing about returns are left out.",
            "default": false
          },
          "condition": {
            "title": "Condition",
            "enum": [
              "any",
              "new",
              "used"
            ],
            "type": "string",
            "description": "New or used. Google Shopping counts refurbished items as used.",
            "default": "any"
          },
          "stores": {
            "title": "Stores",
            "type": "array",
            "description": "Only products these stores sell, named as Google Shopping names them: Walmart, Best Buy. Each product still shows its own headline store, which can be another shop selling it too.",
            "items": {
              "type": "string"
            }
          },
          "includeProductPage": {
            "title": "Add seller offers and product details",
            "type": "boolean",
            "description": "Opens each product's page for its seller offers (store, price, condition, delivery, returns, the store's rating and how many ratings it has, payment methods, link), the description, pictures and typical price, the brand and full spec list, color and size options, Google's review highlights, a user review, reviews by publications, and videos. Priced per product page.",
            "default": false
          },
          "maxProductPagesPerQuery": {
            "title": "Product pages per search",
            "minimum": 1,
            "maximum": 400,
            "type": "integer",
            "description": "How many products of each search get their seller offers, from the top. Up to 400.",
            "default": 10
          },
          "includeFilters": {
            "title": "Add the filters Google offers",
            "type": "boolean",
            "description": "One free extra row per search listing the filters Google Shopping shows for it (brands, price bands, stores, features), each with its own Google Shopping address to paste back into this actor.",
            "default": false
          },
          "maxRetries": {
            "title": "Retries per page",
            "minimum": 0,
            "maximum": 4,
            "type": "integer",
            "description": "How many more times a page is asked for when Google answers it for another country. From 0 to 4. Fewer retries finish sooner; a page that was not served gets a free note row.",
            "default": 4
          },
          "outputFileName": {
            "title": "Results file name",
            "type": "string",
            "description": "Optional. Also saves every row as a JSON file with this name in the run's key-value store (the run's Storage tab), in parts of 2,000 rows. Letters, digits and ! - _ . ' ( ) only."
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}