{
  "openapi": "3.0.1",
  "info": {
    "title": "Google Shopping Price Tracker & Seller Monitor",
    "description": "Track Google Shopping prices, sellers, rankings, MAP violations, and unauthorized merchants across countries. Monitor products on a schedule and detect price, seller, and ranking changes automatically.",
    "version": "1.0",
    "x-build-id": "6RazCp88inaoVeBxa"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/herazur~google-shopping-price-seller-monitor/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-herazur-google-shopping-price-seller-monitor",
        "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/herazur~google-shopping-price-seller-monitor/runs": {
      "post": {
        "operationId": "runs-sync-herazur-google-shopping-price-seller-monitor",
        "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/herazur~google-shopping-price-seller-monitor/run-sync": {
      "post": {
        "operationId": "run-sync-herazur-google-shopping-price-seller-monitor",
        "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": [
          "products",
          "markets",
          "mode"
        ],
        "properties": {
          "products": {
            "title": "Products to monitor",
            "minItems": 1,
            "maxItems": 10000,
            "type": "array",
            "description": "Add products by SKU/model/GTIN-focused query. A stable inputId keeps each product's history separate.",
            "items": {
              "type": "object",
              "properties": {
                "inputId": {
                  "title": "Input ID",
                  "type": "string",
                  "description": "Your stable SKU/key, preserved in every output row.",
                  "editor": "textfield",
                  "minLength": 1,
                  "maxLength": 128
                },
                "query": {
                  "title": "Google Shopping query",
                  "type": "string",
                  "description": "Use an exact brand + model/SKU query, including color or size when material.",
                  "editor": "textfield",
                  "minLength": 1,
                  "maxLength": 250
                },
                "brand": {
                  "title": "Brand",
                  "type": "string",
                  "description": "Expected brand used for deterministic matching.",
                  "editor": "textfield",
                  "nullable": true
                },
                "model": {
                  "title": "Model or SKU",
                  "type": "string",
                  "description": "Expected model number. Strongly recommended for safe alerts.",
                  "editor": "textfield",
                  "nullable": true
                },
                "gtin": {
                  "title": "GTIN / EAN",
                  "type": "string",
                  "description": "Optional 8–14 digit identifier when Google exposes it.",
                  "editor": "textfield",
                  "pattern": "^[0-9]{8,14}$",
                  "nullable": true
                },
                "mapPrice": {
                  "title": "MAP price",
                  "type": "number",
                  "description": "Optional minimum advertised price in each market's configured currency.",
                  "editor": "number",
                  "minimum": 0,
                  "nullable": true
                },
                "authorizedSellers": {
                  "title": "Authorized sellers",
                  "type": "array",
                  "description": "Merchant names or domains that are authorized to sell this product.",
                  "editor": "stringList",
                  "items": {
                    "type": "string"
                  }
                },
                "condition": {
                  "title": "Expected condition",
                  "type": "string",
                  "description": "NEW rejects used/refurbished offers when Google labels them.",
                  "editor": "select",
                  "enum": [
                    "NEW",
                    "USED",
                    "REFURBISHED",
                    "ANY"
                  ],
                  "default": "NEW"
                }
              },
              "required": [
                "inputId",
                "query"
              ]
            }
          },
          "markets": {
            "title": "Markets",
            "minItems": 1,
            "maxItems": 50,
            "type": "array",
            "description": "Country, Google interface language, and expected ISO currency for each market.",
            "items": {
              "type": "object",
              "properties": {
                "country": {
                  "title": "Country",
                  "type": "string",
                  "description": "Supported two-letter market code, such as us, uk, or de.",
                  "editor": "textfield"
                },
                "language": {
                  "title": "Language",
                  "type": "string",
                  "description": "Google interface language, such as en or de.",
                  "editor": "textfield"
                },
                "currency": {
                  "title": "Currency",
                  "type": "string",
                  "description": "Expected three-letter ISO 4217 currency code.",
                  "editor": "textfield"
                }
              },
              "required": [
                "country",
                "language",
                "currency"
              ]
            },
            "default": [
              {
                "country": "us",
                "language": "en",
                "currency": "USD"
              }
            ]
          },
          "mode": {
            "title": "Run mode",
            "enum": [
              "MONITOR",
              "SNAPSHOT"
            ],
            "type": "string",
            "description": "SNAPSHOT returns current observations. MONITOR also loads and updates persistent history.",
            "default": "MONITOR"
          },
          "maxConcurrency": {
            "title": "Maximum concurrency",
            "minimum": 1,
            "maximum": 20,
            "type": "integer",
            "description": "Maximum simultaneous Shopping requests.",
            "default": 5
          },
          "maxRequestRetries": {
            "title": "Request retries",
            "minimum": 0,
            "maximum": 8,
            "type": "integer",
            "description": "Retries after a request, rate-limit, timeout, or traffic challenge failure.",
            "default": 3
          },
          "requestTimeoutSecs": {
            "title": "Request timeout",
            "minimum": 5,
            "maximum": 120,
            "type": "integer",
            "description": "Per-attempt timeout in seconds.",
            "default": 30
          },
          "maxOffersPerQuery": {
            "title": "Maximum candidates per query",
            "minimum": 1,
            "maximum": 200,
            "type": "integer",
            "description": "Maximum Shopping candidates parsed before product matching and merchant deduplication.",
            "default": 100
          },
          "stateStoreName": {
            "title": "History store name",
            "type": "string",
            "description": "Named key-value store used across MONITOR runs. Keep this stable for continuous history.",
            "default": "google-shopping-price-monitor-state"
          },
          "proxyConfiguration": {
            "title": "Proxy",
            "type": "object",
            "description": "Google SERP Proxy is enabled in production.",
            "default": {
              "useApifyProxy": true
            }
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}