apyhub
Back
▣ MEDIA KIT

Bulk Website Speed Test API

What it does

The Bulk Website Speed Test API measures how fast and well-built a web page is. Send one or more page URLs and get back Google Lighthouse scores for performance, accessibility, best practices and SEO. Each page also gets its Core Web Vitals timings.

Send full links in urls. Choose strategy to test as a mobile phone, a desktop, or both, which returns two rows per page. Use categories to run only the checks you need, and maxUrls to cap a long list. Each row also lists the checks the page failed and the fixes that would save the most time, with estimated savings in milliseconds.

When Google has enough visitor data for a page, fieldData adds real-user Core Web Vitals from the last 28 days. It shows whether the page passes or fails. One test takes about 8 to 60 seconds, so use a client timeout of at least 120 seconds.

SEO agencies use this website speed test API to audit client pages in bulk. Development teams use it to catch slow pages before a release. Site owners use it to track their Core Web Vitals over time.

To see what each site is built with, pair it with the Bulk Website Tech Stack Lookup API. For a full one-page report, use the Website Snapshot Report API.

POST
Lighthouse PageSpeed Checker - Core Web Vitals in Bulk
https://api.eu.apyhub.com/martin10291/bulk-website-speed-test/lighthouse-pagespeed-audit

QUICKSTART

GUIDE

Quickstart

Test how fast and well-built a page is on a mobile phone.

curl -X POST "https://api.eu.apyhub.com/martin10291/bulk-website-speed-test/lighthouse-pagespeed-audit" \
  -H "apy-token: $APY_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"urls": ["https://apyhub.com"], "strategy": "desktop"}'

What you'll get back

Returns a JSON object with count and an items array, one row per URL and strategy. The example below shows 2 of the 3 failing checks.

{
  "count": 1,
  "items": [
    {
      "accessibility": null,
      "bestPractices": null,
      "cls": 0.002,
      "failingAudits": [],
      "fcpMs": 367,
      "fetchTime": "2026-11-25T10:22:03.946Z",
      "fieldData": {
        "clsGoodPct": 69.1,
        "clsP75": 0.19,
        "clsVerdict": "needs-improvement",
        "coreWebVitals": "fail",
        "fcpGoodPct": 81.8,
        "fcpP75Ms": 1569,
        "formFactor": "desktop",
        "inpP75Ms": null,
        "inpVerdict": null,
        "lcpGoodPct": 86.4,
        "lcpP75Ms": 1747,
        "lcpVerdict": "good",
        "periodEnd": "2026-11-23",
        "periodStart": "2026-10-27",
        "scope": "url",
        "source": "Chrome UX Report (real Chrome users, p75, last 28 days)",
        "ttfbGoodPct": 47.5,
        "ttfbP75Ms": 1278
      },
      "fieldNote": null,
      "finalUrl": "https://apyhub.com/",
      "lcpMs": 367,
      "opportunities": [
        {
          "id": "unused-javascript",
          "savingsBytes": 996983,
          "savingsMs": 0,
          "title": "Reduce unused JavaScript"
        }
      ],
      "performance": 79,
      "requests": 38,
      "seo": null,
      "source": "google-psi",
      "speedIndexMs": 1018,
      "strategy": "desktop",
      "tbtMs": 490,
      "totalByteWeight": 1911843,
      "ttiMs": 2788,
      "url": "https://apyhub.com"
    }
  ]
}
TRY ITLIVE · 100 ATOMS
Loading your default key…
The full key is used to call the gateway and stays in this tab — never sent to orbit or saved.
body*
urls*
Pages to test. A link without a scheme gets https:// added. Max 100.
Test at most this many URLs from the list.
mobile, desktop, or both (two rows per URL).
categories
Lighthouse categories to run. Empty = all four. Categories not run come back as null.

About this endpoint

What it does

Runs a Google Lighthouse test for each URL and returns category scores, lab timings, failed checks and, when available, real-user Core Web Vitals. One row per URL and strategy.

Request Body

ParameterTypeDescription
urlsString ArrayRequired. Pages to test. A link without a scheme gets https:// added. Max 100 items.
strategyENUMAllowed values: mobile, desktop, both. both returns two rows per URL.
categoriesENUM ArrayAllowed values: performance, accessibility, best-practices, seo. Empty means all four. Categories not run come back as null.
maxUrlsIntegerTest at most this many URLs from the list.
includeErrorRowsBooleanAlso return a row for URLs that could not be tested.

Response

Returns a JSON object with count and an items array, one row per URL and strategy.

ParameterTypeDescription
countIntegerNumber of rows in items.
items[].urlStringURL as sent.
items[].finalUrlStringAddress after redirects.
items[].strategyStringmobile or desktop.
items[].performanceIntegerPerformance score from 0 to 100. null if not run.
items[].accessibilityIntegerAccessibility score from 0 to 100. null if not run.
items[].bestPracticesIntegerBest-practices score from 0 to 100. null if not run.
items[].seoIntegerSEO score from 0 to 100. null if not run.
items[].fcpMsIntegerFirst Contentful Paint in milliseconds.
items[].lcpMsIntegerLargest Contentful Paint in milliseconds.
items[].tbtMsIntegerTotal Blocking Time in milliseconds.
items[].ttiMsIntegerTime to Interactive in milliseconds.
items[].speedIndexMsIntegerSpeed Index in milliseconds.
items[].clsNumberCumulative Layout Shift.
items[].requestsIntegerNumber of network requests.
items[].totalByteWeightIntegerTotal page weight in bytes.
items[].failingAuditsObject ArrayChecks the page failed, each with category, id and title.
items[].opportunitiesObject ArraySuggested improvements, each with id, title, savingsMs and savingsBytes.
items[].fieldDataObjectReal-user Core Web Vitals from the Chrome UX Report (last 28 days): coreWebVitals (pass or fail), lcpP75Ms, inpP75Ms, clsP75, fcpP75Ms, ttfbP75Ms, each metric's ...GoodPct and ...Verdict, formFactor, scope, periodStart, periodEnd, source. null when Google has no data for the page.
items[].fieldNoteStringWhy fieldData is missing. null otherwise.
items[].fetchTimeStringTime of the test.
items[].sourceStringWhere the test ran, for example google-psi.

Notes

  • One test takes about 8 to 60 seconds. Use a client timeout of at least 120 seconds.
  • A URL whose domain does not exist returns 400.
  • Errors use one shape: {"code": "invalid_input", "error": "...", "message": "..."}.
▣ COMMON ERRORS

Errors any endpoint can return

400bad_request

Required parameter missing or malformed body.

401unauthorized

API key missing, revoked, or not authorized for this service.

429rate_limited

Your plan's per-second rate exceeded. Retry with exponential backoff.

503upstream_busy

Backend temporarily unavailable. Try again in a few seconds.