{
  "openapi": "3.0.1",
  "info": {
    "title": "Bulk PageSpeed & Lighthouse Checker [$3.90/1k] - Web Vitals",
    "description": "$3.90 per 1,000 audits, failed audits free. Run Google PageSpeed Insights on many URLs or a sitemap. Input: URLs or sitemap, mobile/desktop, categories; no API key needed for up to 25 audits per run. Returns per URL: Lighthouse scores, Core Web Vitals (LCP, INP, CLS), top fixes.",
    "version": "1.1",
    "x-build-id": "AadD6UiZIjcJ9G0mS"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/kadi_bence~pagespeed-checker/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-kadi_bence-pagespeed-checker",
        "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/kadi_bence~pagespeed-checker/runs": {
      "post": {
        "operationId": "runs-sync-kadi_bence-pagespeed-checker",
        "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/kadi_bence~pagespeed-checker/run-sync": {
      "post": {
        "operationId": "run-sync-kadi_bence-pagespeed-checker",
        "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": "Page URLs",
            "type": "array",
            "description": "One page per line, e.g. https://www.example.com/pricing. https:// is added when missing. Duplicates are skipped. Each URL is audited once per strategy (mobile/desktop).",
            "items": {
              "type": "string"
            }
          },
          "sitemapUrl": {
            "title": "Sitemap URL (optional)",
            "type": "string",
            "description": "Audit the pages listed in a sitemap.xml (sitemap indexes and .gz files work too). Combined with the URL list and capped by \"Max URLs\"."
          },
          "googleApiKey": {
            "title": "Google API key (optional for small runs)",
            "type": "string",
            "description": "Optional for small runs: without a key the Actor uses its built-in key, limited to 25 audits (URLs x devices) per run. For bigger runs, and for the Chrome UX Report API option, paste your own free Google Cloud API key with the PageSpeed Insights API enabled (25,000 free audits per day). Your key is always used when given, is stored encrypted and is never logged. How to create one in 3 minutes: see the README section \"Get your free Google API key\"."
          },
          "strategy": {
            "title": "Device",
            "enum": [
              "mobile",
              "desktop",
              "both"
            ],
            "type": "string",
            "description": "Mobile (Moto G Power emulation, slow 4G - what Google uses for ranking), desktop, or both (2 audits per URL).",
            "default": "mobile"
          },
          "categories": {
            "title": "Lighthouse categories",
            "type": "array",
            "description": "Which Lighthouse scores to compute. Leave empty for all four. Core Web Vitals and lab metrics need Performance.",
            "items": {
              "type": "string",
              "enum": [
                "performance",
                "accessibility",
                "best-practices",
                "seo"
              ],
              "enumTitles": [
                "Performance",
                "Accessibility",
                "Best practices",
                "SEO"
              ]
            },
            "default": [
              "performance",
              "accessibility",
              "best-practices",
              "seo"
            ]
          },
          "includeFieldData": {
            "title": "Include real-user field data (Core Web Vitals)",
            "type": "boolean",
            "description": "Adds Chrome UX Report p75 values and good / needs-improvement / poor shares for LCP, INP, CLS, FCP and TTFB (page level, or the whole site when the page has too little traffic), plus the Core Web Vitals pass/fail assessment. No extra cost.",
            "default": true
          },
          "useCruxApi": {
            "title": "Use the Chrome UX Report API for field data",
            "type": "boolean",
            "description": "Needs your API key with the Chrome UX Report API enabled. Adds the data collection period and exact device form factor; falls back to the PageSpeed field data when CrUX has no record. 1-2 extra Google calls per audit (free).",
            "default": false
          },
          "maxOpportunities": {
            "title": "Top opportunities per audit",
            "minimum": 0,
            "maximum": 30,
            "type": "integer",
            "description": "How many failed performance audits with the largest estimated savings to return (id, title, savings in ms and bytes). 0 = none.",
            "default": 5
          },
          "maxUrls": {
            "title": "Max URLs",
            "minimum": 1,
            "maximum": 10000,
            "type": "integer",
            "description": "Stop after this many URLs (from the list and the sitemap together). Each URL is audited once per device. Without your own Google API key a run is limited to 25 audits. The default without input (API, MCP and AI-agent calls) is 20.",
            "default": 20
          },
          "locale": {
            "title": "Language of audit titles",
            "type": "string",
            "description": "Locale for Lighthouse texts such as opportunity titles, e.g. en, de, fr, pt-BR.",
            "default": "en"
          },
          "maxConcurrency": {
            "title": "Parallel audits",
            "minimum": 1,
            "maximum": 10,
            "type": "integer",
            "description": "Audits running at the same time. One audit takes 10-40 s at Google.",
            "default": 4
          },
          "maxRequestsPerSecond": {
            "title": "Max requests per second to Google",
            "minimum": 0.2,
            "maximum": 4,
            "type": "number",
            "description": "Start rate limit for Google API calls. Google's default PageSpeed quota is 400 requests per 100 seconds; keep 2 unless you share the key with other tools.",
            "default": 2
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}