{
  "openapi": "3.0.1",
  "info": {
    "title": "Website Change Monitor - Page Diffs & Price Alerts, $1/1K",
    "description": "Track changes on any web page and get line-by-line diffs, similarity %, keyword and price alerts, with optional JS rendering and before/after screenshots. Built for schedules and Slack/email alerts. $1 per 1,000 URL checks.",
    "version": "0.1",
    "x-build-id": "i5SjGUAfZGcy3SoUL"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/plotpointtech~website-change-monitor/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-plotpointtech-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/plotpointtech~website-change-monitor/runs": {
      "post": {
        "operationId": "runs-sync-plotpointtech-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/plotpointtech~website-change-monitor/run-sync": {
      "post": {
        "operationId": "run-sync-plotpointtech-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": {
          "startUrls": {
            "title": "URLs to monitor",
            "type": "array",
            "description": "Pages to check for changes. Each run compares every page with the snapshot saved by the previous run. Only monitor pages you are allowed to; pages blocked by the site's robots.txt are skipped.",
            "default": [
              {
                "url": "https://books.toscrape.com/catalogue/a-light-in-the-attic_1000/index.html"
              },
              {
                "url": "https://www.python.org/downloads/"
              }
            ],
            "items": {
              "type": "object",
              "required": [
                "url"
              ],
              "properties": {
                "url": {
                  "type": "string",
                  "title": "URL of a web page",
                  "format": "uri"
                }
              }
            }
          },
          "contentMode": {
            "title": "Content to compare",
            "enum": [
              "pageText",
              "readable",
              "fullText"
            ],
            "type": "string",
            "description": "'Page text' compares the page's main area with navigation, header, footer, sidebars, forms and cookie banners removed (good for product, pricing, changelog and listing pages). 'Readable article text' uses trafilatura to keep only the main article prose, which is the least noisy but can drop lists and tables. 'All visible text' compares everything in the page body. Ignored when a CSS selector is set.",
            "default": "pageText"
          },
          "cssSelector": {
            "title": "Watch only this part (CSS selector)",
            "type": "string",
            "description": "Optional. Compare only the text inside elements matching this selector, e.g. '.price', '#changelog' or 'main table'. The check fails with an error if nothing matches."
          },
          "ignoreSelectors": {
            "title": "Ignore these parts (CSS selectors)",
            "type": "array",
            "description": "Optional. Elements removed before comparing, for noisy parts such as ads, timestamps, counters or 'related items' boxes, e.g. '.ad', 'time', '#recently-viewed'.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "ignorePatterns": {
            "title": "Ignore text matching (regex)",
            "type": "array",
            "description": "Optional. Regular expressions removed from each line before comparing, e.g. '\\d{1,2}:\\d{2}' for clock times or 'Updated .* ago'. Invalid expressions are treated as plain text.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "keywords": {
            "title": "Keyword alerts",
            "type": "array",
            "description": "Optional. Words or phrases to watch (case-insensitive). The record reports when one appears, disappears or its count changes compared with the previous check, e.g. 'In stock', 'Sold out', 'deadline'.",
            "default": [
              "In stock",
              "Python 3.14"
            ],
            "items": {
              "type": "string"
            }
          },
          "trackPrices": {
            "title": "Detect price changes",
            "type": "boolean",
            "description": "Extract price-like amounts with a currency ($19.99, 1.299,00 €, 250 USD) from the watched content and report which ones changed, with percent change.",
            "default": true
          },
          "onlyChangedResults": {
            "title": "Output only changed pages",
            "type": "boolean",
            "description": "If on, unchanged pages, first-time baselines and errors are not written to the dataset (they are still checked and baseline checks are still charged). Handy when an integration should only receive changes.",
            "default": false
          },
          "renderJavaScript": {
            "title": "Render JavaScript (browser)",
            "type": "boolean",
            "description": "Load pages in a real Chrome browser for sites that build their content with JavaScript. Slower and charged as a browser check. Use 2 GB memory or more.",
            "default": false
          },
          "saveScreenshots": {
            "title": "Save before/after screenshots",
            "type": "boolean",
            "description": "Only with browser rendering. Saves a JPEG screenshot (up to 6,000 px tall) on each check; when a page changes, the record links to the before and after images.",
            "default": false
          },
          "waitAfterLoadMs": {
            "title": "Extra wait after page load (ms)",
            "minimum": 0,
            "maximum": 20000,
            "type": "integer",
            "description": "Only with browser rendering. Extra time to let late content appear.",
            "default": 0
          },
          "snapshotStoreName": {
            "title": "Snapshot store name",
            "type": "string",
            "description": "Name of the key-value store in your account that keeps the previous snapshot of each page. Use a different name per monitor (e.g. 'competitor-prices') to keep separate histories. Lowercase letters, digits and dashes.",
            "default": "website-change-monitor"
          },
          "maxDiffLines": {
            "title": "Maximum diff lines",
            "minimum": 10,
            "maximum": 5000,
            "type": "integer",
            "description": "Longest unified diff kept in a record. Added/removed lines are capped at 100 each.",
            "default": 300
          },
          "maxConcurrency": {
            "title": "Parallel checks",
            "minimum": 1,
            "maximum": 10,
            "type": "integer",
            "description": "How many pages are checked at the same time. Requests to the same website are always spaced at least 1 second apart.",
            "default": 5
          },
          "requestTimeoutSecs": {
            "title": "Page timeout (seconds)",
            "minimum": 10,
            "maximum": 120,
            "type": "integer",
            "description": "How long to wait for each page before the check counts as an error.",
            "default": 30
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}