{
  "openapi": "3.0.1",
  "info": {
    "title": "Website Change Monitor & Diff Tracker",
    "description": "Monitor any website for content changes with automatic diff detection. Track pricing pages, competitor sites, ToS updates, and more. Compares snapshots, reports added/removed text, and supports CSS selector targeting for precise monitoring.",
    "version": "2.6",
    "x-build-id": "fafBKY9c7dk36JVBD"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/ryanclinton~website-change-monitor/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-ryanclinton-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/ryanclinton~website-change-monitor/runs": {
      "post": {
        "operationId": "runs-sync-ryanclinton-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/ryanclinton~website-change-monitor/run-sync": {
      "post": {
        "operationId": "run-sync-ryanclinton-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",
        "required": [
          "urls"
        ],
        "properties": {
          "urls": {
            "title": "URLs to Monitor",
            "maxItems": 1000,
            "type": "array",
            "description": "List of website URLs to monitor for content changes.",
            "default": [
              "https://example.com"
            ],
            "items": {
              "type": "string"
            }
          },
          "mode": {
            "title": "Comparison Mode",
            "enum": [
              "text",
              "html",
              "selector"
            ],
            "type": "string",
            "description": "How to compare page content: 'text' extracts visible text only, 'html' compares full HTML, 'selector' monitors a specific CSS selector.",
            "default": "text"
          },
          "cssSelector": {
            "title": "CSS Selector",
            "type": "string",
            "description": "CSS selector to monitor a specific page section (e.g., '.pricing', '#main-content'). Only used when mode is 'selector'."
          },
          "notifyOnlyChanges": {
            "title": "Only Report Changes",
            "type": "boolean",
            "description": "If true, only output items that have changes (status 'changed' or 'new'). If false, output all monitored URLs.",
            "default": true
          },
          "kvStoreName": {
            "title": "KV Store Name",
            "type": "string",
            "description": "Named Key-Value store for snapshot + history persistence across runs. If empty, uses the default actor KV store (snapshots lost between runs). Set this for scheduled monitoring."
          },
          "webhookUrl": {
            "title": "Webhook URL",
            "type": "string",
            "description": "Optional HTTP endpoint to POST change notifications to. Payload carries url, changeType, severity, category, magnitude, recommendedAction, alertPriority, keywordHits, whyItMatters, and snapshots when changes are detected."
          },
          "slackWebhookUrl": {
            "title": "Slack Webhook URL",
            "type": "string",
            "description": "Optional Slack incoming webhook URL. Sends a formatted Slack message with the change priority, category, and a plain-English summary when website changes are detected."
          },
          "watchKeywords": {
            "title": "Watch Keywords",
            "maxItems": 100,
            "type": "array",
            "description": "Keywords to watch for in the added/removed text. When any appear in a change, the change is escalated (severity bumped to major/critical) and the matched terms are reported in `keywordHits`. Example: 'price', 'discontinued', 'breaking change'.",
            "items": {
              "type": "string"
            }
          },
          "minSeverity": {
            "title": "Minimum Severity to Report",
            "enum": [
              "cosmetic",
              "minor",
              "major",
              "critical"
            ],
            "type": "string",
            "description": "Only output (and send notifications for) changes at or above this severity. Errors and first-run baselines always pass. Severities: cosmetic < minor < major < critical.",
            "default": "cosmetic"
          },
          "ignoreNoise": {
            "title": "Ignore Noise (date/counter-only changes)",
            "type": "boolean",
            "description": "If true, changes where only dates, timestamps, or numeric counters changed are suppressed from output and notifications. Cuts false alerts from 'Last updated' lines, view counts, and session tokens.",
            "default": false
          },
          "outputProfile": {
            "title": "Output Profile",
            "enum": [
              "minimal",
              "standard",
              "full"
            ],
            "type": "string",
            "description": "How much detail each dataset record carries. 'minimal' = decision fields only (severity, category, action) for automation. 'standard' = decision fields + snapshots + diff. 'full' = everything including the per-URL change history and full layer diffs.",
            "default": "standard"
          },
          "layers": {
            "title": "Monitoring Layers",
            "type": "array",
            "description": "Which layers of each page to monitor for change. 'content' is the visible-text/HTML diff. The others catch changes the text diff misses: 'metadata' (title, meta description, canonical, robots, hreflang), 'links' (internal/external links added/removed), 'structured-data' (JSON-LD / schema.org types, OpenGraph), 'technology' (analytics, tracking pixels, framework). Leave empty to use the profile's default.",
            "items": {
              "type": "string",
              "enum": [
                "content",
                "metadata",
                "links",
                "structured-data",
                "technology"
              ],
              "enumTitles": [
                "Content (visible text)",
                "Metadata / SEO",
                "Links",
                "Structured data",
                "Technology"
              ]
            }
          },
          "profile": {
            "title": "Monitoring Profile",
            "enum": [
              "general",
              "pricing",
              "legal",
              "ecommerce",
              "seo",
              "docs",
              "jobs",
              "competitor",
              "vendor",
              "custom"
            ],
            "type": "string",
            "description": "Use-case preset that auto-configures layers + watch keywords. 'pricing' watches prices/plans; 'legal' watches ToS/privacy; 'ecommerce' adds structured data + stock terms; 'seo' watches title/meta/canonical/schema/links; 'docs' watches API/breaking-change terms; 'jobs' watches posting status; 'competitor' watches pricing/feature/plan moves and emits competitorSignals. Explicit layers/keywords override the preset.",
            "default": "general"
          },
          "baselineMode": {
            "title": "Baseline Mode",
            "enum": [
              "latest",
              "locked"
            ],
            "type": "string",
            "description": "'latest' compares each run against the previous run (rolling). 'locked' freezes the first run's content as an approved baseline and reports any deviation from it on every subsequent run — for compliance teams who need 'has the live page drifted from the approved version?'.",
            "default": "latest"
          },
          "ignorePatterns": {
            "title": "Ignore Patterns (regex)",
            "maxItems": 50,
            "type": "array",
            "description": "Regex patterns; any line matching one is stripped before hashing and diffing. Kills recurring false positives like 'Last updated 2026-01-01' or 'Views: 4821'. Example: [\"\\\\d{4}-\\\\d{2}-\\\\d{2}\", \"Views:\"].",
            "items": {
              "type": "string"
            }
          },
          "ignoreSelectors": {
            "title": "Ignore Selectors (CSS)",
            "maxItems": 50,
            "type": "array",
            "description": "CSS selectors removed from the page before extraction (text/selector modes). Example: [\".timestamp\", \".view-counter\", \"#live-chat\"].",
            "items": {
              "type": "string"
            }
          },
          "autoDetectSections": {
            "title": "Suggest Monitorable Sections",
            "type": "boolean",
            "description": "When true, each page returns a `suggestedSelectors` list of CSS selectors detected on the page (e.g. #pricing, .plans, #terms) so you can pick a section to monitor without inspecting the HTML yourself.",
            "default": false
          },
          "historyDepth": {
            "title": "History Depth",
            "minimum": 1,
            "maximum": 200,
            "type": "integer",
            "description": "How many recent changes to retain per URL for trend analysis (volatility, average days between changes). Higher = longer changeTimeline. Requires a named KV store.",
            "default": 20
          },
          "discoverFromSitemap": {
            "title": "Discover Pages from Sitemap",
            "type": "boolean",
            "description": "When true, fetch each seed URL's /sitemap.xml and add the discovered pages to the monitored set (bounded by Max Discovered Pages). Turns 'monitor this site' into one input.",
            "default": false
          },
          "maxDiscoveredPages": {
            "title": "Max Discovered Pages",
            "minimum": 1,
            "maximum": 500,
            "type": "integer",
            "description": "Cap on pages discovered from a sitemap per seed URL. Each discovered page is fetched and monitored (and billed as an output event if it changes).",
            "default": 50
          },
          "notionConnector": {
            "title": "Notion connector (optional)",
            "type": "string",
            "description": "Archive each run's change alerts (severity counts + top changes) to Notion. Create the connector once in Apify Console → Settings → MCP connectors, then select it here. The actor never sees your Notion token."
          },
          "notionDatabaseId": {
            "title": "Notion database ID",
            "type": "string",
            "description": "Target Notion data source to write into. Leave blank to create standalone pages."
          },
          "notionArchiveProfile": {
            "title": "Notion detail",
            "enum": [
              "summary",
              "per-change"
            ],
            "type": "string",
            "description": "summary = one page per run (severity counts + top changes). per-change = one page per top change.",
            "default": "summary"
          },
          "slackConnector": {
            "title": "Slack connector (optional)",
            "type": "string",
            "description": "Post each run's change alerts to your Slack. Create the connector in Apify Console → Settings → MCP connectors. The actor never sees your Slack token. (A token-free alternative to the Slack webhook URL field.)"
          },
          "slackChannel": {
            "title": "Slack channel",
            "type": "string",
            "description": "Channel to post to, e.g. #site-changes. Leave blank for the connector's default channel."
          },
          "deliverTopN": {
            "title": "Changes to include in delivery",
            "minimum": 1,
            "maximum": 50,
            "type": "integer",
            "description": "How many top changes to include in the Slack/Notion delivery (1-50). The full set stays in the dataset.",
            "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
                  }
                }
              },
              "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}