{
  "openapi": "3.0.1",
  "info": {
    "title": "Lighthouse Bulk Audit — Core Web Vitals & Regression Alerts",
    "description": "Run Google Lighthouse on a list of URLs: performance, accessibility, best-practices and SEO scores, Core Web Vitals, failing audits and raw JSON/HTML reports. Schedule it to get a webhook when a score drops. $0.015 per audit, platform usage included, no API key.",
    "version": "0.1",
    "x-build-id": "OJ7DquyaEUGMBGiaB"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/peerless_columbine~lighthouse-batch-audit-monitor/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-peerless_columbine-lighthouse-batch-audit-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/peerless_columbine~lighthouse-batch-audit-monitor/runs": {
      "post": {
        "operationId": "runs-sync-peerless_columbine-lighthouse-batch-audit-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/peerless_columbine~lighthouse-batch-audit-monitor/run-sync": {
      "post": {
        "operationId": "run-sync-peerless_columbine-lighthouse-batch-audit-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": {
          "url": {
            "title": "URL",
            "type": "string",
            "description": "A single page to audit. Example: `https://www.example.com/pricing`. `https://` is added if the scheme is missing. Only public HTTP(S) URLs (no localhost, private IPs or credentials). Either `url` or `urls` is required; if both are given, `url` is audited first, then `urls` (max 500 in total)."
          },
          "device": {
            "title": "Device",
            "enum": [
              "mobile",
              "desktop"
            ],
            "type": "string",
            "description": "Device to emulate during the audit. Accepted values: `mobile` (default, Lighthouse mobile emulation) or `desktop`.",
            "default": "mobile"
          },
          "categories": {
            "title": "Categories to Audit",
            "type": "array",
            "description": "Which Lighthouse categories to score. Accepted values: performance, accessibility, best-practices, seo. Empty list = all four. Example: `[\"performance\", \"seo\"]`. (The PWA category no longer exists in Lighthouse 12+.)",
            "items": {
              "type": "string",
              "enum": [
                "performance",
                "accessibility",
                "best-practices",
                "seo"
              ]
            },
            "default": [
              "performance",
              "accessibility",
              "best-practices",
              "seo"
            ]
          },
          "saveHtmlReport": {
            "title": "Save HTML Report",
            "type": "boolean",
            "description": "Also save the full Lighthouse HTML report for each URL to the run's key-value store; its key and link are returned in htmlReportKey / htmlReportUrl.",
            "default": false
          },
          "throttling": {
            "title": "Throttling",
            "enum": [
              "simulated",
              "devtools",
              "none"
            ],
            "type": "string",
            "description": "Network/CPU throttling method. Accepted values: `simulated` = Lighthouse default simulated slow network (fast to run); `devtools` = real DevTools throttling (slower, closer to real devices); `none` = no throttling (full speed, scores not comparable to PageSpeed Insights).",
            "default": "simulated"
          },
          "monitoringMode": {
            "title": "Enable Regression Monitoring",
            "type": "boolean",
            "description": "Turn on for scheduled site-health tracking: scores are stored per URL + settings, and each later run adds a `regression` object with score changes vs the previous run and flags drops of at least regressionThreshold points (optionally sent to alertWebhookUrl). The first run only creates the baseline.",
            "default": false
          },
          "regressionThreshold": {
            "title": "Regression Threshold (points)",
            "minimum": 1,
            "maximum": 50,
            "type": "integer",
            "description": "Only used with monitoringMode. A regression is flagged when any category score drops by at least this many points (scores are 0–100) compared with the previous run. Allowed range: 1–50.",
            "default": 5
          },
          "alertWebhookUrl": {
            "title": "Alert Webhook URL",
            "type": "string",
            "description": "Optional, only used with monitoringMode. Public HTTP(S) URL that receives one JSON POST per URL whose score dropped by at least regressionThreshold (type `lighthouse-regression`, with requestedUrl, device and score deltas). No redirects or retries. Example: `https://hooks.example.com/lighthouse`."
          },
          "urls": {
            "title": "Additional URLs",
            "type": "array",
            "description": "List of pages to audit in one run (batch mode), in order. Example: `[\"https://www.python.org/\", \"https://web.dev/\"]`. `https://` is added if missing; duplicates after normalization are skipped at no charge. Up to 500 entries together with `url`. Either `url` or `urls` is required.",
            "items": {
              "type": "string"
            }
          },
          "monitoringStoreId": {
            "title": "Persistent monitoring store",
            "pattern": "^([A-Za-z0-9]{17})?$",
            "type": "string",
            "description": "Leave empty unless you need baselines shared across different tasks/schedules. ID of an existing Apify key-value store (17 letters/digits) where monitoring baselines are kept. Example: `aBcDeFgHiJkLmNoPq`. When empty, the run's default store is used, so reuse the same ID on later runs. Do not run overlapping runs that share a store."
          },
          "maxItems": {
            "title": "Maximum delivered audits",
            "minimum": 1,
            "maximum": 500,
            "type": "integer",
            "description": "Maximum number of successful audits delivered (and charged) in this run, including audits marked partial. Failed URLs and skipped duplicates do not count. Allowed range: 1–500.",
            "default": 10
          },
          "maxCostUsd": {
            "title": "Maximum audit event charges (USD)",
            "minimum": 0,
            "maximum": 1000,
            "type": "number",
            "description": "Spending cap in USD for this Actor's per-audit charges in this run; the run stops starting new audits when the next one would exceed it. Does not cap Apify platform usage costs. Allowed range: 0–1000.",
            "default": 1
          },
          "auditTimeoutSecs": {
            "title": "Audit deadline (seconds)",
            "minimum": 30,
            "maximum": 180,
            "type": "integer",
            "description": "Leave default. Time limit in seconds for one audit attempt (browser start, page load, Lighthouse, cleanup). Known temporary HTTP errors of the page (e.g. 429, 503) may be retried up to 3 times; failed audits are not charged. Allowed range: 30–180.",
            "default": 180
          },
          "maxRunSecs": {
            "title": "Batch source deadline (seconds)",
            "minimum": 30,
            "maximum": 3300,
            "type": "integer",
            "description": "Leave default unless you need a shorter run. Overall time limit in seconds after which no new audits are started. Allowed range: 30–3300.",
            "default": 3300
          },
          "maxTotalNetworkMiB": {
            "title": "Batch browser transfer allowance (MiB)",
            "minimum": 16,
            "maximum": 512,
            "type": "integer",
            "description": "Leave default unless auditing very heavy pages. Total browser network traffic allowed for the whole batch, in MiB (both directions). Each single audit is also limited to 16 MiB; hitting a limit gives a free error row for that URL. Allowed range: 16–512.",
            "default": 128
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}