{
  "openapi": "3.0.1",
  "info": {
    "title": "Shopify & WooCommerce Price Tracker - Price Drop Alerts",
    "description": "Track prices, discounts and stock of any Shopify or WooCommerce store. Price drop, back in stock, new and removed product alerts, 30-day lowest price. $0.30 per 1,000 products.",
    "version": "0.1",
    "x-build-id": "7xRlvdMMAreOvbezJ"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/betterscaperever~shopify-woocommerce-price-tracker/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-betterscaperever-shopify-woocommerce-price-tracker",
        "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/betterscaperever~shopify-woocommerce-price-tracker/runs": {
      "post": {
        "operationId": "runs-sync-betterscaperever-shopify-woocommerce-price-tracker",
        "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/betterscaperever~shopify-woocommerce-price-tracker/run-sync": {
      "post": {
        "operationId": "run-sync-betterscaperever-shopify-woocommerce-price-tracker",
        "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": [
          "startUrls"
        ],
        "properties": {
          "startUrls": {
            "title": "Store, collection or product URLs",
            "type": "array",
            "description": "Any mix of Shopify or WooCommerce store home pages (the whole catalog), collection or category pages, and product pages. The platform is detected automatically. Examples: https://www.deathwishcoffee.com, https://shop.example.com/collections/sale, https://woocommerce.com/product-category/themes/",
            "items": {
              "type": "string"
            }
          },
          "outputMode": {
            "title": "What to save",
            "enum": [
              "all",
              "changes"
            ],
            "type": "string",
            "description": "<b>Every product</b>: the full catalog on every run, each product marked with what changed since the previous run. <b>Only changes</b>: only products with an alert (price drop, back in stock, new, removed...); unchanged products are just checked, for $0.01 per 1,000. The first run records prices and reports changes from the second run on.",
            "default": "all"
          },
          "trackChanges": {
            "title": "Track changes between runs",
            "type": "boolean",
            "description": "Remember prices and stock between runs to detect changes and the lowest price of the last 30 days. Turn off for a one-off catalog export.",
            "default": true
          },
          "trackerKey": {
            "title": "Tracker name",
            "pattern": "^[a-zA-Z0-9-]{1,40}$",
            "type": "string",
            "description": "Runs with the same name share their price memory. Use a different name for each independent watch list, e.g. \"competitors-eu\". Letters, digits and hyphens.",
            "default": "default"
          },
          "alertTypes": {
            "title": "Alerts",
            "type": "array",
            "description": "Which changes count as alerts. In \"Only changes\" mode only these are saved.",
            "items": {
              "type": "string",
              "enum": [
                "new_product",
                "price_drop",
                "price_increase",
                "back_in_stock",
                "out_of_stock",
                "discount_started",
                "removed"
              ],
              "enumTitles": [
                "New product",
                "Price drop",
                "Price increase",
                "Back in stock",
                "Sold out",
                "Discount started",
                "Removed from the store"
              ]
            },
            "default": [
              "new_product",
              "price_drop",
              "price_increase",
              "back_in_stock",
              "out_of_stock",
              "discount_started",
              "removed"
            ]
          },
          "minDropPercent": {
            "title": "Minimum price drop (%)",
            "minimum": 0,
            "maximum": 100,
            "type": "number",
            "description": "Ignore smaller drops. 0 = every drop.",
            "default": 0
          },
          "minDropAmount": {
            "title": "Minimum price drop (amount)",
            "minimum": 0,
            "type": "number",
            "description": "Ignore drops smaller than this amount, in the store's currency. 0 = every drop.",
            "default": 0
          },
          "maxProductsPerSource": {
            "title": "Max products per URL",
            "minimum": 0,
            "maximum": 100000,
            "type": "integer",
            "description": "Products read from each URL (0 = the whole catalog). In \"Only changes\" mode it caps the products checked, so a scheduled run costs a predictable amount.",
            "default": 1000
          },
          "maxProductsTotal": {
            "title": "Max products per run",
            "minimum": 0,
            "maximum": 1000000,
            "type": "integer",
            "description": "Products read in the whole run, across all URLs (0 = no limit). Your Maximum cost per run is always respected too.",
            "default": 0
          },
          "includeVariants": {
            "title": "Include variants",
            "type": "boolean",
            "description": "Each size/color with its own price, compare-at price, SKU and stock flag.",
            "default": true
          },
          "includeDescription": {
            "title": "Include description",
            "type": "boolean",
            "description": "The product description as plain text (up to 2,000 characters).",
            "default": false
          },
          "proxyConfiguration": {
            "title": "Proxy",
            "type": "object",
            "description": "Apify datacenter proxy by default. Stores are read slowly and politely; the Actor never works around a store's bot protection.",
            "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
                  },
                  "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}