{
  "openapi": "3.0.1",
  "info": {
    "title": "Website Change Monitor: Page Change Detection, Price Alerts",
    "description": "Website change detection and web page monitor: a content checker and change tracker with a line diff, keyword filters and price alerts. Input: URLs, optional CSS selectors. Output: added/removed lines, old/new price. $1.00 per 1,000 checks.",
    "version": "1.0",
    "x-build-id": "Z2EG9cZ4GQ204ylo5"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/glidepath~website-change-monitor/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-glidepath-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/glidepath~website-change-monitor/runs": {
      "post": {
        "operationId": "runs-sync-glidepath-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/glidepath~website-change-monitor/run-sync": {
      "post": {
        "operationId": "run-sync-glidepath-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": "Page URLs",
            "type": "array",
            "description": "Public pages to check, one per line (pricing pages, product pages, policies, docs, changelogs). Each run compares every page with the previous run of the same memory store.",
            "items": {
              "type": "string"
            }
          },
          "pages": {
            "title": "Pages with their own selector (optional)",
            "type": "array",
            "description": "Advanced: a list of {\"url\": ..., \"selector\": ..., \"label\": ...} objects, for pages that need different selectors. Added to the URLs above. Example: [{\"url\": \"https://shop.example.com/item/42\", \"selector\": \".price\", \"label\": \"Rival price\"}, {\"url\": \"https://example.com/terms\", \"label\": \"Terms\"}]"
          },
          "cssSelector": {
            "title": "CSS selector (optional)",
            "type": "string",
            "description": "Watch only the part of each page that matches this selector, e.g. '.price', '#stock', 'main article'. Leave empty to watch the whole page's visible text. Pages in the list above can set their own."
          },
          "ignorePatterns": {
            "title": "Ignore text matching (regex)",
            "type": "array",
            "description": "Regular expressions removed before comparing, for parts that change on every visit (dates, counters, 'Last updated …'). Up to 20.",
            "items": {
              "type": "string"
            }
          },
          "ignoreSelectors": {
            "title": "Ignore page elements (CSS selectors)",
            "type": "array",
            "description": "Elements removed from the page before its text is read and compared, e.g. '.cookie-banner', '#visitor-count', 'aside.promo'. Up to 20 selectors.",
            "items": {
              "type": "string"
            }
          },
          "alertKeywords": {
            "title": "Only alert on these keywords",
            "type": "array",
            "description": "When set, a changed page is output only if an added or removed line contains one of these words or phrases (case-insensitive), e.g. 'price', 'out of stock', 'breaking'. Other changes are saved, counted as filtered and not charged. With Minimum changed lines set too, a change must pass both. New and removed pages are always output.",
            "items": {
              "type": "string"
            }
          },
          "minChangedLines": {
            "title": "Minimum changed lines",
            "minimum": 0,
            "maximum": 10000,
            "type": "integer",
            "description": "Output a changed page only when at least this many lines were added or removed in all (0 = off). With keywords set too, a change must pass both. Smaller changes are saved, counted as filtered and not charged.",
            "default": 0
          },
          "stateStoreName": {
            "title": "Memory store name",
            "type": "string",
            "description": "Named key-value store in your account that keeps the saved versions of each page. Use one name per watchlist (letters, digits and '-').",
            "default": "glidepath-change-monitor"
          },
          "compareWith": {
            "title": "Compare with",
            "enum": [
              "last",
              "first"
            ],
            "type": "string",
            "description": "'last': each run reports what changed since the previous run. 'first': each run compares with the first version saved for the page (or the one saved by a reset), useful for approved terms, policies or a reference price.",
            "default": "last"
          },
          "resetBaseline": {
            "title": "Reset the saved versions",
            "type": "boolean",
            "description": "On: every page is saved fresh from this run and output as 'new' (charged like any new page); this becomes the reference for 'first'. Pages that can't be checked keep their old version. Turn it off again for the next runs.",
            "default": false
          },
          "includeUnchanged": {
            "title": "Also output unchanged pages",
            "type": "boolean",
            "description": "Off: only new, changed and removed pages get a row. On: unchanged pages get one too (changeType 'unchanged'); changes hidden by the keyword or line filters never do. Every checked page is charged either way, except those hidden changes.",
            "default": false
          },
          "includeText": {
            "title": "Include the current text",
            "type": "boolean",
            "description": "Add the page's (or selector's) current text, first 5,000 characters, e-mails and phone numbers removed.",
            "default": true
          },
          "maxDiffLines": {
            "title": "Max added/removed lines per page",
            "minimum": 0,
            "maximum": 500,
            "type": "integer",
            "description": "How many added and removed lines to show per changed page (the counts are always complete).",
            "default": 50
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}