{
  "openapi": "3.0.1",
  "info": {
    "title": "Lighthouse Audit: Core Web Vitals, SEO & Speed Scores",
    "description": "Run Google Lighthouse audits on up to 2,000 pages a run and get scores, Core Web Vitals and failed audits as rows. Mobile and desktop, sitemaps, HTML reports and score-drop alerts. $0.025 an audit, or $0.004 with your own PageSpeed Insights key.",
    "version": "0.1",
    "x-build-id": "MRfhujRjaFf800hH9"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/subtleasianmerch~lighthouse-audit/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-subtleasianmerch-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/subtleasianmerch~lighthouse-audit/runs": {
      "post": {
        "operationId": "runs-sync-subtleasianmerch-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/subtleasianmerch~lighthouse-audit/run-sync": {
      "post": {
        "operationId": "run-sync-subtleasianmerch-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 to audit",
            "type": "array",
            "description": "Web addresses, one per line, e.g. https://www.example.com/pricing. \"example.com\" works too (https is added). Each page is audited once per chosen device.",
            "items": {
              "type": "string"
            }
          },
          "sitemapUrls": {
            "title": "Sitemaps",
            "type": "array",
            "description": "Audit the pages listed in these sitemaps (XML or .xml.gz; a sitemap index is followed one level down), e.g. https://www.example.com/sitemap.xml. Added to the pages above.",
            "items": {
              "type": "string"
            }
          },
          "maxPagesPerSitemap": {
            "title": "Pages per sitemap",
            "minimum": 1,
            "maximum": 2000,
            "type": "integer",
            "description": "At most this many pages from each sitemap, in the order the sitemap lists them. A run audits up to 2,000 pages in all.",
            "default": 50
          },
          "devices": {
            "title": "Devices",
            "type": "array",
            "description": "Mobile is Lighthouse's default (a mid-range phone on a slow 4G connection). Desktop uses Lighthouse's desktop settings. Choosing both audits each page twice, and each audit is charged.",
            "items": {
              "type": "string",
              "enum": [
                "mobile",
                "desktop"
              ],
              "enumTitles": [
                "Mobile",
                "Desktop"
              ]
            },
            "default": [
              "mobile"
            ]
          },
          "categories": {
            "title": "Categories",
            "type": "array",
            "description": "Lighthouse categories to score. Fewer categories make each audit faster; the price per audit is the same. \"Agentic browsing\" (new in Lighthouse 13) checks how well AI agents can read and use the page.",
            "items": {
              "type": "string",
              "enum": [
                "performance",
                "accessibility",
                "best-practices",
                "seo",
                "agentic-browsing"
              ],
              "enumTitles": [
                "Performance (with Core Web Vitals)",
                "Accessibility",
                "Best practices",
                "SEO",
                "Agentic browsing"
              ]
            },
            "default": [
              "performance",
              "accessibility",
              "best-practices",
              "seo"
            ]
          },
          "engine": {
            "title": "How to run the audits",
            "enum": [
              "local",
              "pagespeed"
            ],
            "type": "string",
            "description": "Run Lighthouse here: in this Actor's own Chrome, no key needed, $0.025 an audit. Google PageSpeed Insights: Google's machines run Lighthouse with your own free Google API key, which is faster and cheaper ($0.004 an audit) and adds real visitors' Core Web Vitals (field data) when Google has them. Scores from the two can differ.",
            "default": "local"
          },
          "pageSpeedApiKey": {
            "title": "PageSpeed Insights API key",
            "type": "string",
            "description": "Only for \"Google PageSpeed Insights\". Free: in Google Cloud Console create a project, enable the \"PageSpeed Insights API\", then create an API key under APIs & Services → Credentials. Google gives each key a free daily quota. The key is stored encrypted and never shown in results or logs."
          },
          "saveReport": {
            "title": "Save the full report",
            "enum": [
              "html",
              "json",
              "none"
            ],
            "type": "string",
            "description": "Saves each page's full Lighthouse report in the run's key-value store and links it in the results (reportUrl). HTML opens as the familiar Lighthouse report in a browser; JSON is the raw result for your own tools.",
            "default": "html"
          },
          "locale": {
            "title": "Report language",
            "enum": [
              "en-US",
              "en-GB",
              "de",
              "es",
              "fr",
              "it",
              "ja",
              "ko",
              "nl",
              "pl",
              "pt",
              "pt-PT",
              "ru",
              "sv",
              "tr",
              "zh",
              "zh-TW"
            ],
            "type": "string",
            "description": "The language of audit titles and the report.",
            "default": "en-US"
          },
          "monitorId": {
            "title": "Monitor ID",
            "type": "string",
            "description": "Give scheduled runs the same ID (letters, digits and dashes) to compare each page's scores with the last run: the results then show the previous scores, the change and an alert when a score falls. Leave empty for one-off audits."
          },
          "alertDrop": {
            "title": "Alert when a score falls by",
            "minimum": 1,
            "maximum": 100,
            "type": "integer",
            "description": "Points (out of 100). With a monitor ID, a page whose score in any category falls by this much or more since the last run is marked alert: true, with the reason.",
            "default": 5
          },
          "timeoutSecs": {
            "title": "Time limit per audit",
            "minimum": 30,
            "maximum": 300,
            "type": "integer",
            "description": "A page that takes longer is stopped and listed as failed, free. Heavy pages (big news and shop home pages) can take 60–100 s.",
            "default": 120
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}