{
  "openapi": "3.0.1",
  "info": {
    "title": "Google Shopping Scraper & API ($2/1k) 🛍️",
    "description": "⚡ Fast & Affordable ($2/1k): Scrape Google Shopping products, live prices, discounts, seller offers, ratings, reviews & direct store checkout links across 80+ countries. Export to JSON, CSV, or Excel.",
    "version": "1.0",
    "x-build-id": "fx5dUOhibKsUlnbKF"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/unitbytes~google-shopping-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-unitbytes-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/unitbytes~google-shopping-scraper/runs": {
      "post": {
        "operationId": "runs-sync-unitbytes-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/unitbytes~google-shopping-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-unitbytes-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 (Products / Keywords / SKUs)",
            "type": "array",
            "description": "Product names, brand keywords, model numbers, UPC/EAN codes, or Google Shopping search URLs (e.g. 'wireless mechanical keyboard', 'Sony WH-1000XM5', 'Keychron K8'). Supports multi-query batching with automatic cross-query deduplication.",
            "items": {
              "type": "string"
            }
          },
          "startUrls": {
            "title": "Google Shopping Search URLs (Optional)",
            "type": "array",
            "description": "Optional list of Google Shopping / Google Search URLs (e.g. 'https://www.google.com/search?udm=28&q=espresso+machine&gl=us'). Combined and deduplicated automatically with Search Queries.",
            "items": {
              "type": "object",
              "required": [
                "url"
              ],
              "properties": {
                "url": {
                  "type": "string",
                  "title": "URL of a web page",
                  "format": "uri"
                }
              }
            }
          },
          "country": {
            "title": "Country",
            "type": "string",
            "description": "Two-letter ISO 3166-1 country code for Google Shopping regional store pricing and currency across 80+ countries (e.g. 'us', 'gb', 'de', 'fr', 'es', 'it', 'nl', 'ca', 'au', 'in', 'br', 'mx', 'jp', 'sg', 'ae', 'sa'). Common aliases like 'USA', 'UK', or 'UAE' are normalized automatically.",
            "default": "us"
          },
          "language": {
            "title": "Language (Optional)",
            "type": "string",
            "description": "Two-letter interface language code (e.g. 'en', 'de', 'fr', 'es', 'pt', 'ar'). Recommended: leave empty so Google Shopping uses the native language of the selected country."
          },
          "sortBy": {
            "title": "Sort Order",
            "enum": [
              "relevance",
              "price_asc",
              "price_desc",
              "rating_desc"
            ],
            "type": "string",
            "description": "Server-side Google Shopping sort order.",
            "default": "relevance"
          },
          "minPrice": {
            "title": "Minimum Price (Optional)",
            "minimum": 0,
            "type": "number",
            "description": "Server-side minimum price filter in the local currency of the selected country (e.g. 50)."
          },
          "maxPrice": {
            "title": "Maximum Price (Optional)",
            "minimum": 0,
            "type": "number",
            "description": "Server-side maximum price filter in the local currency of the selected country (e.g. 200)."
          },
          "onSaleOnly": {
            "title": "On Sale / Deals Only",
            "type": "boolean",
            "description": "Filter upstream and verify discounted items and active price drops (`isOnSale: true`).",
            "default": false
          },
          "freeShippingOnly": {
            "title": "Free Shipping Only",
            "type": "boolean",
            "description": "Filter upstream and verify products offering free shipping / free delivery.",
            "default": false
          },
          "condition": {
            "title": "Product Condition",
            "enum": [
              "any",
              "new",
              "used"
            ],
            "type": "string",
            "description": "Filter by new or pre-owned / refurbished condition.",
            "default": "any"
          },
          "minRating": {
            "title": "Minimum Star Rating (Optional)",
            "minimum": 1,
            "maximum": 5,
            "type": "number",
            "description": "Filter for products rated at or above this star threshold (supports integers and decimals from 1 to 5, e.g. 4 or 4.5)."
          },
          "maxProducts": {
            "title": "Max Products Limit (Budget Cap)",
            "minimum": 1,
            "maximum": 5000,
            "type": "integer",
            "description": "Maximum number of unique products to extract across all queries in this run. Extraction halts immediately once reached.",
            "default": 50
          },
          "resolveMerchantLinks": {
            "title": "Include Merchant Checkout URLs & Comparison Offers",
            "type": "boolean",
            "description": "When enabled, fetches each product's full merchant comparison sheet to populate direct external store checkout URLs (`merchantUrl`), multi-seller price comparisons (`offers`), and product `specifications`.",
            "default": false
          },
          "proxyConfiguration": {
            "title": "Proxy Configuration (Optional)",
            "type": "object",
            "description": "Managed residential proxies are automatically configured by default. Optionally supply custom HTTP/SOCKS5 `proxyUrls` if you prefer to route traffic through your own proxy gateway."
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}