{
  "openapi": "3.0.1",
  "info": {
    "title": "🔔 Website Change Monitor - Alerts Only On Real Changes",
    "description": "⚡ ~$0.002/check. Watch any page or CSS selector and get a Slack/Discord alert only when something REALLY changes. ✅ Ignores cookie banners, timestamps, tokens and view counters — the noise that makes other change detectors cry wolf.",
    "version": "1.0",
    "x-build-id": "Fr8wbx3wPBYKb8rJw"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/that_red_bird~website-change-monitor/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-that_red_bird-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/that_red_bird~website-change-monitor/runs": {
      "post": {
        "operationId": "runs-sync-that_red_bird-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/that_red_bird~website-change-monitor/run-sync": {
      "post": {
        "operationId": "run-sync-that_red_bird-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 watch",
            "type": "array",
            "description": "Pages to monitor. Plain URLs, or objects like {\"url\":\"https://…\",\"selector\":\".price\",\"label\":\"competitor-a\"} to override settings per URL.",
            "default": [
              "https://books.toscrape.com/catalogue/a-light-in-the-attic_1000/index.html"
            ]
          },
          "mode": {
            "title": "What to compare",
            "enum": [
              "text",
              "selector",
              "html",
              "jsonld",
              "meta",
              "regex"
            ],
            "type": "string",
            "description": "text = visible text (recommended) · selector = one element · html = raw markup · jsonld = structured data field · meta = meta tag · regex = custom pattern.",
            "default": "text"
          },
          "selector": {
            "title": "CSS selector",
            "type": "string",
            "description": "Used by the text / selector / html modes. Leave empty to watch the whole page."
          },
          "excludeSelectors": {
            "title": "Ignore these elements",
            "type": "array",
            "description": "CSS selectors removed before comparing — cookie banners, ads, chat widgets, 'related products'. This is the single best fix for false alerts.",
            "default": [
              ".cookie-banner",
              "#ads",
              ".chat-widget"
            ],
            "items": {
              "type": "string"
            }
          },
          "attr": {
            "title": "Attribute",
            "type": "string",
            "description": "With selector mode: read this attribute instead of the element's text (e.g. href, content)."
          },
          "ldType": {
            "title": "JSON-LD @type",
            "type": "string",
            "description": "With jsonld mode, e.g. Product."
          },
          "path": {
            "title": "JSON-LD path",
            "type": "string",
            "description": "With jsonld mode, dotted path, e.g. offers.price"
          },
          "pattern": {
            "title": "Regex pattern",
            "type": "string",
            "description": "With regex mode. The first capture group is what gets compared."
          },
          "onlyChanges": {
            "title": "Only output changes",
            "type": "boolean",
            "description": "Push only rows that actually changed (plus repeatedly broken pages). Recommended when watching many URLs on a schedule.",
            "default": false
          },
          "alertOnErrorAfter": {
            "title": "Report a broken page after N failures",
            "minimum": 0,
            "maximum": 50,
            "type": "integer",
            "description": "A page failing once is noise; failing this many runs in a row is news — dead link, blocked, or the site was restructured. 0 disables it.",
            "default": 3
          },
          "notifyOnFirstRun": {
            "title": "Notify on first run",
            "type": "boolean",
            "description": "By default the first run only records a baseline and sends nothing.",
            "default": false
          },
          "resetBaseline": {
            "title": "Reset baseline",
            "type": "boolean",
            "description": "Forget everything stored and start fresh. Use after you change the selector or mode.",
            "default": false
          },
          "keepHistory": {
            "title": "Keep history entries",
            "minimum": 0,
            "maximum": 200,
            "type": "integer",
            "description": "Store this many past values per target so you can see how a page evolved. 0 disables history.",
            "default": 0
          },
          "maxItems": {
            "title": "Max output rows",
            "minimum": 0,
            "type": "integer",
            "description": "Hard cap on dataset rows per run. 0 = no cap.",
            "default": 0
          },
          "renderJs": {
            "title": "Render JavaScript",
            "type": "boolean",
            "description": "Use a headless browser. Slower and more expensive — only enable if the content is missing without it.",
            "default": false
          },
          "waitForSelector": {
            "title": "Wait for selector",
            "type": "string",
            "description": "With Render JavaScript on: wait until this element appears before reading the page."
          },
          "customHeaders": {
            "title": "Custom headers",
            "type": "object",
            "description": "Extra request headers, e.g. a Cookie or Authorization header for pages behind a login."
          },
          "concurrency": {
            "title": "Concurrency",
            "minimum": 1,
            "maximum": 20,
            "type": "integer",
            "description": "How many URLs to check in parallel.",
            "default": 5
          },
          "webhookUrl": {
            "title": "Webhook URL",
            "type": "string",
            "description": "POSTs a JSON payload here when something changes. Works with Slack, Discord, Zapier and Make."
          },
          "stateStoreName": {
            "title": "State store name",
            "type": "string",
            "description": "Named key-value store holding the previous values. Use different names to keep separate watch lists.",
            "default": "website-change-monitor-state"
          },
          "proxyConfiguration": {
            "title": "Proxy",
            "type": "object",
            "description": "Optional Apify proxy configuration for sites that block datacenter traffic."
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}