{
  "openapi": "3.0.1",
  "info": {
    "title": "Website Change Monitor: Changed-Only Page Watchlist",
    "description": "Watch a list of web pages and get a dataset row only when one changes, with a clear diff, change %, before and after. Cookie banners and menus are ignored, a bad selector or blocked page never fails the run, and checks that don't work are free. Plain HTTP, honours robots.txt.",
    "version": "1.0",
    "x-build-id": "2LqGItzmrplGmGYTR"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/rivetfinch~website-change-monitor/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-rivetfinch-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/rivetfinch~website-change-monitor/runs": {
      "post": {
        "operationId": "runs-sync-rivetfinch-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/rivetfinch~website-change-monitor/run-sync": {
      "post": {
        "operationId": "run-sync-rivetfinch-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": {
          "urls": {
            "title": "Pages to watch",
            "type": "array",
            "description": "Web addresses to check, one per line. The whole readable page is compared, without menus, header, footer, sidebars and cookie banners. Use Watches with settings below to watch only part of a page.",
            "items": {
              "type": "string"
            }
          },
          "watches": {
            "title": "Watches with settings",
            "type": "array",
            "description": "Pages with their own settings, as JSON objects: url (required), label, selector (CSS, e.g. \"#price\" or \"main article\"), startMarker and endMarker (watch only the text between them), ignorePatterns (regular expressions)."
          },
          "selector": {
            "title": "CSS selector for all pages",
            "type": "string",
            "description": "Compare only the elements this CSS selector matches, on every page that has no selector of its own. Leave empty to compare the whole readable page. A selector that matches nothing gives a selectorNotFound row; the run goes on."
          },
          "ignorePatterns": {
            "title": "Ignore text matching",
            "type": "array",
            "description": "Regular expressions for text that should never count as a change, on every page (e.g. \"Updated .* ago\", \"\\d+ comments\"). Matched per line. Add (?i) at the start to ignore case.",
            "items": {
              "type": "string"
            }
          },
          "ignoreVolatileText": {
            "title": "Ignore clock times, \"x minutes ago\" and view counters",
            "type": "boolean",
            "description": "On: times of day (10:42, 3:15 PM), relative ages (5 minutes ago, just now) and counters such as 1,204 views or 35 watching are left out of the comparison, so they never trigger a change. Dates are still compared.",
            "default": true
          },
          "removeCookieBanners": {
            "title": "Ignore cookie banners, pop-ups and ads",
            "type": "boolean",
            "description": "On: consent and cookie banners (OneTrust, Cookiebot, Usercentrics and many more), newsletter pop-ups, ad slots and hidden elements are removed before comparing. With a selector or markers, only known consent tools are removed from the part you chose.",
            "default": true
          },
          "removePageChrome": {
            "title": "Ignore menus, site header, footer and sidebars",
            "type": "boolean",
            "description": "On: navigation, the site-wide header and footer and sidebars are removed when a page has no selector. Headers inside the main content stay. Skipped automatically if it would remove almost everything.",
            "default": true
          },
          "compareAs": {
            "title": "Compare as",
            "enum": [
              "text",
              "markdown"
            ],
            "type": "string",
            "description": "Plain text, or Markdown, which also shows changed link addresses (useful for pages that list documents or downloads).",
            "default": "text"
          },
          "caseInsensitive": {
            "title": "Ignore upper and lower case",
            "type": "boolean",
            "description": "On: a change of case only (Sale to SALE) is not a change.",
            "default": false
          },
          "normalizeWhitespace": {
            "title": "Ignore spacing and blank lines",
            "type": "boolean",
            "description": "On: runs of spaces, line breaks and blank lines don't count as changes. Off compares the text exactly as extracted.",
            "default": true
          },
          "minChangeChars": {
            "title": "Minimum changed characters",
            "minimum": 1,
            "type": "integer",
            "description": "Report a change only when at least this many characters changed. Smaller changes are kept back and add up until they reach it.",
            "default": 1
          },
          "minChangePercent": {
            "title": "Minimum change (%)",
            "minimum": 0,
            "maximum": 100,
            "type": "number",
            "description": "Report a change only when at least this share of the page's text changed (0 to 100). 0 reports every change.",
            "default": 0
          },
          "emitBaseline": {
            "title": "Output a row for new pages",
            "type": "boolean",
            "description": "On: the first check of a page gives a firstSeen row with the start of its text, so you can see the right part is watched. Off: first checks give no row and only later changes do. Either way a first check (baseline) is a charged page check.",
            "default": true
          },
          "repeatProblems": {
            "title": "Repeat problem rows on every run",
            "type": "boolean",
            "description": "Off: a blocked, unreadable or missing page gives a row the first time, then again only when the problem changes or after it recovers. On: a row on every run while the problem lasts.",
            "default": false
          },
          "redactPersonalData": {
            "title": "Remove personal emails and phone numbers",
            "type": "boolean",
            "description": "On: personal email addresses, phone numbers and LinkedIn profile links are replaced with [email removed] and similar before comparing and storing, so they never appear in diffs or snapshots. Role mailboxes such as info@ stay.",
            "default": true
          },
          "maxDiffChars": {
            "title": "Maximum diff size (characters)",
            "minimum": 1000,
            "maximum": 100000,
            "type": "integer",
            "description": "The unified diff in each row is cut at this length; diffTruncated says when. Added and removed lines are listed separately as well (up to 50 each).",
            "default": 10000
          },
          "stateName": {
            "title": "Memory name",
            "type": "string",
            "description": "Name of the memory that holds the last snapshot of each page. Each saved task gets its own by default; direct and API runs share one called default (lists keep separate entries, and a warning shows when it is shared). Use a new name to start fresh. Letters, digits, dot, dash, underscore."
          },
          "maxConcurrentHosts": {
            "title": "Sites checked at once",
            "minimum": 1,
            "maximum": 10,
            "type": "integer",
            "description": "How many different websites are read in parallel. Pages on the same site are always read one at a time.",
            "default": 4
          },
          "secondsBetweenRequests": {
            "title": "Seconds between requests to one site",
            "minimum": 1,
            "maximum": 60,
            "type": "number",
            "description": "Pause between two requests to the same website (robots.txt Crawl-delay is honoured when longer). 2 seconds is polite for most sites.",
            "default": 2
          },
          "requestTimeoutSecs": {
            "title": "Request timeout (seconds)",
            "minimum": 5,
            "maximum": 120,
            "type": "integer",
            "description": "How long to wait for a site to answer before the page counts as an error for this run.",
            "default": 30
          },
          "acceptLanguage": {
            "title": "Preferred language",
            "type": "string",
            "description": "Sent as the Accept-Language header, so sites that offer several languages answer in the same one every run (e.g. en, de, fr-FR).",
            "default": "en"
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}