{
  "openapi": "3.0.1",
  "info": {
    "title": "Website Change Diff Monitor",
    "description": "Monitor public webpages for meaningful changes in title, headings, body sections, CTAs, links, schema, scripts, screenshots, and key selectors between...",
    "version": "1.0",
    "x-build-id": "DcKtgCFeCQJ2gOH1r"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/junipr~website-change-diff-monitor/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-junipr-website-change-diff-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/junipr~website-change-diff-monitor/runs": {
      "post": {
        "operationId": "runs-sync-junipr-website-change-diff-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/junipr~website-change-diff-monitor/run-sync": {
      "post": {
        "operationId": "run-sync-junipr-website-change-diff-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": {
          "startUrls": {
            "title": "startUrls",
            "type": "array",
            "description": "startUrls for Website Change Diff Monitor.",
            "items": {
              "type": "string"
            },
            "default": []
          },
          "sitemapUrls": {
            "title": "sitemapUrls",
            "type": "array",
            "description": "sitemapUrls for Website Change Diff Monitor.",
            "items": {
              "type": "string"
            },
            "default": []
          },
          "htmlInputs": {
            "title": "htmlInputs",
            "type": "array",
            "description": "htmlInputs for Website Change Diff Monitor.",
            "items": {
              "type": "object"
            },
            "default": [
              {
                "sourceUrl": "https://example.com/home",
                "previousHtml": "<title>Old</title><h1>Old offer</h1><a href='/trial'>Start trial</a>",
                "html": "<title>New</title><h1>New offer</h1><a href='/demo'>Book demo</a>"
              }
            ]
          },
          "allowedDomains": {
            "title": "allowedDomains",
            "type": "array",
            "description": "allowedDomains for Website Change Diff Monitor.",
            "items": {
              "type": "string"
            },
            "default": []
          },
          "maxPages": {
            "title": "maxPages",
            "minimum": 0,
            "type": "integer",
            "description": "maxPages for Website Change Diff Monitor.",
            "default": 5
          },
          "maxDepth": {
            "title": "maxDepth",
            "minimum": 0,
            "type": "integer",
            "description": "maxDepth for Website Change Diff Monitor.",
            "default": 5
          },
          "includeEvidence": {
            "title": "includeEvidence",
            "type": "boolean",
            "description": "includeEvidence for Website Change Diff Monitor.",
            "default": false
          },
          "includeRawSnapshots": {
            "title": "includeRawSnapshots",
            "type": "boolean",
            "description": "includeRawSnapshots for Website Change Diff Monitor.",
            "default": false
          },
          "requestDelayMs": {
            "title": "requestDelayMs",
            "minimum": 0,
            "type": "integer",
            "description": "requestDelayMs for Website Change Diff Monitor.",
            "default": 5
          },
          "timeoutMs": {
            "title": "timeoutMs",
            "minimum": 0,
            "type": "integer",
            "description": "timeoutMs for Website Change Diff Monitor.",
            "default": 5
          },
          "userAgentMode": {
            "title": "userAgentMode",
            "type": "string",
            "description": "userAgentMode for Website Change Diff Monitor.",
            "default": ""
          },
          "watchUrls": {
            "title": "watchUrls",
            "type": "array",
            "description": "watchUrls for Website Change Diff Monitor.",
            "items": {
              "type": "string"
            },
            "default": []
          },
          "baselineSnapshots": {
            "title": "baselineSnapshots",
            "type": "array",
            "description": "baselineSnapshots for Website Change Diff Monitor.",
            "items": {
              "type": "object"
            },
            "default": []
          },
          "fetchCurrent": {
            "title": "fetchCurrent",
            "type": "boolean",
            "description": "fetchCurrent for Website Change Diff Monitor.",
            "default": false
          },
          "changeRules": {
            "title": "changeRules",
            "type": "array",
            "description": "changeRules for Website Change Diff Monitor.",
            "items": {
              "type": "string"
            },
            "default": []
          },
          "selectorWatchlist": {
            "title": "selectorWatchlist",
            "type": "array",
            "description": "selectorWatchlist for Website Change Diff Monitor.",
            "items": {
              "type": "string"
            },
            "default": []
          },
          "ignorePatterns": {
            "title": "ignorePatterns",
            "type": "array",
            "description": "ignorePatterns for Website Change Diff Monitor.",
            "items": {
              "type": "string"
            },
            "default": []
          },
          "includeScreenshots": {
            "title": "includeScreenshots",
            "type": "boolean",
            "description": "includeScreenshots for Website Change Diff Monitor.",
            "default": false
          },
          "maxTargets": {
            "title": "maxTargets",
            "minimum": 0,
            "type": "integer",
            "description": "maxTargets for Website Change Diff Monitor.",
            "default": 3
          },
          "maxSnapshots": {
            "title": "maxSnapshots",
            "minimum": 0,
            "type": "integer",
            "description": "maxSnapshots for Website Change Diff Monitor.",
            "default": 5
          },
          "maxChanges": {
            "title": "maxChanges",
            "minimum": 0,
            "type": "integer",
            "description": "maxChanges for Website Change Diff Monitor.",
            "default": 10
          },
          "maxChargeUsd": {
            "title": "maxChargeUsd",
            "minimum": 0,
            "type": "number",
            "description": "maxChargeUsd for Website Change Diff Monitor.",
            "default": 35
          },
          "includeReport": {
            "title": "includeReport",
            "type": "boolean",
            "description": "includeReport for Website Change Diff Monitor.",
            "default": true
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}