{
  "openapi": "3.0.1",
  "info": {
    "title": "Website Change Monitor – Page Diff, Price & Keyword Alerts",
    "description": "Monitor web pages for changes on a schedule: line-by-line diff, change %, CSS-selector targeting, price-drop and keyword alerts, webhook to Slack/Discord/n8n. HTTP only, robots.txt respected. Unchanged checks cost $0.0005.",
    "version": "0.1",
    "x-build-id": "vzR3i0hczqCMRoPQw"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/gazidev~website-change-monitor/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-gazidev-website-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/gazidev~website-change-monitor/runs": {
      "post": {
        "operationId": "runs-sync-gazidev-website-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/gazidev~website-change-monitor/run-sync": {
      "post": {
        "operationId": "run-sync-gazidev-website-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",
        "properties": {
          "pages": {
            "title": "Pages to monitor",
            "type": "array",
            "description": "List of pages. Each item is a URL string or an object: `{\"url\": \"https://site.com/pricing\", \"selector\": \"main\", \"label\": \"Competitor pricing\", \"ignoreSelectors\": [\".banner\"], \"watchFor\": [\"sold out\"], \"priceSelector\": \".price\", \"trackPrice\": true}`. Per-page settings override the global ones below."
          },
          "urls": {
            "title": "Or: plain list of URLs",
            "type": "array",
            "description": "Simple alternative to 'Pages to monitor': one URL per line, using the global settings below.",
            "items": {
              "type": "string"
            }
          },
          "selector": {
            "title": "CSS selector (global)",
            "type": "string",
            "description": "Only watch this part of the page, e.g. `main`, `#pricing`, `.product-info`, `table.results`. Empty = whole page body. Navigation, ads and cookie banners are always dropped."
          },
          "ignoreSelectors": {
            "title": "Ignore these elements",
            "type": "array",
            "description": "CSS selectors removed before comparing, e.g. `.related-posts`, `#footer`, `.timestamp`.",
            "items": {
              "type": "string"
            }
          },
          "watchFor": {
            "title": "Keywords to watch",
            "type": "array",
            "description": "Case-insensitive words or phrases. The output lists how often each appears, and which keywords appeared or disappeared since the last run (e.g. `sold out`, `in stock`, `deadline`, `tender`).",
            "items": {
              "type": "string"
            }
          },
          "trackPrice": {
            "title": "Track price",
            "type": "boolean",
            "description": "Extract a price (from product meta tags / JSON-LD, otherwise the first amount with a currency in the watched text) and report old price, new price and % change.",
            "default": false
          },
          "priceSelector": {
            "title": "Price CSS selector",
            "type": "string",
            "description": "Optional, more exact than auto-detection: the element that holds the price, e.g. `.price-current`. Turns price tracking on."
          },
          "notifyOn": {
            "title": "Report a change when",
            "enum": [
              "anyChange",
              "keywordsOrPrice"
            ],
            "type": "string",
            "description": "Controls which changes count as a 'changed' row, the change-detected event and the webhook.",
            "default": "anyChange"
          },
          "minChangePercent": {
            "title": "Minimum change (% of lines)",
            "minimum": 0,
            "maximum": 100,
            "type": "integer",
            "description": "Ignore tiny edits: a change touching fewer lines than this % of the page is a 'minor-change' (not reported, not charged as a change). Price and keyword changes are always reported.",
            "default": 0
          },
          "ignoreDynamicContent": {
            "title": "Ignore clocks, 'x minutes ago' and random tokens",
            "type": "boolean",
            "description": "Masks times of day, relative times and long random tokens (nonces, session IDs) so they do not trigger false alerts.",
            "default": true
          },
          "ignoreDates": {
            "title": "Also ignore dates",
            "type": "boolean",
            "description": "Mask calendar dates (2026-10-27, 27 October 2026, 10/27/2026). Leave off when a new date is the change you want to see.",
            "default": false
          },
          "ignorePatterns": {
            "title": "Ignore text matching (regex)",
            "type": "array",
            "description": "Regular expressions removed from the text before comparing, e.g. `Visitors today: \\d+`.",
            "items": {
              "type": "string"
            }
          },
          "webhookUrl": {
            "title": "Webhook URL",
            "type": "string",
            "description": "POSTed once per run when something changed, with a JSON list of changes. The payload has `text` and `content` fields, so Slack and Discord incoming webhooks show it directly; n8n, Make and Zapier get the full JSON."
          },
          "webhookOnEveryRun": {
            "title": "Call the webhook even when nothing changed",
            "type": "boolean",
            "description": "Useful as a heartbeat.",
            "default": false
          },
          "includeUnchanged": {
            "title": "Output unchanged pages too",
            "type": "boolean",
            "description": "On (default): one row per checked page, so every run shows its result (filter on `changed` / `status`). Turn off for a pure change feed: only new baselines, changes and errors are written.",
            "default": true
          },
          "includeSnapshotText": {
            "title": "Include the full page text",
            "type": "boolean",
            "description": "Adds the normalised text of the watched part (up to 400k characters) to every row.",
            "default": false
          },
          "stateKey": {
            "title": "Monitor name (state key)",
            "type": "string",
            "description": "Snapshots are kept in your named key-value store `website-change-monitor-<name>`, so every scheduled run compares with the previous one. Use a different name per task to keep monitors apart, or a new name to start fresh.",
            "default": "default"
          },
          "maxItems": {
            "title": "Max pages per run",
            "minimum": 1,
            "maximum": 10000,
            "type": "integer",
            "description": "Maximum number of pages checked in one run. Extra pages are skipped.",
            "default": 100
          },
          "maxConcurrency": {
            "title": "Websites checked in parallel",
            "minimum": 1,
            "maximum": 20,
            "type": "integer",
            "description": "Pages on the same website are always fetched one at a time with at least 1 s between requests (or the robots.txt crawl-delay).",
            "default": 5
          },
          "requestTimeoutSecs": {
            "title": "Request timeout (seconds)",
            "minimum": 5,
            "maximum": 120,
            "type": "integer",
            "description": "Per request. Slow servers are retried up to 2 times.",
            "default": 30
          },
          "proxyConfiguration": {
            "title": "Proxy",
            "type": "object",
            "description": "Not needed for most sites. Datacenter proxy only helps when a site rate-limits by IP.",
            "default": {
              "useApifyProxy": false
            }
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}