{
  "openapi": "3.0.1",
  "info": {
    "title": "Bulk Lighthouse & PageSpeed Test: Sitemap, Core Web Vitals",
    "description": "Run real Lighthouse 13 audits on a URL list or a whole sitemap, mobile and desktop, with no Google API key or quota. Get performance, accessibility, best-practices and SEO scores, LCP, CLS, TBT, FCP, TTFB, top fixes and pass/fail budgets per page. $0.02 per audit; failed audits are free.",
    "version": "0.1",
    "x-build-id": "Bhwzgt7GltzB8ntAe"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/datatoolsforall~bulk-lighthouse-pagespeed-audit/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-datatoolsforall-bulk-lighthouse-pagespeed-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/datatoolsforall~bulk-lighthouse-pagespeed-audit/runs": {
      "post": {
        "operationId": "runs-sync-datatoolsforall-bulk-lighthouse-pagespeed-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/datatoolsforall~bulk-lighthouse-pagespeed-audit/run-sync": {
      "post": {
        "operationId": "run-sync-datatoolsforall-bulk-lighthouse-pagespeed-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": "URLs to audit",
            "maxItems": 1000,
            "type": "array",
            "description": "Web pages to test, one per line, for example https://example.com. Every page in this list is audited (up to 1,000), once per device type, at $0.02 per audit. Each output row shows the address exactly as you typed it here. Audit only sites you own or are allowed to test.",
            "items": {
              "type": "string"
            }
          },
          "sitemapUrl": {
            "title": "Sitemap URL (optional)",
            "type": "string",
            "description": "Address of a sitemap.xml (or sitemap index, .xml.gz or plain-text sitemap). Up to 'Maximum pages from the sitemap' of its pages are audited (default 50, at most $1.00 per device), in addition to the URLs above."
          },
          "strategies": {
            "title": "Devices",
            "type": "array",
            "description": "Test as a mobile phone, a desktop computer, or both. Each device counts as one audit ($0.02) per URL, so both devices double the cost.",
            "items": {
              "type": "string",
              "enum": [
                "mobile",
                "desktop"
              ],
              "enumTitles": [
                "Mobile",
                "Desktop"
              ]
            },
            "default": [
              "mobile"
            ]
          },
          "categories": {
            "title": "Lighthouse categories",
            "type": "array",
            "description": "Which Lighthouse scores to compute. Lab metrics (LCP, CLS, TBT...) and opportunities need Performance.",
            "items": {
              "type": "string",
              "enum": [
                "performance",
                "accessibility",
                "best-practices",
                "seo"
              ],
              "enumTitles": [
                "Performance",
                "Accessibility",
                "Best practices",
                "SEO"
              ]
            },
            "default": [
              "performance",
              "accessibility",
              "best-practices",
              "seo"
            ]
          },
          "maxUrls": {
            "title": "Maximum pages from the sitemap",
            "minimum": 1,
            "maximum": 1000,
            "type": "integer",
            "description": "How many pages to take from the sitemap. The default of 50 costs at most $1.00 per device. It does not limit the 'URLs to audit' list: every URL you paste is audited. With both devices selected, each page is two audits.",
            "default": 50
          },
          "maxOpportunities": {
            "title": "Opportunities per page",
            "minimum": 0,
            "maximum": 20,
            "type": "integer",
            "description": "How many of the biggest suggested fixes (for example 'Reduce unused JavaScript') to list per page. 0 turns the list off.",
            "default": 5
          },
          "budgets": {
            "title": "Pass/fail budgets (optional)",
            "type": "object",
            "description": "Flag pages that miss your targets. Scores are minimums (0-100); timings in milliseconds and CLS are maximums. Leave empty for no budgets.",
            "properties": {
              "performanceScore": {
                "title": "Minimum performance score",
                "type": "integer",
                "description": "Fail when the performance score is below this value (0-100).",
                "editor": "number",
                "minimum": 0,
                "maximum": 100
              },
              "accessibilityScore": {
                "title": "Minimum accessibility score",
                "type": "integer",
                "description": "Fail when the accessibility score is below this value (0-100).",
                "editor": "number",
                "minimum": 0,
                "maximum": 100
              },
              "bestPracticesScore": {
                "title": "Minimum best-practices score",
                "type": "integer",
                "description": "Fail when the best-practices score is below this value (0-100).",
                "editor": "number",
                "minimum": 0,
                "maximum": 100
              },
              "seoScore": {
                "title": "Minimum SEO score",
                "type": "integer",
                "description": "Fail when the SEO score is below this value (0-100).",
                "editor": "number",
                "minimum": 0,
                "maximum": 100
              },
              "lcpMs": {
                "title": "Maximum LCP (ms)",
                "type": "integer",
                "description": "Fail when Largest Contentful Paint is slower than this. Google's 'good' threshold is 2500.",
                "editor": "number",
                "minimum": 0,
                "unit": "ms"
              },
              "fcpMs": {
                "title": "Maximum FCP (ms)",
                "type": "integer",
                "description": "Fail when First Contentful Paint is slower than this.",
                "editor": "number",
                "minimum": 0,
                "unit": "ms"
              },
              "tbtMs": {
                "title": "Maximum TBT (ms)",
                "type": "integer",
                "description": "Fail when Total Blocking Time is longer than this.",
                "editor": "number",
                "minimum": 0,
                "unit": "ms"
              },
              "cls": {
                "title": "Maximum CLS",
                "type": "number",
                "description": "Fail when Cumulative Layout Shift is above this. Google's 'good' threshold is 0.1.",
                "editor": "number",
                "minimum": 0
              },
              "speedIndexMs": {
                "title": "Maximum Speed Index (ms)",
                "type": "integer",
                "description": "Fail when Speed Index is slower than this.",
                "editor": "number",
                "minimum": 0,
                "unit": "ms"
              },
              "ttfbMs": {
                "title": "Maximum TTFB (ms)",
                "type": "integer",
                "description": "Fail when lab time to first byte is slower than this.",
                "editor": "number",
                "minimum": 0,
                "unit": "ms"
              }
            },
            "additionalProperties": false
          },
          "saveFullReport": {
            "title": "Save full Lighthouse report",
            "type": "boolean",
            "description": "Also save the complete Lighthouse HTML report for every page in the run's key-value store (also with a PageSpeed Insights key). The link is in 'reportUrl'.",
            "default": false
          },
          "psiApiKey": {
            "title": "Your Google PageSpeed Insights API key (optional)",
            "type": "string",
            "description": "Leave empty to run Lighthouse in this actor (default). If you add your own key, audits run on Google's PageSpeed Insights API instead and include real-user Chrome UX Report (CrUX) field data. Uses your Google quota under the Google APIs Terms."
          },
          "throttlingMethod": {
            "title": "Throttling method",
            "enum": [
              "simulate",
              "devtools"
            ],
            "type": "string",
            "description": "'Simulate' (default, same as PageSpeed Insights) loads the page fast and models a slow connection. 'DevTools' really slows the connection down: closer to a real slow device, slower to run and noisier. With DevTools, pages that never stop loading (ads, analytics) can end without a performance score; such rows get errorCode INCOMPLETE_AUDIT and are not charged.",
            "default": "simulate"
          },
          "timeoutSecs": {
            "title": "Audit timeout",
            "minimum": 60,
            "maximum": 300,
            "type": "integer",
            "description": "Maximum time for one audit (page load plus analysis). The page itself gets up to half of this, at most 45 s, to finish loading; slower pages are still audited with a warning. An audit that runs out of time is reported as a TIMEOUT error and not charged.",
            "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}