{
  "openapi": "3.0.1",
  "info": {
    "title": "PageSpeed & Lighthouse Audit: Core Web Vitals Bulk",
    "description": "Bulk Lighthouse audit of any list of pages: performance score, Core Web Vitals (LCP, CLS, TBT), accessibility, SEO and best-practices scores, top fixes with estimated savings and third-party cost. Mobile and desktop, median of several runs, budgets, monitoring. No API key. Failed pages are free.",
    "version": "1.0",
    "x-build-id": "sdZBXHMnL6ikAYGv6"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/digital_influx~lighthouse-pagespeed-audit/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-digital_influx-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/digital_influx~lighthouse-pagespeed-audit/runs": {
      "post": {
        "operationId": "runs-sync-digital_influx-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/digital_influx~lighthouse-pagespeed-audit/run-sync": {
      "post": {
        "operationId": "run-sync-digital_influx-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",
        "required": [
          "urls"
        ],
        "properties": {
          "urls": {
            "title": "Pages to audit",
            "type": "array",
            "description": "One page per line: a home page, a product page, a landing page (https:// is added if missing). Repeated pages are audited once. Free Apify plan: the first 5 page-and-device audits of a run; any paid plan has no limit.",
            "items": {
              "type": "string"
            }
          },
          "devices": {
            "title": "Devices",
            "type": "array",
            "description": "Mobile is a mid-tier phone on a slow 4G connection (what Google ranks with); desktop is a fast wired connection. Each device is its own audit and its own row.",
            "items": {
              "type": "string",
              "enum": [
                "mobile",
                "desktop"
              ],
              "enumTitles": [
                "Mobile",
                "Desktop"
              ]
            },
            "default": [
              "mobile"
            ]
          },
          "runsPerUrl": {
            "title": "Lighthouse runs per page",
            "minimum": 1,
            "maximum": 5,
            "type": "integer",
            "description": "Lighthouse scores move several points from one run to the next with nothing changed. With 3 or 5 runs the row is the median run, as Lighthouse's own documentation recommends, and it shows the range of the scores. Each run is one audit event.",
            "default": 1
          },
          "categories": {
            "title": "Categories",
            "type": "array",
            "description": "Performance is always audited. Leave the others on for the accessibility, best-practices and SEO scores and their failed checks; turn them off for a slightly faster audit.",
            "items": {
              "type": "string",
              "enum": [
                "performance",
                "accessibility",
                "best-practices",
                "seo"
              ],
              "enumTitles": [
                "Performance",
                "Accessibility",
                "Best practices",
                "SEO"
              ]
            },
            "default": [
              "performance",
              "accessibility",
              "best-practices",
              "seo"
            ]
          },
          "maxFixes": {
            "title": "Fixes listed per page",
            "minimum": 1,
            "maximum": 20,
            "type": "integer",
            "description": "How many of the top fixes (by estimated time saved) and of the heaviest third-party companies each row lists (1 to 20).",
            "default": 5
          },
          "saveHtmlReports": {
            "title": "Save the full Lighthouse report of each page",
            "type": "boolean",
            "description": "Adds reportUrl to every row: the complete HTML report, the one Chrome DevTools shows, saved in the run's key-value store. Good to send to a client or a developer.",
            "default": false
          },
          "minPerformanceScore": {
            "title": "Budget: minimum performance score",
            "minimum": 0,
            "maximum": 100,
            "type": "integer",
            "description": "With any budget set, every row gets budget.passed and the list of budgets it failed. Example: 90 (Lighthouse's green band starts there)."
          },
          "maxLcpMs": {
            "title": "Budget: maximum Largest Contentful Paint (ms)",
            "minimum": 0,
            "type": "integer",
            "description": "Google's \"good\" threshold is 2500."
          },
          "maxTbtMs": {
            "title": "Budget: maximum Total Blocking Time (ms)",
            "minimum": 0,
            "type": "integer",
            "description": "Lighthouse's \"good\" threshold is 200."
          },
          "maxCls": {
            "title": "Budget: maximum Cumulative Layout Shift",
            "type": "string",
            "description": "A decimal number. Google's \"good\" threshold is 0.1."
          },
          "compareWithPreviousRun": {
            "title": "Compare with the previous run (monitoring)",
            "type": "boolean",
            "description": "For scheduled audits: every row gets \"changes\" with the score, LCP, TBT and CLS of the last run of the same page and device, and a verdict: improved, regressed, stable or new. The last scores are kept in a key-value store named \"digital-influx-lighthouse-pagespeed-audit\" in your account.",
            "default": false
          },
          "minScoreChange": {
            "title": "Points that count as a change",
            "minimum": 1,
            "maximum": 100,
            "type": "integer",
            "description": "A page is \"improved\" or \"regressed\" only when its performance score moved by at least this many points; smaller moves are normal noise and count as \"stable\".",
            "default": 10
          },
          "memoryName": {
            "title": "Memory name (optional)",
            "type": "string",
            "description": "Give a name to keep a separate history, for example one per client, or a new name to start over. Letters, digits, dot, dash and underscore."
          },
          "respectRobotsTxt": {
            "title": "Respect robots.txt",
            "type": "boolean",
            "description": "Recommended. Pages that the site's robots.txt disallows are not loaded (saved free with status blocked_by_robots). Turn off only for your own website.",
            "default": true
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}