{
  "openapi": "3.0.1",
  "info": {
    "title": "PageSpeed & Core Web Vitals Monitor",
    "description": "Bulk PageSpeed/Lighthouse audits + real-user Core Web Vitals (CrUX) with history and alerts. Free public trial until 25 December 2026. No additional Actor usage fees during the trial. Standard Apify platform usage costs may still apply. Any future pricing changes will be announced in advance.",
    "version": "0.1",
    "x-build-id": "pzjQXr8y8rgsUrRqh"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/meltemi-labs~pagespeed-core-web-vitals-monitor/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-meltemi-labs-pagespeed-core-web-vitals-monitor",
        "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/meltemi-labs~pagespeed-core-web-vitals-monitor/runs": {
      "post": {
        "operationId": "runs-sync-meltemi-labs-pagespeed-core-web-vitals-monitor",
        "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/meltemi-labs~pagespeed-core-web-vitals-monitor/run-sync": {
      "post": {
        "operationId": "run-sync-meltemi-labs-pagespeed-core-web-vitals-monitor",
        "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": [
          "googleApiKey"
        ],
        "properties": {
          "googleApiKey": {
            "title": "Google API key (required, free)",
            "type": "string",
            "description": "Your own Google Cloud API key with \"PageSpeed Insights API\" and \"Chrome UX Report API\" enabled. Both APIs are free. The key is stored encrypted by Apify, sent to Google only in a request header and never written to logs or results. Tip: restrict the key to these two APIs in Google Cloud Console."
          },
          "urls": {
            "title": "URLs to check",
            "type": "array",
            "description": "Public http(s) pages to audit. Duplicates are removed.",
            "items": {
              "type": "object",
              "required": [
                "url"
              ],
              "properties": {
                "url": {
                  "type": "string",
                  "title": "URL of a web page",
                  "format": "uri"
                }
              }
            }
          },
          "sitemapUrls": {
            "title": "Sitemaps (optional)",
            "type": "array",
            "description": "Sitemap or sitemap-index URLs. Pages are picked across page types (e.g. /product/, /blog/) up to \"Max URLs\". With a monitor name, the same pages are checked on every run.",
            "items": {
              "type": "string"
            }
          },
          "maxUrls": {
            "title": "Max URLs per run",
            "minimum": 1,
            "maximum": 2000,
            "type": "integer",
            "description": "Hard cap on pages checked (each page is checked once per selected device). Max 2000.",
            "default": 50
          },
          "devices": {
            "title": "Devices",
            "type": "array",
            "description": "Lighthouse strategy and CrUX form factor.",
            "items": {
              "type": "string",
              "enum": [
                "mobile",
                "desktop"
              ],
              "enumTitles": [
                "Mobile",
                "Desktop"
              ]
            },
            "default": [
              "mobile",
              "desktop"
            ]
          },
          "monitorName": {
            "title": "Monitor name (enables comparison & regression alerts)",
            "type": "string",
            "description": "Any name, e.g. \"client-acme\". Each name has its own history in your account, compared on the next run with exactly the same name (upper/lower case counts). Schedule the Actor weekly to get alerts."
          },
          "refreshPages": {
            "title": "Pick new pages from the sitemaps",
            "type": "boolean",
            "description": "A monitor remembers the pages it picked from your sitemaps and checks the same ones on every run. Turn this on for one run to pick a new list, then turn it off again.",
            "default": false
          },
          "includeFieldData": {
            "title": "Real-user data (CrUX)",
            "type": "boolean",
            "description": "Fetch Core Web Vitals from real Chrome users (p75). Pages with too little traffic fall back to whole-site (origin) data, or are marked \"insufficient-data\".",
            "default": true
          },
          "historyWeeks": {
            "title": "History (weeks)",
            "minimum": 0,
            "maximum": 40,
            "type": "integer",
            "description": "Weekly CrUX history points (28-day rolling windows). 0 = off. Max 40 (CrUX History API limit).",
            "default": 25
          },
          "lighthouseCategories": {
            "title": "Lighthouse categories",
            "type": "array",
            "description": "Performance is always included.",
            "items": {
              "type": "string",
              "enum": [
                "performance",
                "accessibility",
                "best-practices",
                "seo"
              ],
              "enumTitles": [
                "Performance",
                "Accessibility",
                "Best practices",
                "SEO"
              ]
            },
            "default": [
              "performance",
              "accessibility",
              "best-practices",
              "seo"
            ]
          },
          "lighthouseAlerts": {
            "title": "Experimental: Lighthouse alerts",
            "type": "boolean",
            "description": "Off by default. Lighthouse scores of an unchanged page can differ a lot from test to test (in our tests by 20 to 50 points on heavy pages), so these alerts may be FALSE ALARMS. Scores, history and comparisons are always recorded; alerts from real users (CrUX) do not need this option.",
            "default": false
          },
          "performanceScoreDropAlert": {
            "title": "Experimental: Lighthouse score drop (points)",
            "minimum": 1,
            "maximum": 100,
            "type": "integer",
            "description": "Only used when \"Experimental: Lighthouse alerts\" is on. Alert when the performance score is at least this many points below the median of the last 5 checks and a second, fresh test shows it too. Needs 3 earlier checks. Higher values give fewer false alarms.",
            "default": 10
          },
          "fieldWorseningPctAlert": {
            "title": "Alert: real-user p75 worsening (%)",
            "minimum": 1,
            "maximum": 500,
            "type": "integer",
            "description": "Flag a regression when a p75 gets this much worse and changes by at least LCP 250 ms, INP 50 ms or CLS 0.05. A drop to a worse rating is flagged from LCP 100 ms, INP 20 ms or CLS 0.02 on. Smaller changes are noise.",
            "default": 15
          },
          "webhookUrl": {
            "title": "Webhook (not available yet)",
            "type": "string",
            "description": "Not available during the public trial: the value is ignored."
          },
          "maxConcurrency": {
            "title": "Parallel checks",
            "minimum": 1,
            "maximum": 8,
            "type": "integer",
            "description": "Kept below Google's per-project quotas.",
            "default": 4
          },
          "requestTimeoutSecs": {
            "title": "Timeout per Lighthouse check (s)",
            "minimum": 30,
            "maximum": 120,
            "type": "integer",
            "description": "How long to wait for one Lighthouse check before retrying. Slow pages can take 30-60 seconds.",
            "default": 90
          },
          "maxRetries": {
            "title": "Retries on temporary errors",
            "minimum": 0,
            "maximum": 4,
            "type": "integer",
            "description": "How many times to retry a check after a temporary Google error or timeout.",
            "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}