{
  "openapi": "3.0.1",
  "info": {
    "title": "Core Web Vitals Bulk Checker: LCP, INP, CLS for many URLs",
    "description": "Test many URLs or a whole sitemap for Core Web Vitals. Get real-user LCP, INP and CLS from Chrome UX Report plus Lighthouse scores, mobile and desktop, with pass or fail on your limits. Needs your own free Google API key. $0.002 per page tested.",
    "version": "0.1",
    "x-build-id": "JANFrmy8MsqEefJxo"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/opstoolkit~core-web-vitals-checker/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-opstoolkit-core-web-vitals-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/opstoolkit~core-web-vitals-checker/runs": {
      "post": {
        "operationId": "runs-sync-opstoolkit-core-web-vitals-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/opstoolkit~core-web-vitals-checker/run-sync": {
      "post": {
        "operationId": "run-sync-opstoolkit-core-web-vitals-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": {
          "googleApiKey": {
            "title": "Your Google API key",
            "type": "string",
            "description": "A free key from your own Google Cloud project with the PageSpeed Insights API enabled (console.cloud.google.com, APIs and services, Credentials). Paste the key text as is. It allows 25,000 tests a day. It is sent to Google only and is not stored. Leave it empty for a free demo run: sample rows marked sample true and status demo, nothing measured. Real results need a key."
          },
          "urls": {
            "title": "Page URLs",
            "type": "array",
            "description": "Full page URLs, one per item, including https://. Example: [\"https://example.com/pricing\", \"https://example.com/blog\"]. Each page is tested once per device, and each test is billed. Give this, sitemapUrls, or both. Capped by maxUrls.",
            "items": {
              "type": "string"
            }
          },
          "sitemapUrls": {
            "title": "Websites or sitemap links (optional)",
            "type": "array",
            "description": "A domain or a sitemap link, one per item. Example: [\"example.com\", \"https://example.com/sitemap.xml\"]. The Actor reads the sitemap (robots.txt first, then /sitemap.xml) and adds those pages to the URLs list. Each sitemap is capped by maxUrlsPerSitemap, and the total by maxUrls.",
            "items": {
              "type": "string"
            }
          },
          "strategy": {
            "title": "Device",
            "enum": [
              "mobile",
              "desktop",
              "both"
            ],
            "type": "string",
            "description": "Which device Google simulates: mobile, desktop or both. Mobile is the one Google uses for ranking. Both tests every page twice and is billed twice. Default: mobile.",
            "default": "mobile"
          },
          "maxUrls": {
            "title": "Max pages",
            "minimum": 1,
            "maximum": 5000,
            "type": "integer",
            "description": "Most pages tested in the run, including pages read from sitemaps. A whole number from 1 to 5000, for example 100. You pay per test, so this caps the cost. Default: 50.",
            "default": 50
          },
          "maxUrlsPerSitemap": {
            "title": "Max pages per sitemap",
            "minimum": 1,
            "maximum": 5000,
            "type": "integer",
            "description": "Most pages taken from each sitemap. A whole number from 1 to 5000, for example 100. Stops one big site from using the whole list. Default: 50.",
            "default": 50
          },
          "lcpThresholdMs": {
            "title": "LCP limit (ms)",
            "minimum": 100,
            "maximum": 60000,
            "type": "integer",
            "description": "Largest contentful paint limit in milliseconds. A page fails when its LCP is slower than this. A whole number from 100 to 60000. Google's good limit, and the default, is 2500.",
            "default": 2500
          },
          "inpThresholdMs": {
            "title": "INP limit (ms)",
            "minimum": 10,
            "maximum": 10000,
            "type": "integer",
            "description": "Interaction to next paint limit in milliseconds. A page fails when its INP is slower than this. A whole number from 10 to 10000. Google's good limit, and the default, is 200. Pages with no INP data are judged on LCP and CLS.",
            "default": 200
          },
          "clsThreshold": {
            "title": "CLS limit",
            "minimum": 0,
            "maximum": 5,
            "type": "number",
            "description": "Cumulative layout shift limit, a plain number without a unit, for example 0.1. A page fails when its CLS is higher than this. From 0 to 5. Google's good limit, and the default, is 0.1.",
            "default": 0.1
          },
          "minPerformanceScore": {
            "title": "Min Lighthouse performance score (0 = ignore)",
            "minimum": 0,
            "maximum": 100,
            "type": "integer",
            "description": "A whole number from 0 to 100, for example 80. Pages whose Lighthouse lab performance score is below this also fail, even when the vitals pass. 0 ignores the score. Default: 0.",
            "default": 0
          },
          "useOriginFallback": {
            "title": "Use whole-site data when the page has none",
            "type": "boolean",
            "description": "When true, a page without enough real visits of its own is judged on the whole site's real-user data (origin), and the row says so in assessmentBasis. When false, such pages fall through to the lab fallback. Default: true.",
            "default": true
          },
          "labFallback": {
            "title": "Judge by the lab test when there is no real-user data",
            "type": "boolean",
            "description": "When true and there is no Chrome UX Report data at all, pass or fail uses the Lighthouse run (LCP, CLS and total blocking time). When false the row gets assessment no_data. Default: true.",
            "default": true
          },
          "extraCategories": {
            "title": "Extra Lighthouse scores",
            "type": "array",
            "description": "Extra Lighthouse scores to add to each row, any of accessibility, best-practices, seo. Example: [\"seo\", \"accessibility\"]. Performance is always included. These come from the same test at no extra charge. Leave empty for none.",
            "items": {
              "type": "string",
              "enum": [
                "accessibility",
                "best-practices",
                "seo"
              ],
              "enumTitles": [
                "Accessibility",
                "Best practices",
                "SEO"
              ]
            }
          },
          "includeOpportunities": {
            "title": "List the top speed fixes",
            "type": "boolean",
            "description": "When true, each row gets the five Lighthouse opportunities with the biggest time saving, in topOpportunities. Default: true.",
            "default": true
          },
          "maxConcurrency": {
            "title": "Parallel tests",
            "minimum": 1,
            "maximum": 10,
            "type": "integer",
            "description": "How many tests run at once. A whole number from 1 to 10. A test takes Google 10 to 40 seconds, so more parallel tests finish sooner. Lower it if Google answers with rate limit errors. Default: 5.",
            "default": 5
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}