{
  "openapi": "3.0.1",
  "info": {
    "title": "Google Shopping Price Tracker — Offers & Price History",
    "description": "Track Google Shopping prices across every retailer. Product search, cross-store offers, full price history, reviews and deals in one actor — clean JSON, pay per result. Built for price monitoring, competitor price tracking and product price intelligence.",
    "version": "1.0",
    "x-build-id": "IzHvdII7bH3pW4KbC"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/sian.agency~google-shopping-price-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-sian.agency-google-shopping-price-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/sian.agency~google-shopping-price-scraper/runs": {
      "post": {
        "operationId": "runs-sync-sian.agency-google-shopping-price-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/sian.agency~google-shopping-price-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-sian.agency-google-shopping-price-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",
        "required": [
          "operation"
        ],
        "properties": {
          "operation": {
            "title": "Operation",
            "enum": [
              "search",
              "searchLight",
              "deals",
              "productDetails",
              "productOffers",
              "priceHistory",
              "productReviews",
              "storeReviews"
            ],
            "type": "string",
            "description": "Which Google Shopping operation to run. Each run does exactly one operation.\n\n• **Product Search** — search products by keyword (rich rows: title, rating, photos, headline offer)\n• **Product Search (Light)** — faster, lighter search rows (cheaper per result)\n• **Deals** — on-sale products & discounts for a query\n• **Product Details** — full details for one product by ID\n• **Product Offers** — every store's offer for one product (cross-retailer price comparison)\n• **Price History** — per-store price time series for one product (the exclusive column)\n• **Product Reviews** — paginated reviews for one product\n• **Store Reviews** — reviews for a merchant by domain",
            "default": "search"
          },
          "query": {
            "title": "Search query",
            "type": "string",
            "description": "🔍 Keyword to search. Required for **Product Search**, **Product Search (Light)** and **Deals** (e.g. `airpods pro`, `4k monitor`)."
          },
          "productId": {
            "title": "Product ID",
            "type": "string",
            "description": "📦 Google Shopping product ID. Required for **Product Details**, **Product Offers**, **Price History** and **Product Reviews**. Copy the `productId` value from a Product Search row."
          },
          "storeDomain": {
            "title": "Store domain",
            "type": "string",
            "description": "🏪 Merchant root domain for **Store Reviews** (e.g. `walmart.com`, `bestbuy.com`)."
          },
          "country": {
            "title": "Country",
            "type": "string",
            "description": "🌍 Two-letter country code for the Google Shopping market (e.g. `us`, `gb`, `de`). Defaults to `us`.",
            "default": "us"
          },
          "language": {
            "title": "Language",
            "type": "string",
            "description": "🗣️ Two-letter language code (e.g. `en`, `de`, `fr`). Defaults to `en`.",
            "default": "en"
          },
          "maxPages": {
            "title": "Max pages",
            "minimum": 1,
            "maximum": 50,
            "type": "integer",
            "description": "📄 Maximum pages to fetch for paginated operations (search, search-light, deals, offers, reviews, store reviews). Each page is one upstream call. Single-shot ops (details, price history) ignore this.",
            "default": 3
          },
          "sortBy": {
            "title": "Sort by (search / deals)",
            "enum": [
              "BEST_MATCH",
              "LOWEST_PRICE",
              "HIGHEST_PRICE",
              "TOP_RATED"
            ],
            "type": "string",
            "description": "↕️ Sort order for **Product Search** and **Deals**.",
            "default": "BEST_MATCH"
          },
          "minPrice": {
            "title": "Min price",
            "type": "integer",
            "description": "💵 Minimum price filter for **Product Search** / **Deals** (optional)."
          },
          "maxPrice": {
            "title": "Max price",
            "type": "integer",
            "description": "💵 Maximum price filter for **Product Search** / **Deals** (optional)."
          },
          "productCondition": {
            "title": "Product condition",
            "enum": [
              "ANY",
              "NEW",
              "USED",
              "REFURBISHED"
            ],
            "type": "string",
            "description": "🏷️ Condition filter for **Product Search** / **Deals** (optional).",
            "default": "ANY"
          },
          "onSale": {
            "title": "On sale only",
            "type": "boolean",
            "description": "🔖 Limit **Product Search** / **Deals** to on-sale products only.",
            "default": false
          },
          "freeShipping": {
            "title": "Free shipping only",
            "type": "boolean",
            "description": "🚚 Limit **Product Search** / **Deals** to free-shipping offers only.",
            "default": false
          },
          "freeReturns": {
            "title": "Free returns only",
            "type": "boolean",
            "description": "↩️ Limit **Product Search** / **Deals** to free-returns offers only.",
            "default": false
          },
          "stores": {
            "title": "Stores filter",
            "type": "string",
            "description": "🏬 Comma-separated store names to limit **Product Search** / **Deals** to specific retailers (optional, e.g. `Walmart,Amazon`)."
          },
          "reviewSort": {
            "title": "Review sort",
            "enum": [
              "MOST_RELEVANT",
              "DATE"
            ],
            "type": "string",
            "description": "⭐ Sort order. For **Product Reviews**: Most relevant or Newest. For **Store Reviews**, Newest maps to most-recent and Most relevant to most-helpful.",
            "default": "MOST_RELEVANT"
          },
          "reviewRating": {
            "title": "Review rating filter",
            "minimum": 1,
            "maximum": 5,
            "type": "integer",
            "description": "🌟 Only return reviews with this star rating (1–5) for **Product Reviews** / **Store Reviews** (optional)."
          },
          "reviewLimit": {
            "title": "Reviews per page",
            "minimum": 1,
            "maximum": 100,
            "type": "integer",
            "description": "🔢 Reviews per page for **Product Reviews** / **Store Reviews** (optional, upstream default ~10)."
          }
        }
      },
      "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
                  }
                }
              },
              "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}