{
  "openapi": "3.0.1",
  "info": {
    "title": "Website Change Monitor & AI Alerts",
    "description": "Monitor public web pages for price, policy, product, job, and content changes. Get structured diffs, optional AI summaries, and webhook alerts.",
    "version": "0.2",
    "x-build-id": "ECUoza4A9dNvCSMuK"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/thescrapelab~ai-content-changes-detector/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-thescrapelab-ai-content-changes-detector",
        "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/thescrapelab~ai-content-changes-detector/runs": {
      "post": {
        "operationId": "runs-sync-thescrapelab-ai-content-changes-detector",
        "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/thescrapelab~ai-content-changes-detector/run-sync": {
      "post": {
        "operationId": "run-sync-thescrapelab-ai-content-changes-detector",
        "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": "Pages to monitor",
            "minItems": 1,
            "maxItems": 100,
            "type": "array",
            "description": "Paste one or more public page URLs. Start with one; you can add more whenever you need them.",
            "items": {
              "type": "string"
            }
          },
          "selector": {
            "title": "CSS selector",
            "type": "string",
            "description": "For example: main, .price, #availability, or article."
          },
          "ignoreSelectors": {
            "title": "Elements to ignore",
            "type": "array",
            "description": "Optional CSS selectors for timestamps, cookie banners, ads, or other noise.",
            "items": {
              "type": "string"
            },
            "default": []
          },
          "onlyMeaningfulChanges": {
            "title": "Only return meaningful changes",
            "type": "boolean",
            "description": "Turn this on to keep the dataset focused on important changes.",
            "default": false
          },
          "emitUnchanged": {
            "title": "Include unchanged checks",
            "type": "boolean",
            "description": "Internal default that keeps routine successful checks in the dataset unless meaningful-only results are selected.",
            "default": true
          },
          "webhookUrl": {
            "title": "Webhook URL",
            "type": "string",
            "description": "Your public HTTP or HTTPS endpoint. It should safely handle a repeated event ID."
          },
          "webhookAuthToken": {
            "title": "Webhook bearer token",
            "type": "string",
            "description": "Optional. Your own bearer token for this webhook endpoint; it is never included in results or alerts."
          },
          "notifyOn": {
            "title": "Send alerts for",
            "pattern": "^(meaningful|any-change)$",
            "type": "string",
            "description": "API-only override. Console alerts use meaningful changes by default.",
            "default": "meaningful"
          },
          "aiEnabled": {
            "title": "Add an AI change summary",
            "type": "boolean",
            "description": "Use AI to classify changed pages. Built-in analysis remains available if the provider fails.",
            "default": false
          },
          "maxAiCalls": {
            "title": "Maximum AI calls per run",
            "minimum": 0,
            "maximum": 100,
            "type": "integer",
            "description": "Internal safety limit for optional AI summaries during one run.",
            "default": 100
          },
          "stateStoreName": {
            "title": "History name (API only)",
            "type": "string",
            "description": "API-only override. Saved Apify Tasks automatically use separate monitoring histories."
          },
          "minChangePercent": {
            "title": "Minimum change percentage",
            "minimum": 0,
            "maximum": 100,
            "type": "number",
            "description": "API-only operational override.",
            "default": 0.5
          },
          "timeoutSecs": {
            "title": "Request timeout (seconds)",
            "minimum": 5,
            "maximum": 60,
            "type": "integer",
            "description": "API-only operational override.",
            "default": 15
          },
          "maxRetries": {
            "title": "Retries for temporary errors",
            "minimum": 0,
            "maximum": 4,
            "type": "integer",
            "description": "API-only operational override.",
            "default": 2
          },
          "maxConcurrency": {
            "title": "Pages checked at once",
            "minimum": 1,
            "maximum": 10,
            "type": "integer",
            "description": "API-only operational override.",
            "default": 3
          },
          "maxBytes": {
            "title": "Maximum downloaded page size (bytes)",
            "minimum": 10000,
            "maximum": 500000,
            "type": "integer",
            "description": "API-only operational override. Concurrency is reduced automatically for larger responses.",
            "default": 400000
          },
          "maxContentChars": {
            "title": "Maximum saved text size (characters)",
            "minimum": 1000,
            "maximum": 50000,
            "type": "integer",
            "description": "API-only operational override.",
            "default": 12000
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}