Retrieve a lighthouse batch 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-batch-tests/{id}
curl \
-X GET https://api.speedvitals.com/v1/lighthouse-batch-tests/{id} \
-H "X-API-KEY: $API_KEY"
Response examples (200)
{
"id": "lbt_IU8rN0XQmIWEqGkP",
"urls": [
"https://speedvitals.com",
"https://blog.speedvitals.com"
],
"devices": [
"macbookAirM1"
],
"locations": [
"us"
],
"batch_type": "multiple-urls",
"config": null,
"status": "active",
"lighthouse_version": "9.6.2",
"report_url": "https://speedvitals.com/result/afd98w0l/",
"created_at": 1657539924734,
"expires_at": 1660131924733,
"reports": [
{
"id": "lt_dObdG5EW4d231hto",
"url": "https://speedvitals.com",
"device": "macbookAirM1",
"location": "us",
"status": "success",
"metrics": {
"cumulative_layout_shift": 0.0,
"first_contentful_paint": 292,
"first_meaningful_paint": 297,
"time_to_interactive": 297,
"largest_contentful_paint": 434,
"server_response_time": 32,
"speed_index": 900,
"total_blocking_time": 0,
"performance_score": 100
},
"report_url": "https://speedvitals.com/report/speedvitals.com/IvWenx/",
"error": null
},
{
"id": "lt_dmpbeQ2xk1XPh4UP",
"url": "https://blog.speedvitals.com",
"device": "macbookAirM1",
"location": "us",
"status": "idle",
"metrics": {
"cumulative_layout_shift": 0.0,
"first_contentful_paint": 322,
"first_meaningful_paint": 365,
"time_to_interactive": 368,
"largest_contentful_paint": 488,
"server_response_time": 68,
"speed_index": 1406,
"total_blocking_time": 0,
"performance_score": 99
},
"report_url": "https://speedvitals.com/report/blog.speedvitals.com/3t4lm7",
"error": null
}
]
}
Response examples (200)
{
"id": "lbt_IU8rN0XQmIWEqGkP",
"urls": [
"https://speedvitals.com",
"https://blog.speedvitals.com"
],
"config": null,
"status": "active",
"devices": [
"macbookAirM1"
],
"reports": [
{
"id": "lt_dObdG5EW4d231hto",
"url": "https://speedvitals.com",
"error": null,
"device": "macbookAirM1",
"status": "success",
"metrics": {
"speed_index": 900,
"performance_score": 100,
"time_to_interactive": 297,
"total_blocking_time": 0,
"server_response_time": 32,
"first_contentful_paint": 292,
"first_meaningful_paint": 297,
"cumulative_layout_shift": 0.0,
"largest_contentful_paint": 434
},
"location": "us",
"report_url": "https://speedvitals.com/report/speedvitals.com/IvWenx/"
},
{
"id": "lt_dmpbeQ2xk1XPh4UP",
"url": "https://blog.speedvitals.com",
"error": null,
"device": "macbookAirM1",
"status": "idle",
"metrics": {
"speed_index": 1406,
"performance_score": 99,
"time_to_interactive": 368,
"total_blocking_time": 0,
"server_response_time": 68,
"first_contentful_paint": 322,
"first_meaningful_paint": 365,
"cumulative_layout_shift": 0.0,
"largest_contentful_paint": 488
},
"location": "us",
"report_url": "https://speedvitals.com/report/blog.speedvitals.com/3t4lm7"
}
],
"locations": [
"us"
],
"batch_type": "multiple-urls",
"created_at": 1657539924734,
"expires_at": 1660131924733,
"report_url": "https://speedvitals.com/result/afd98w0l/",
"lighthouse_version": "9.6.2"
}