{
  "openapi": "3.0.1",
  "info": {
    "title": "Website Change Monitor — Page Diff & Change Alerts",
    "description": "Monitor any web page for content changes between runs. Each check hashes the page (or a CSS-selected part of it), compares it with the previous snapshot, and returns a line-level diff on change. Optional JavaScript rendering and webhook alerts.",
    "version": "1.0",
    "x-build-id": "3XV5sgfqvhbip7fqX"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/sian.agency~website-change-monitor/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-sian.agency-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/sian.agency~website-change-monitor/runs": {
      "post": {
        "operationId": "runs-sync-sian.agency-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/sian.agency~website-change-monitor/run-sync": {
      "post": {
        "operationId": "run-sync-sian.agency-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": {
          "url": {
            "title": "🔗 Single Page URL",
            "pattern": "^(https?://[^\\s]+|([a-z0-9-]+\\.)+[a-z]{2,}[^\\s]*)$",
            "type": "string",
            "description": "🔗 **SINGLE PAGE CHECK:** one page, one row — first_check on the first run, then unchanged or changed with a diff.\n\n🔗 Used when the bulk list and list file are empty. Any public http(s) page works; a bare address is read as https://.\n\n🚫 Not supported: pages behind a login, private/internal addresses, non-web links.",
            "default": "https://example.com"
          },
          "bulkUrls": {
            "title": "🚀 Bulk Page URLs (Multiple Pages)",
            "uniqueItems": true,
            "type": "array",
            "description": "🚀 **BULK CHECKING:** watches many pages in one run — one row per page.\n\n📊 **TIER LIMITS:**\n- **PAID users:** unlimited pages per run\n- **FREE users:** first 5 pages per run\n\n💡 **TIP:** Watching a single page? Use the single URL field above.\n\n📋 **BULK EDIT:** click \"Bulk edit\" to paste URLs, one per line\n📄 **TEXT FILE:** upload a .txt of URLs, or paste its link in the field below\n🔁 Duplicates are removed automatically — you are never charged twice for the same page in one run",
            "items": {
              "type": "object",
              "required": [
                "url"
              ],
              "properties": {
                "url": {
                  "type": "string",
                  "title": "URL of a web page",
                  "format": "uri"
                }
              }
            }
          },
          "requestsFromUrl": {
            "title": "📄 Load URLs from a Text File",
            "pattern": "^https?://.+",
            "type": "string",
            "description": "📄 **REMOTE LIST:** a plain-text file with one page URL per line, fetched once at run start.\n\n📄 **What works:** any public text file URL — a GitHub raw file, a pastebin, your own host.\n\n💡 **TIP:** great for keeping a shared watchlist outside Apify; edit the file, not the task.\n\n⚠️ Lines starting with # are ignored. The file is read once per run — it is not monitored itself."
          },
          "selector": {
            "title": "🎯 CSS Selector (Optional — Watch Part of a Page)",
            "type": "string",
            "description": "🎯 **SCOPED CHECK:** watch only one part of each page — a price block, a spec table, one heading. Right-click the part in your browser, choose Inspect, and copy its class or id.\n\n💡 The best defense against false alarms: a nav or banner tweak stays invisible.\n\n🔧 Empty = the whole page. Scripts, styles and navigation are ALWAYS ignored, selector or not. A selector that matches nothing returns a clear error row, never a charge.",
            "default": ""
          },
          "renderJs": {
            "title": "⚙️ Run JavaScript Before Checking (Optional)",
            "type": "boolean",
            "description": "⚙️ **FOR JS-BUILT PAGES:** loads each page in a real browser session before hashing, so content that only exists after scripts run is captured.\n\n⚙️ **When you need it:** the page looks empty when you view source, or your first check returns almost no text.\n\n💰 Rendered checks cost a little more per page — leave this OFF for normal pages.\n\n💡 **TIP:** if a page blocks plain requests with 403 but loads fine in your browser, try this.",
            "default": false
          },
          "notifyWebhookUrl": {
            "title": "🔔 Change-Alert Webhook (Optional)",
            "pattern": "^https?://.+",
            "type": "string",
            "description": "🔔 **INSTANT ALERTS:** every page that reports a change posts one JSON event to this URL — url, selector, diff excerpt, hashes, checked time.\n\n🔔 **What works:** n8n and Make webhook nodes, Zapier catches, Slack incoming webhooks, your own endpoint.\n\n💡 **TIP:** pair with an Apify schedule and you have a full monitoring pipeline in two fields.\n\n⚠️ Alerts are best-effort: a webhook that is down never fails your run, and pages that did not change stay silent."
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}