{
  "openapi": "3.0.1",
  "info": {
    "title": "Website Change Monitor with AI Alerts",
    "description": "Website change detection for competitor pricing, plans and policy pages. Each run returns only real changes, explained by AI with a severity score and a suggested action. Ignores cookie banners, timestamps and other noise. Schedule it daily and send alerts by webhook.",
    "version": "0.0",
    "x-build-id": "buCJlezA2qt2xa2gC"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/subtle_pluto~ai-website-change-monitor/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-subtle_pluto-ai-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/subtle_pluto~ai-website-change-monitor/runs": {
      "post": {
        "operationId": "runs-sync-subtle_pluto-ai-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/subtle_pluto~ai-website-change-monitor/run-sync": {
      "post": {
        "operationId": "run-sync-subtle_pluto-ai-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": [
          "pages"
        ],
        "properties": {
          "pages": {
            "title": "Pages to watch",
            "type": "array",
            "description": "The pages to check on every run. Schedule this Actor (daily works well) and each run compares every page to its last snapshot. Add a label to any page under User data, for example {\"label\": \"Competitor pricing\"}.",
            "items": {
              "type": "object",
              "required": [
                "url"
              ],
              "properties": {
                "url": {
                  "type": "string",
                  "title": "URL of a web page",
                  "format": "uri"
                }
              }
            }
          },
          "watchFor": {
            "title": "What do you care about?",
            "type": "string",
            "description": "Plain words, comma separated. Changes that touch these topics get a higher severity, for example: price, free trial, enterprise plan, refund policy."
          },
          "cssSelector": {
            "title": "Only watch part of the page (CSS selector)",
            "type": "string",
            "description": "Optional. Watch one region, such as #pricing or main article. Leave empty to watch the whole page."
          },
          "minChangeChars": {
            "title": "Ignore edits smaller than (characters)",
            "minimum": 0,
            "maximum": 5000,
            "type": "integer",
            "description": "Changes smaller than this are treated as typos or noise.",
            "default": 40
          },
          "useAI": {
            "title": "Explain changes with AI",
            "type": "boolean",
            "description": "When on, each change gets a plain-English summary, a severity from 1 to 5, why it matters, and a suggested action. When off, or when no AI key is available, built-in rules describe the change instead.",
            "default": true
          },
          "onlyChanges": {
            "title": "Output only pages that changed",
            "type": "boolean",
            "description": "When on, the dataset holds only changed pages. When off, every page gets a status row (baseline, unchanged, changed, blocked).",
            "default": false
          },
          "ignoreVolatileText": {
            "title": "Ignore timestamps and rotating tokens",
            "type": "boolean",
            "description": "Strips clock times, 'x minutes ago' text, session IDs and long tokens before comparing, so they never trigger false alerts.",
            "default": true
          },
          "notifyWebhookUrl": {
            "title": "Send changes to a webhook (optional)",
            "type": "string",
            "description": "If set, the run POSTs a JSON list of changed pages here when anything changes. Works with Zapier, Make, n8n, Slack workflows and your own API."
          },
          "anthropicApiKey": {
            "title": "Your own Anthropic API key (optional)",
            "type": "string",
            "description": "Optional. Leave empty to use the built-in AI. Add your own key only if you prefer to run summaries on your own Anthropic account."
          },
          "maxPages": {
            "title": "Max pages per run",
            "minimum": 1,
            "maximum": 2000,
            "type": "integer",
            "description": "A safety cap on how many pages one run checks.",
            "default": 200
          },
          "maxConcurrency": {
            "title": "Pages checked at once",
            "minimum": 1,
            "maximum": 10,
            "type": "integer",
            "description": "How many pages are fetched in parallel.",
            "default": 5
          },
          "stateStoreName": {
            "title": "Snapshot store name",
            "type": "string",
            "description": "Snapshots live in this named key-value store in your account. Use a different name to keep separate watch lists apart.",
            "default": "ai-change-monitor-state"
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}