{
  "openapi": "3.0.1",
  "info": {
    "title": "PageSpeed Insights & Lighthouse Bulk Checker, No API Key",
    "description": "Website speed test in bulk: check Google PageSpeed Insights and Lighthouse scores for hundreds of URLs or a whole sitemap, no API key needed. Core Web Vitals (LCP, CLS, TBT, INP), CrUX field data, top fixes and HTML client reports. Schedule it to monitor site speed and flag regressions.",
    "version": "0.1",
    "x-build-id": "2CreBgzZbu4fkhLro"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/rod_analytics~lighthouse-audit/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-rod_analytics-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/rod_analytics~lighthouse-audit/runs": {
      "post": {
        "operationId": "runs-sync-rod_analytics-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/rod_analytics~lighthouse-audit/run-sync": {
      "post": {
        "operationId": "run-sync-rod_analytics-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": "URLs to audit",
            "type": "array",
            "description": "Pages to audit with Lighthouse. One URL per line. Missing https:// is added automatically. Duplicates are removed. Leave empty when you use \"Sitemaps or websites\".",
            "items": {
              "type": "string"
            }
          },
          "sitemapUrls": {
            "title": "Sitemaps or websites",
            "type": "array",
            "description": "Audit a whole site without listing pages. Paste a sitemap URL (sitemap.xml, a sitemap index or .xml.gz) or just the home page, for example https://example.com. For a home page the Actor finds the sitemap in robots.txt or at /sitemap.xml. Pages found are audited together with \"URLs to audit\". Reading sitemaps is free, you pay only per audit.",
            "items": {
              "type": "string"
            }
          },
          "maxSitemapUrls": {
            "title": "Max pages from sitemaps",
            "minimum": 1,
            "maximum": 5000,
            "type": "integer",
            "description": "Upper limit of pages taken from all sitemaps together, in sitemap order. Keeps the cost of big sites predictable: 100 pages cost $0.15 on mobile.",
            "default": 100
          },
          "strategy": {
            "title": "Device",
            "enum": [
              "mobile",
              "desktop",
              "both"
            ],
            "type": "string",
            "description": "Mobile uses a Moto G Power profile with slow 4G throttling, like PageSpeed Insights. Desktop uses a desktop profile. Both runs two audits per URL.",
            "default": "mobile"
          },
          "categories": {
            "title": "Categories",
            "type": "array",
            "description": "Lighthouse categories to run. Fewer categories make audits a bit faster.",
            "items": {
              "type": "string",
              "enum": [
                "performance",
                "accessibility",
                "best-practices",
                "seo"
              ],
              "enumTitles": [
                "Performance",
                "Accessibility",
                "Best practices",
                "SEO"
              ]
            },
            "default": [
              "performance",
              "accessibility",
              "best-practices",
              "seo"
            ]
          },
          "engine": {
            "title": "Engine",
            "enum": [
              "psi",
              "local"
            ],
            "type": "string",
            "description": "PSI (default) runs Google PageSpeed Insights. No API key needed: the Actor uses its own shared key, or yours if you paste one below. 512 MB memory is enough and you get real user CrUX field data. Local runs Lighthouse in real Chrome inside the Actor, with no Google quota. Local needs 8 GB memory (set it in Run options) for credible scores.",
            "default": "psi"
          },
          "psiApiKey": {
            "title": "Your own PageSpeed Insights API key (optional)",
            "type": "string",
            "description": "Optional. Leave empty to use the Actor's shared key. Your own free Google key gives you a private quota of 25,000 audits per day, so big or frequent runs never wait for the shared quota. Takes 2 minutes: 1) Open the <a href='https://console.cloud.google.com/apis/library/pagespeedonline.googleapis.com'>PageSpeed Insights API page</a> in Google Cloud Console and click Enable (create a project if asked). 2) Open <a href='https://console.cloud.google.com/apis/credentials'>Credentials</a>, click Create credentials > API key. 3) Paste the key here. Stored encrypted. Same price per audit with either key."
          },
          "throttling": {
            "title": "Throttling",
            "enum": [
              "simulate",
              "devtools",
              "none"
            ],
            "type": "string",
            "description": "Simulate (default) matches PageSpeed Insights and is the most stable. DevTools applies real network and CPU throttling and is slower. None measures raw speed from the Apify data center.",
            "default": "simulate"
          },
          "cpuSlowdown": {
            "title": "Mobile CPU slowdown",
            "enum": [
              "auto",
              "4",
              "3",
              "2",
              "1"
            ],
            "type": "string",
            "description": "Auto measures the CPU of the cloud machine and scales the Lighthouse 4x mobile CPU slowdown so Total Blocking Time is closer to PageSpeed Insights. Pick 4 to use the plain Lighthouse default.",
            "default": "auto"
          },
          "maxConcurrency": {
            "title": "Parallel audits",
            "minimum": 1,
            "maximum": 20,
            "type": "integer",
            "description": "How many audits run at the same time. Empty means 1 for the local engine and 20 for the PSI engine. Local engine: keep 1 for accurate scores, Chrome needs about 2 CPU cores (8 GB memory on Apify) per audit. Use 2 only with 16 GB. PSI engine: up to 20. Lower it if Google answers with quota errors."
          },
          "includeFullReport": {
            "title": "Save full reports",
            "type": "boolean",
            "description": "Save the full Lighthouse HTML report of every audit to the key-value store. The dataset item links to it in reportUrl.",
            "default": true
          },
          "includeJsonReport": {
            "title": "Also save raw Lighthouse JSON",
            "type": "boolean",
            "description": "Also save the raw Lighthouse JSON (LHR) of every audit, linked in reportJsonUrl. Only needed for your own tooling. The HTML report already contains the same data.",
            "default": false
          },
          "maxOpportunities": {
            "title": "Max opportunities per audit",
            "minimum": 0,
            "maximum": 50,
            "type": "integer",
            "description": "How many top improvement opportunities to include, sorted by estimated time savings.",
            "default": 10
          },
          "timeoutSecs": {
            "title": "Timeout per audit (seconds)",
            "minimum": 30,
            "maximum": 300,
            "type": "integer",
            "description": "Hard limit for one Lighthouse audit. Failed or timed out audits are retried once and are not charged.",
            "default": 90
          },
          "compareWithPrevious": {
            "title": "Compare with the previous run",
            "type": "boolean",
            "description": "Compare every audit with the last run of the same URL, device and engine in your account. Adds changes, regressed, regressions and improvements to each row. The last results are kept in a key-value store named lighthouse-audit-history in your account. Delete it to start a new baseline. Free.",
            "default": true
          },
          "regressionThreshold": {
            "title": "Regression threshold (score points)",
            "minimum": 1,
            "maximum": 50,
            "type": "integer",
            "description": "How many points a Lighthouse score must drop to count as a regression. PageSpeed scores vary by a few points between runs, so 5 avoids most false alarms. LCP, TBT and CLS count when they move to a worse Core Web Vitals band: good, needs improvement or poor.",
            "default": 5
          },
          "alertWebhookUrl": {
            "title": "Regression alert webhook (optional)",
            "type": "string",
            "description": "Get a message when pages get worse. Paste a Slack incoming webhook, a Discord webhook or any URL that accepts a JSON POST. When a run finds regressions, the Actor posts one summary with every regressed page and a link to the run. Runs without regressions send nothing. Free until 28 November 2026, then $0.01 per alert sent. Stored encrypted."
          },
          "includeClientReport": {
            "title": "Generate agency HTML client report",
            "type": "boolean",
            "description": "Generate one shareable HTML client report (`client-report.html`) in the key-value store for all audited pages in this run.",
            "default": false
          },
          "clientName": {
            "title": "Client name (optional)",
            "type": "string",
            "description": "Brand or client name displayed in the HTML report header."
          },
          "clientLogoUrl": {
            "title": "Client logo URL (optional)",
            "type": "string",
            "description": "Public http(s) URL to a logo image shown in the HTML report header."
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}