Retrieve a lighthouse report
Retrieves the report of lighthouse test. Supply the unique test ID from either a lighthouse test creation request or the lighthouse tests list, and SpeedVitals will return the corresponding test information.
Path parameters
-
Maximum length is
5000
.
GET
/v1/lighthouse-tests/{id}
curl \
-X GET https://api.speedvitals.com/v1/lighthouse-tests/lt_LthsZedDcOUfYFHxN \
-H "X-API-KEY: $API_KEY"
Response examples (200)
{
"id": "lt_LthsZedDcOUfYFHxN",
"url": "https://speedvitals.com",
"device": "macbookAirM1",
"location": "us",
"config": {
"http_version": 2,
"video": true,
"adblock": true
},
"status": "idle",
"lighthouse_version": "9.6.2",
"metrics": {
"cumulative_layout_shift": 0.0,
"first_contentful_paint": 515,
"first_meaningful_paint": 566,
"time_to_interactive": 725,
"largest_contentful_paint": 515,
"server_response_time": 21,
"speed_index": 1123,
"total_blocking_time": 69,
"performance_score": 99
},
"report_url": "https://speedvitals.com/report/speedvitals.com/Q6qWx6/",
"created_at": 1657537268453,
"expires_at": 1660129268453,
"error": null
}
Response examples (200)
{
"id": "lt_LthsZedDcOUfYFHxN",
"url": "https://speedvitals.com",
"error": null,
"config": {
"video": true,
"adblock": true,
"http_version": 2
},
"device": "macbookAirM1",
"status": "idle",
"metrics": {
"speed_index": 1123,
"performance_score": 99,
"time_to_interactive": 725,
"total_blocking_time": 69,
"server_response_time": 21,
"first_contentful_paint": 515,
"first_meaningful_paint": 566,
"cumulative_layout_shift": 0.0,
"largest_contentful_paint": 515
},
"location": "us",
"created_at": 1657537268453,
"expires_at": 1660129268453,
"report_url": "https://speedvitals.com/report/speedvitals.com/Q6qWx6/",
"lighthouse_version": "9.6.2"
}