{
  "openapi": "3.0.1",
  "info": {
    "title": "Price Monitor - Track Product Prices on Shopify & More",
    "description": "Track product prices on stores that publish product data. Get price, currency, stock, SKU and GTIN, the change since the last check, and alerts for price drops. Blocked pages are free.",
    "version": "0.1",
    "x-build-id": "OCeOREdlt8yUx0tLU"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/goldstandardweb~price-change-monitor/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-goldstandardweb-price-change-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/goldstandardweb~price-change-monitor/runs": {
      "post": {
        "operationId": "runs-sync-goldstandardweb-price-change-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/goldstandardweb~price-change-monitor/run-sync": {
      "post": {
        "operationId": "run-sync-goldstandardweb-price-change-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": [
          "urls"
        ],
        "properties": {
          "urls": {
            "title": "Product pages",
            "type": "array",
            "description": "Full links of the product pages to track, one per line (for example https://scrapeme.live/shop/Bulbasaur/). Each run reads the current price and compares it with the price stored by the previous run. Up to 5,000 links per run. Works on stores that publish schema.org product data, which most Shopify, WooCommerce, Magento and BigCommerce stores do.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "alertBelowPrice": {
            "title": "Alert when the price is at or below",
            "type": "string",
            "description": "Optional. A target price, in the currency the store shows (for example 49.99). A row gets alert = true when the price reaches it (once, until it goes back above). It applies to every link in this run; for a different target per product, save one task per target. Leave empty for no target.",
            "default": ""
          },
          "alertDropPercent": {
            "title": "Alert when the price drops by (%)",
            "minimum": 1,
            "maximum": 100,
            "type": "integer",
            "description": "Optional. A row gets alert = true when the price fell by at least this percent since the last check (for example 10). Leave empty for no percent alert."
          },
          "alertOnBackInStock": {
            "title": "Alert when a product is back in stock",
            "type": "boolean",
            "description": "A row gets alert = true when a product that was out of stock (or sold out, or discontinued) can be bought again.",
            "default": true
          },
          "outputMode": {
            "title": "Rows to output",
            "enum": [
              "all",
              "changes",
              "alerts"
            ],
            "type": "string",
            "description": "Every product checked: one row per product each run. Only new and changed prices: first readings, price or stock changes, and alerts. Only alerts: rows that hit one of your alerts. Rows that are not output are not charged; the stored prices are still updated.",
            "default": "all"
          },
          "includeErrors": {
            "title": "Include problem rows",
            "type": "boolean",
            "description": "Output a free row for pages that could not be read (blocked, not found, no price found, disallowed by robots.txt). Turn off to get only price rows; problems are still listed in the log.",
            "default": true
          },
          "priceSelector": {
            "title": "Price element (CSS selector)",
            "type": "string",
            "description": "Optional, for stores without product data. A CSS selector for the price element, for example .price or #product-price. It applies to every link in this run, and when it matches a price, that price is used instead of the product data on the page. So put the stores that need it in their own task. Leave empty to use the product data first.",
            "default": ""
          },
          "monitorName": {
            "title": "Monitor name",
            "type": "string",
            "description": "Prices are stored per monitor name (and per saved task). Use a different name to start a separate price history, for example \"competitor-prices\". Letters, digits and dashes, up to 40.",
            "default": "default"
          },
          "maxResults": {
            "title": "Maximum charged prices per run",
            "minimum": 1,
            "maximum": 10000,
            "type": "integer",
            "description": "The run stops after this many price rows (each one is charged). Pages left over are not charged and are listed in the log. Up to 10,000.",
            "default": 1000
          },
          "maxRunMinutes": {
            "title": "Run time limit (minutes)",
            "minimum": 1,
            "maximum": 600,
            "type": "integer",
            "description": "The run stops checking new pages after this many minutes and saves its progress. Pages left over are not charged.",
            "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
                  },
                  "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}