{
  "openapi": "3.0.1",
  "info": {
    "title": "Page Change Monitor: Website Change Detection & Diff Alerts",
    "description": "Get alerted when a web page really changes. Noise filtered (dates, counters, ads, tokens) and every change re-checked before it is reported. Structured diff with before/after prices, dates and versions, optional highlighted screenshots. History in your own Apify storage. Pay per check.",
    "version": "1.0",
    "x-build-id": "tTeT10gKnIy81qQuY"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/neocraft~page-change-monitor/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-neocraft-page-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/neocraft~page-change-monitor/runs": {
      "post": {
        "operationId": "runs-sync-neocraft-page-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/neocraft~page-change-monitor/run-sync": {
      "post": {
        "operationId": "run-sync-neocraft-page-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": {
          "urls": {
            "title": "URLs to watch",
            "type": "array",
            "description": "Web pages (or JSON / text files) to watch. Up to 500 per run. Each URL is compared with its previous capture stored in your monitor's history. The first run of a URL only stores a baseline (free).",
            "items": {
              "type": "string"
            }
          },
          "monitorName": {
            "title": "Monitor name",
            "type": "string",
            "description": "Name of this monitor (lowercase letters, digits and dashes, max 40). The history lives in a named key-value store 'page-change-monitor-<name>' in YOUR Apify account, so every scheduled run with the same name compares with the previous one. Use one name per watch list.",
            "default": "default"
          },
          "selector": {
            "title": "CSS selector to watch (optional)",
            "type": "string",
            "description": "Only watch the part of the page matching this CSS selector (e.g. '#pricing', 'main', '.changelog'). Applies to every URL unless a target sets its own. Leave empty to watch the whole page text."
          },
          "ignoreSelectors": {
            "title": "CSS selectors to ignore",
            "type": "array",
            "description": "Parts of the page to leave out of the comparison (e.g. '.sidebar', '#comments', '.stock-ticker'). Ads, cookie banners, scripts and hidden elements are already ignored.",
            "items": {
              "type": "string"
            }
          },
          "ignorePatterns": {
            "title": "Text patterns to ignore (regex)",
            "type": "array",
            "description": "Regular expressions (RE2 syntax, linear time) removed from the text before comparing (e.g. 'Build #\\d+'). Max 20 patterns of 200 characters; backreferences and lookarounds are not supported.",
            "items": {
              "type": "string"
            }
          },
          "mode": {
            "title": "Fetch mode",
            "enum": [
              "auto",
              "http",
              "browser"
            ],
            "type": "string",
            "description": "auto (recommended): plain HTTP first, a headless browser only when the page needs JavaScript (remembered for next runs). http: never start a browser (cheapest). browser: always render with Chromium.",
            "default": "auto"
          },
          "screenshots": {
            "title": "Before/after screenshots",
            "type": "boolean",
            "description": "Store a screenshot at the baseline and at every confirmed change, with the changed regions highlighted. Needs the browser, so every check of these URLs is a browser check. Screenshots are kept 90 days in your monitor's store.",
            "default": false
          },
          "targets": {
            "title": "Advanced: per-URL settings",
            "type": "array",
            "description": "Optional list of objects for per-URL settings, added to 'urls': {\"url\": \"https://...\", \"selector\": \"#price\", \"ignoreSelectors\": [\".promo\"], \"ignorePatterns\": [\"\\\\d+ in stock\"], \"mode\": \"auto|http|browser\", \"screenshot\": true, \"label\": \"Competitor pricing\"}. Only 'url' is required."
          },
          "noiseFilter": {
            "title": "Automatic noise filter",
            "type": "boolean",
            "description": "Ignore changes that are only clocks and today's dates, relative times ('5 minutes ago'), view/visitor counters, random tokens and IDs, copyright years. Dates further than 2 days from today (release dates, deadlines) and prices are never ignored.",
            "default": true
          },
          "ignoreTimes": {
            "title": "Ignore times of day",
            "type": "boolean",
            "description": "Treat times of day (9:00, 18:30, 3:45 PM) as noise. Turn off to track opening hours, timetables or event times (the rest of the noise filter stays on).",
            "default": true
          },
          "complianceReceipt": {
            "title": "Compliance receipt",
            "type": "boolean",
            "description": "Add a free `receipt` object to every result: UTC time, final URL and redirect chain, HTTP status, SHA-256 of the monitored text and of the raw body, robots.txt decision for this tool and for the main AI crawlers (GPTBot, ClaudeBot, Google-Extended, PerplexityBot, CCBot...) with the robots.txt hash, X-Robots-Tag / meta robots (noai, noimageai, noindex), TDMRep header/meta, Content-Signal and license links. Uses only what is already downloaded: no extra request, no extra charge.",
            "default": true
          },
          "deepPolicyChecks": {
            "title": "Deep policy checks (.well-known files)",
            "type": "boolean",
            "description": "Also read /.well-known/tdmrep.json and /ai.txt for the receipt: at most one request each per website per run, only if robots.txt allows it, 64 kB cap. Off by default to keep runs light.",
            "default": false
          },
          "confirmChanges": {
            "title": "Double-check every change",
            "type": "boolean",
            "description": "When a change is seen, fetch the page again a few seconds later and report only what both fetches show (removes rotating ads, A/B tests, random widgets). The re-check is included in the price of the check.",
            "default": true
          },
          "confirmDelaySecs": {
            "title": "Re-check delay (seconds)",
            "minimum": 0,
            "maximum": 60,
            "type": "integer",
            "description": "Wait before the confirmation re-check (0-60).",
            "default": 5
          },
          "onlyChanges": {
            "title": "Output only changes and errors",
            "type": "boolean",
            "description": "Leave unchanged and baseline URLs out of the dataset, so an empty dataset means 'nothing changed' (handy for alert integrations). The SUMMARY record always lists everything.",
            "default": false
          },
          "cookieBanners": {
            "title": "Cookie banners (browser checks)",
            "enum": [
              "hide",
              "reject",
              "accept",
              "none"
            ],
            "type": "string",
            "description": "What to do with cookie banners when a browser is used: hide them (default, no consent given), click 'reject', click 'accept', or leave them.",
            "default": "hide"
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}