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
| Parameter | Type | Description |
|---|---|---|
| urls | String Array | Required. Pages to test. A link without a scheme gets https:// added. Max 100 items. |
| strategy | ENUM | Allowed values: mobile, desktop, both. both returns two rows per URL. |
| categories | ENUM Array | Allowed values: performance, accessibility, best-practices, seo. Empty means all four. Categories not run come back as null. |
| maxUrls | Integer | Test at most this many URLs from the list. |
| includeErrorRows | Boolean | Also 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.
| Parameter | Type | Description |
|---|---|---|
| count | Integer | Number of rows in items. |
| items[].url | String | URL as sent. |
| items[].finalUrl | String | Address after redirects. |
| items[].strategy | String | mobile or desktop. |
| items[].performance | Integer | Performance score from 0 to 100. null if not run. |
| items[].accessibility | Integer | Accessibility score from 0 to 100. null if not run. |
| items[].bestPractices | Integer | Best-practices score from 0 to 100. null if not run. |
| items[].seo | Integer | SEO score from 0 to 100. null if not run. |
| items[].fcpMs | Integer | First Contentful Paint in milliseconds. |
| items[].lcpMs | Integer | Largest Contentful Paint in milliseconds. |
| items[].tbtMs | Integer | Total Blocking Time in milliseconds. |
| items[].ttiMs | Integer | Time to Interactive in milliseconds. |
| items[].speedIndexMs | Integer | Speed Index in milliseconds. |
| items[].cls | Number | Cumulative Layout Shift. |
| items[].requests | Integer | Number of network requests. |
| items[].totalByteWeight | Integer | Total page weight in bytes. |
| items[].failingAudits | Object Array | Checks the page failed, each with category, id and title. |
| items[].opportunities | Object Array | Suggested improvements, each with id, title, savingsMs and savingsBytes. |
| items[].fieldData | Object | Real-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[].fieldNote | String | Why fieldData is missing. null otherwise. |
| items[].fetchTime | String | Time of the test. |
| items[].source | String | Where 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": "..."}.


