Page detail
Page detail
Get the latest test results from a page and a device (desktop/mobile).
GET /{website-id}/pages/{page-id}?device={device}
Argument | Description |
---|---|
website-id | The internal ID of the website |
page-id | The internal ID of the page |
device | Either "desktop" or "mobile" |
The result looks like this:
200 OK
{
"id": "27ebx6g5v2",
"url": "/",
"alias": "Home",
"device": "desktop",
"latestMetrics": {
"fcp": 942,
"lcp": 5458,
"cls": 0.39,
"tbt": 174,
"ttfb": 875,
"speed_index": 3735,
"performance_score": 43,
"accessibility_score": 100,
"best_practices_score": 83,
"seo_score": 92,
"kb_total": 2745,
"cpu_total": 2371,
"budgets_exceeded": 2,
"budgets_at_risk": 0,
"opportunities": 20,
"validation_errors": 77
},
"latestCrux": {
"id": "27ebx6g5v2",
"device": "desktop",
"lcp": {
"value": 1910,
"green": 84.6,
"yellow": 9.2,
"red": 6.2
},
"fid": {
"value": 3,
"green": 98.7,
"yellow": 0.9,
"red": 0.4
},
"inp": {
"value": 275,
"green": 78.7,
"yellow": 15.4,
"red": 5.9
},
"cls": {
"value": 16,
"green": 49.2,
"yellow": 38.1,
"red": 12.7
},
"passed": false
}
Each website item has these properties:
Property | Description |
---|---|
id | The internal ID of the page |
url | The relative URL of the page, relative to the website domain |
alias | The displayed name of the page in the admin UI |
device | Either desktop or mobile |
latestMetrics | A collection of Lighthouse metrics, averaged over the last 3 days. See below. |
latestCrux | A collection of CrUX metrics, averaged over the last 3 days. See below. |
Properties for latestMetrics
Property | Data type | Description |
---|---|---|
fcp | integer | First Contentful Paint (ms) |
lcp | integer | Largest Contentful Paint (ms) |
cls | float | Cumulative Layout Shift (unitless) |
tbt | integer | Total Blocking Time (ms) |
ttfb | integer | Time To First Byte (ms) |
speed_index | integer | Speed Index (ms) |
performance_score | integer | Performance Score (ms) |
accessibility_score | integer | Accessibility Score (ms) |
best_practices_score | integer | Best Practices Score (ms) |
seo_score | integer | SEO Score (ms) |
kb_total | integer | Total transfer size (KB) |
cpu_time | integer | Total CPU time (ms) |
budgets_exceeded | integer | Number of budgets exceeded |
budgets_at_risk | integer | Number of budgets within 10% of exceeding |
opportunities | integer | Number of opportunities / recommendations identified by Google Lighthouse |
validation_errors | integer | Number of HTML validation errors found |
Properties for latestCrux
Has the latest values for the CrUX values of the page, if available.
Property | Description |
---|---|
fcp | First Contentful Paint |
lcp | Largest Contentful Paint |
fid | First Input Delay |
cls | Cumulative Layout Shift |
ttfb | Time To First Byte |
inp | Interaction To Next Paint |
passed | True if Core Web Vitals passed, otherwise false |
Each web vital has these properties:
Property | Data type | Description |
---|---|---|
value | integer / float | The 75th percentile value - in ms or unitless (cls) |
green | float | The percentage of traffic getting a good experience |
yellow | float | The percentage of traffic getting a "needs improvement" experience |
red | float | The percentage of traffic getting a poor experience |