{
  "openapi": "3.0.1",
  "info": {
    "title": "JS Bundle & API Change Monitor",
    "description": "$0.075 per website check — pay for one check at a time. Monitor JavaScript and public API changes with saved baselines and evidence for your AI agent. One-time free-account trial. Apify platform usage is separate.",
    "version": "0.2",
    "x-build-id": "cFOnycx5r92fjUKhZ"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/mai_amm~js-api-change-monitor/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-mai_amm-js-api-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/mai_amm~js-api-change-monitor/runs": {
      "post": {
        "operationId": "runs-sync-mai_amm-js-api-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/mai_amm~js-api-change-monitor/run-sync": {
      "post": {
        "operationId": "run-sync-mai_amm-js-api-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",
        "required": [
          "startUrls"
        ],
        "properties": {
          "startUrls": {
            "title": "Website or JavaScript URLs",
            "type": "array",
            "description": "Public website pages or direct JavaScript links to monitor. Website pages let the monitor follow changed script filenames.",
            "items": {
              "type": "object",
              "required": [
                "url"
              ],
              "properties": {
                "url": {
                  "type": "string",
                  "title": "URL of a web page",
                  "format": "uri"
                }
              }
            }
          },
          "monitorName": {
            "title": "Monitor name",
            "type": "string",
            "description": "Reuse this name for baseline comparisons. Changing it does not reset the one-time free trial.",
            "default": "my-monitor"
          },
          "maxTargets": {
            "title": "Maximum websites (0 = all)",
            "minimum": 0,
            "type": "integer",
            "description": "Paid accounts: 0 checks all supplied websites. Free accounts get one live website check once per account; later runs return its saved result, even if the URL or monitor name changes.",
            "default": 0
          },
          "bundleUrls": {
            "title": "Specific script links (optional)",
            "type": "array",
            "description": "With one website, select these scripts instead of all discovered scripts. When a matching filename gets a new version suffix, its current website link is used.",
            "items": {
              "type": "string"
            }
          },
          "scriptLinkContains": {
            "title": "Script link contains (optional)",
            "type": "string",
            "description": "Only select script links containing this text. For the DoHome demonstration, 507- selects its product-related script."
          },
          "readChecks": {
            "title": "Public read requests to check (optional)",
            "type": "array",
            "description": "Optional public JSON requests and fields your integration expects. Only GET is used. No passwords, tokens, headers or private addresses are accepted.",
            "items": {
              "type": "object",
              "properties": {
                "name": {
                  "type": "string",
                  "description": "Unique name for this check.",
                  "title": "name"
                },
                "url": {
                  "type": "string",
                  "description": "Public JSON request URL, without credentials.",
                  "title": "url"
                },
                "targetUrl": {
                  "type": "string",
                  "description": "Associate the request with this input website. Required when checking multiple websites.",
                  "title": "targetUrl"
                },
                "expectedStatus": {
                  "type": "integer",
                  "default": 200,
                  "description": "Expected successful HTTP status.",
                  "title": "expectedStatus"
                },
                "requiredPaths": {
                  "type": "array",
                  "items": {
                    "type": "string"
                  },
                  "description": "Fields the response must contain, such as data.items or data.items[*].id.",
                  "title": "requiredPaths"
                }
              },
              "required": [
                "url"
              ]
            }
          },
          "onlyChanges": {
            "title": "Return only important changes",
            "type": "boolean",
            "description": "For paid accounts, hide unchanged or source-only dataset rows. Completed fresh checks are still charged. Free trial and saved trial results are always returned.",
            "default": false
          },
          "includeExternalScripts": {
            "title": "Include scripts from other domains",
            "type": "boolean",
            "description": "Also consider public scripts hosted on other domains. Leave off to avoid unrelated analytics and advertising scripts.",
            "default": false
          },
          "resetBaseline": {
            "title": "Replace the existing baseline",
            "type": "boolean",
            "description": "Explicitly start a new baseline after changing your selected scope or accepting a new known-good version. A failed observation never replaces the baseline.",
            "default": false
          },
          "maxBundlesPerSite": {
            "title": "Maximum scripts per website",
            "minimum": 1,
            "type": "integer",
            "description": "Controls the selected analysis scope. The report states how many scripts were selected and whether more were available.",
            "default": 20
          },
          "maxRequestsPerSite": {
            "title": "Maximum requests per website",
            "minimum": 1,
            "type": "integer",
            "description": "Work budget including website, script, crawling-rule and optional read-check requests.",
            "default": 60
          },
          "maxDownloadMB": {
            "title": "Download budget per website (MB)",
            "minimum": 1,
            "maximum": 128,
            "type": "integer",
            "description": "Stop an incomplete observation when the total download budget is exceeded. The previous good baseline is retained.",
            "default": 12
          },
          "maxFileMB": {
            "title": "Maximum individual download (MB)",
            "minimum": 1,
            "maximum": 16,
            "type": "integer",
            "description": "Skip an observation that requires a larger file, without replacing its previous baseline.",
            "default": 2
          },
          "requestTimeoutSecs": {
            "title": "Request timeout (seconds)",
            "minimum": 1,
            "maximum": 60,
            "type": "integer",
            "description": "Maximum time allowed for each public read request.",
            "default": 20
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}