{
  "openapi": "3.0.1",
  "info": {
    "title": "Bulk PageSpeed Insights & Lighthouse Checker",
    "description": "Bulk-test URLs or a whole sitemap with Google PageSpeed Insights (Lighthouse): performance, SEO & accessibility scores plus real-user Core Web Vitals (LCP, INP, CLS) on mobile and desktop. Monitoring mode flags score drops. $0.002 per URL per device, failed URLs free. Unofficial, not Google.",
    "version": "0.1",
    "x-build-id": "HJJe8Y9E01vybxack"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/quanta1810~bulk-pagespeed/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-quanta1810-bulk-pagespeed",
        "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/quanta1810~bulk-pagespeed/runs": {
      "post": {
        "operationId": "runs-sync-quanta1810-bulk-pagespeed",
        "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/quanta1810~bulk-pagespeed/run-sync": {
      "post": {
        "operationId": "run-sync-quanta1810-bulk-pagespeed",
        "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",
            "type": "array",
            "description": "Pages to test — full URLs (https://example.com/pricing) or bare domains (example.com → homepage). One per line. Duplicates and www/non-www twins are removed; invalid entries are listed in the results (free).",
            "items": {
              "type": "string"
            }
          },
          "datasetId": {
            "title": "…or URLs from a dataset",
            "type": "string",
            "description": "Optional: ID of an Apify dataset (for example the results of “Bulk Website Audit”). Fields finalUrl / url / website / domain are used."
          },
          "sitemapUrls": {
            "title": "…or URLs from sitemaps",
            "type": "array",
            "description": "Optional: sitemap.xml URLs (sitemap indexes and .xml.gz work too), or a bare domain like example.com to find its sitemap via robots.txt. Only pages on the sitemap's own website are taken, duplicates of your URL list are removed. Reading sitemaps is free — you pay only for the URLs tested.",
            "items": {
              "type": "string"
            }
          },
          "maxUrlsFromSitemap": {
            "title": "Max URLs from sitemaps",
            "minimum": 1,
            "maximum": 50000,
            "type": "integer",
            "description": "Stop reading sitemaps after this many page URLs (in total, in sitemap order). Each URL costs $0.002 per device, so 100 URLs on mobile + desktop ≈ $0.40.",
            "default": 100
          },
          "strategies": {
            "title": "Devices",
            "type": "array",
            "description": "Mobile, desktop or both. Each device is one PageSpeed run (and one charge).",
            "items": {
              "type": "string",
              "enum": [
                "mobile",
                "desktop"
              ],
              "enumTitles": [
                "Mobile",
                "Desktop"
              ]
            },
            "default": [
              "mobile",
              "desktop"
            ]
          },
          "maxUrls": {
            "title": "Max URLs (0 = all)",
            "minimum": 0,
            "maximum": 50000,
            "type": "integer",
            "description": "Stop after this many URLs — handy for a quick test. Cost: $0.002 per URL per device, so 100 URLs on mobile + desktop ≈ $0.40.",
            "default": 0
          },
          "maxConcurrency": {
            "title": "Parallel requests",
            "minimum": 1,
            "maximum": 10,
            "type": "integer",
            "description": "How many URLs to test at the same time (Google PageSpeed takes 10–60 s per run).",
            "default": 6
          },
          "apiKey": {
            "title": "Your own PageSpeed API key (optional)",
            "type": "string",
            "description": "Not needed — a built-in key is used. Add your own free Google API key only for very large daily volumes."
          },
          "monitorMode": {
            "title": "Monitoring mode (compare with the last run)",
            "type": "boolean",
            "description": "Remember each URL's Lighthouse scores and Core Web Vitals verdict (in a key-value store in YOUR account) and add change columns on the next run: previous score, score delta, changed, regressions. Use it with a weekly Schedule. Same price per result.",
            "default": false
          },
          "monitorName": {
            "title": "Monitor name",
            "type": "string",
            "description": "Keeps separate histories for different lists (e.g. client-a, client-b). Letters, digits and dashes. Empty = \"default\"."
          },
          "onlyChanged": {
            "title": "List only changed URLs",
            "type": "boolean",
            "description": "In monitoring mode, leave out URLs whose scores did not change (new URLs, and URLs where any device failed, are still listed). Unchanged URLs were still tested, so they are still charged. Turns monitoring mode on.",
            "default": false
          },
          "scoreChangeThreshold": {
            "title": "Score change that counts (points)",
            "minimum": 1,
            "maximum": 100,
            "type": "integer",
            "description": "A Lighthouse score must move by at least this many points (0–100 scale) to count as a change. Single lab runs vary 10–20 points on mobile, so lower values flag noise. A flip of the real-user Core Web Vitals verdict always counts.",
            "default": 10
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}