{
  "openapi": "3.0.1",
  "info": {
    "title": "Bulk Lighthouse Audit as a PageSpeed Insights Alternative",
    "description": "Bulk Lighthouse audit for many pages: performance, accessibility, best practices, SEO and agentic-browsing scores, Core Web Vitals, top fixes, HTML reports and screenshots, mobile and desktop. No API key; changes since the last run. Maintained by CleanScrape.",
    "version": "0.1",
    "x-build-id": "teAsWwLDoeIchfTzg"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/cleanscrape~lighthouse-audit/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-cleanscrape-lighthouse-audit",
        "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/cleanscrape~lighthouse-audit/runs": {
      "post": {
        "operationId": "runs-sync-cleanscrape-lighthouse-audit",
        "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/cleanscrape~lighthouse-audit/run-sync": {
      "post": {
        "operationId": "run-sync-cleanscrape-lighthouse-audit",
        "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": "Pages",
            "type": "array",
            "description": "One page per line: a full link or just a domain (example.com). You can also paste any text with links in it. Each repeated page is audited once.",
            "items": {
              "type": "string"
            }
          },
          "sitemapUrl": {
            "title": "Sitemap (optional)",
            "type": "string",
            "description": "Audit the pages listed in a sitemap, such as https://example.com/sitemap.xml. Sitemap indexes and .xml.gz files work too. Up to \"Maximum pages\"."
          },
          "datasetId": {
            "title": "Pages from a dataset (optional)",
            "type": "string",
            "description": "A dataset whose rows hold page links, for example the results of a scraper run."
          },
          "datasetField": {
            "title": "Field with the page link (optional)",
            "type": "string",
            "description": "The field that holds each row's link, such as website, or a path through a list, such as organicResults.url. Empty: the result links of a search-results row (organicResults), else the first of url, website, link, pageUrl, domain and the like."
          },
          "devices": {
            "title": "Devices",
            "type": "array",
            "description": "Each page is audited once per device; each audit is one row and one charge.",
            "items": {
              "type": "string",
              "enum": [
                "mobile",
                "desktop"
              ],
              "enumTitles": [
                "Mobile (Moto G Power, slow 4G, like PageSpeed Insights mobile)",
                "Desktop (fast connection, like PageSpeed Insights desktop)"
              ]
            },
            "default": [
              "mobile"
            ]
          },
          "categories": {
            "title": "Categories",
            "type": "array",
            "description": "The Lighthouse categories to score. All five take about as long as one.",
            "items": {
              "type": "string",
              "enum": [
                "performance",
                "accessibility",
                "best-practices",
                "seo",
                "agentic-browsing"
              ],
              "enumTitles": [
                "Performance (Core Web Vitals)",
                "Accessibility",
                "Best practices",
                "SEO",
                "Agentic browsing (how well AI agents can use the page)"
              ]
            },
            "default": [
              "performance",
              "accessibility",
              "best-practices",
              "seo",
              "agentic-browsing"
            ]
          },
          "maxPages": {
            "title": "Maximum pages",
            "minimum": 1,
            "maximum": 5000,
            "type": "integer",
            "description": "The most pages to audit in one run, after repeats are removed. An audit takes 10-60 seconds, so about 100 pages fit in an hour.",
            "default": 100
          },
          "runsPerPage": {
            "title": "Runs per page",
            "minimum": 1,
            "maximum": 5,
            "type": "integer",
            "description": "Lighthouse scores move a little between runs. With 3 or 5, each page is audited that many times and the median run is kept (the method Lighthouse CI uses); the row shows the score of every run. Each run is charged.",
            "default": 1
          },
          "maxWaitSeconds": {
            "title": "Page load wait (seconds)",
            "minimum": 10,
            "maximum": 90,
            "type": "integer",
            "description": "How long Lighthouse waits for a page to finish loading before it measures what it has.",
            "default": 35
          },
          "saveReports": {
            "title": "Save the full HTML reports",
            "type": "boolean",
            "description": "The complete Lighthouse report for each audit, the one Chrome DevTools shows, with a link in each row.",
            "default": true
          },
          "saveScreenshots": {
            "title": "Save screenshots",
            "type": "boolean",
            "description": "A full-page screenshot of each page as loaded, with a link in each row.",
            "default": true
          },
          "trackChanges": {
            "title": "Show changes since the last run",
            "type": "boolean",
            "description": "Remember each page's scores in your account and show how they changed since your previous run: handy on a schedule, to spot a page that got slower.",
            "default": false
          },
          "googleApiKey": {
            "title": "Google API key for real-user data (optional)",
            "type": "string",
            "description": "A Google Cloud API key with the \"Chrome UX Report API\" enabled. It is stored encrypted and used only for that API."
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}