Get a site's PageSpeed history
Answers the Google PageSpeed Insights tests of the site's home page: the newest result for mobile and for desktop, the tests queued or running, every finished test of the last 30 or 90 days, and whether a test can be run now.
Path parameters
The id of a site row. A website's production site and each of its environments has its own id. Digits only. At least 1.
Query parameters
How far back the history and the series go. Defaults to 30d.
30d90dKeeps the history and the series of one strategy. Both when left out.
mobiledesktopReturns
200 The history.
Fields of the 200 answer
Whether PageSpeed tests are running at the moment.
The finished tests of the range, newest first.
Fields of each item
Why a failed test failed. Null otherwise.
When Google analysed the page, or when a failed test was tried. Format: date-time.
At least 1.
Who asked for the test. Null for a scheduled test.
queuedrunningsucceededfailedmobiledesktopTests queued or running now.
Fields of each item
Format: date-time.
What the page loaded. Null when Google reports none of it.
Fields
The number of elements on the page.
The requests and bytes of each kind of file.
Fields of each item
Google's name for the kind, such as script, image or font.
The bytes loaded from other sites.
Why a failed test failed. Null otherwise.
When Google analysed the page. Null until the test succeeds. Format: date-time.
Google's figures from real visits over the last 28 days. Null when it has none for the page or the site.
Fields
Google's verdict in its own word, such as FAST, AVERAGE or SLOW.
page when the figures are the tested page's; origin when any of them is for the whole site.
pageoriginFormat: date-time.
At least 1.
Fields
Cumulative Layout Shift.
Fields
goodneeds_improvementpoornullFirst Contentful Paint.
Fields
goodneeds_improvementpoornullInteraction to Next Paint.
Fields
goodneeds_improvementpoornullfield when the figure comes from real visits. Null when there is none.
Largest Contentful Paint.
Fields
goodneeds_improvementpoornullSpeed Index.
Fields
goodneeds_improvementpoornullTotal Blocking Time.
Fields
goodneeds_improvementpoornullTime to first byte.
Fields
goodneeds_improvementpoornullGoogle's suggestions with a saving, the largest saving first, ten at most. Up to 10 items.
Fields of each item
The saving in Google's words, when it gives one.
Google's name for the check, such as unused-javascript.
The time the suggestion could save, in milliseconds.
Who asked for the test. Null for a scheduled test.
The performance score, 0 to 100.
Fields
goodneeds_improvementpoornullFormat: date-time.
queuedrunningsucceededfailedThe status as the Control Panel shows it, such as Queued or Done.
mobiledesktopThe address tested.
The newest test that succeeded, for each strategy.
Fields
Whether a test can be run now.
Fields
When the hourly limit next has room. Null when no test was run this hour. Format: date-time.
The sentence that says why not. Null when a test can be run.
Tests you can still run now this hour.
The scores over the range, for a chart.
Fields
Fields of each item
Format: date-time.
At least 1.
The tests that failed in the range.
Fields of each item
Format: date-time.
At least 1.
mobiledesktopFormat: date-time.
Fields of each item
Format: date-time.
At least 1.
30d90dFormat: date-time.
Fields
At least 1.
Why the site is not tested at the moment. Null when it is.
The address tests run against. Null while the site is not tested.
Fields
The median score of the newest seven successful tests (current) against the seven before them (previous), and the difference (delta). current is null with fewer than three tests; previous and delta are null until the seven before also hold three.
Fields
The median score of the newest seven successful tests (current) against the seven before them (previous), and the difference (delta). current is null with fewer than three tests; previous and delta are null until the seven before also hold three.
Fields
If it is refused
| Status | Reason | What to do |
|---|---|---|
401 | none | Send a valid token as Authorization: Bearer <token>. |
403 | company_unavailable | Your company is unavailable. |
403 | scope_required | Use a token with the scope named in scope. |
403 | two_factor_required | Turn on two-factor on your account, then send again. |
404 | feature_off | This feature is not on for your organisation yet. |
409 | deleted | The site, environment or copy has been deleted, or is being deleted. Nothing can be changed on it. Restore a deleted site first if it can still be restored. |
409 | provisioning | The site is still being created. Try again in a few minutes. |
422 | invalid | Fix the field named in field; errors says why. |
429 | rate_limited | Wait for the seconds in Retry-After. |
Reasons are listed by name in Errors and refusals.
The same task elsewhere
curl https://manage.corefinity.com/api/corestack/sites/1042/pagespeed \
-H "Authorization: Bearer $COREFINITY_TOKEN" \
-H "Accept: application/json"use Illuminate\Support\Facades\Http;
$response = Http::withToken(env('COREFINITY_TOKEN'))
->acceptJson()
->get('https://manage.corefinity.com/api/corestack/sites/1042/pagespeed');
$data = $response->json();const res = await fetch('https://manage.corefinity.com/api/corestack/sites/1042/pagespeed', {
method: 'GET',
headers: {
Authorization: `Bearer ${process.env.COREFINITY_TOKEN}`,
Accept: 'application/json',
},
});
// An answer with no body (204) has nothing to parse.
const text = await res.text();
const data = text && JSON.parse(text);import os
import requests
res = requests.get(
"https://manage.corefinity.com/api/corestack/sites/1042/pagespeed",
headers={
"Authorization": f"Bearer {os.environ['COREFINITY_TOKEN']}",
"Accept": "application/json",
},
)
data = res.json() if res.content else None{
"enabled": true,
"history": [
{
"cls": 0.04,
"error": null,
"fcp_ms": 1200,
"fetched_at": "2026-11-09T13:00:00Z",
"id": 6203,
"inp_ms": 180,
"lcp_ms": 2100,
"performance_score": 91,
"requested_by": null,
"speed_index_ms": 2400,
"status": "succeeded",
"strategy": "desktop",
"tbt_ms": 150,
"ttfb_ms": 320
},
{
"cls": 0.04,
"error": null,
"fcp_ms": 1200,
"fetched_at": "2026-11-09T13:00:00Z",
"id": 6202,
"inp_ms": 180,
"lcp_ms": 2100,
"performance_score": 72,
"requested_by": null,
"speed_index_ms": 2400,
"status": "succeeded",
"strategy": "mobile",
"tbt_ms": 150,
"ttfb_ms": 320
},
{
"cls": 0.04,
"error": null,
"fcp_ms": 1200,
"fetched_at": "2026-11-02T13:00:00Z",
"id": 6201,
"inp_ms": 180,
"lcp_ms": 2100,
"performance_score": 64,
"requested_by": null,
"speed_index_ms": 2400,
"status": "succeeded",
"strategy": "mobile",
"tbt_ms": 150,
"ttfb_ms": 320
}
],
"in_flight": [],
"latest": {
"desktop": {
"created_at": "2026-11-09T13:00:00Z",
"diagnostics": null,
"error": null,
"fetched_at": "2026-11-09T13:00:00Z",
"field": null,
"finished_at": "2026-11-09T13:00:00Z",
"id": 6203,
"lighthouse_version": "12.6.0",
"metrics": {
"cls": {
"band": "good",
"value": 0.04
},
"fcp": {
"band": "good",
"value_ms": 1200
},
"inp": {
"band": "good",
"source": "field",
"value_ms": 180
},
"lcp": {
"band": "good",
"value_ms": 2100
},
"speed_index": {
"band": "good",
"value_ms": 2400
},
"tbt": {
"band": "good",
"value_ms": 150
},
"ttfb": {
"band": "good",
"value_ms": 320
}
},
"opportunities": [],
"requested_by": null,
"score": {
"band": "good",
"value": 91
},
"started_at": "2026-11-09T13:00:00Z",
"status": "succeeded",
"status_label": "Done",
"strategy": "desktop",
"url": "https://harbourandfinch.example.com/"
},
"mobile": {
"created_at": "2026-11-09T13:00:00Z",
"diagnostics": {
"dom_size": 1290,
"resources": [
{
"requests": 31,
"transfer_bytes": 768400,
"type": "script"
},
{
"requests": 28,
"transfer_bytes": 652100,
"type": "image"
}
],
"third_party_bytes": 412600,
"total_requests": 84,
"total_transfer_bytes": 1843200
},
"error": null,
"fetched_at": "2026-11-09T13:00:00Z",
"field": {
"cls": 0.05,
"fcp_ms": 1400,
"inp_ms": 180,
"lcp_ms": 2300,
"overall": "AVERAGE",
"source": "page",
"ttfb_ms": 700
},
"finished_at": "2026-11-09T13:00:00Z",
"id": 6202,
"lighthouse_version": "12.6.0",
"metrics": {
"cls": {
"band": "good",
"value": 0.04
},
"fcp": {
"band": "good",
"value_ms": 1200
},
"inp": {
"band": "good",
"source": "field",
"value_ms": 180
},
"lcp": {
"band": "good",
"value_ms": 2100
},
"speed_index": {
"band": "good",
"value_ms": 2400
},
"tbt": {
"band": "good",
"value_ms": 150
},
"ttfb": {
"band": "good",
"value_ms": 320
}
},
"opportunities": [
{
"display_value": "Est savings of 212 KiB",
"id": "unused-javascript",
"savings_ms": 450,
"title": "Reduce unused JavaScript"
},
{
"display_value": null,
"id": "render-blocking-resources",
"savings_ms": 300,
"title": "Eliminate render-blocking resources"
}
],
"requested_by": null,
"score": {
"band": "needs_improvement",
"value": 72
},
"started_at": "2026-11-09T13:00:00Z",
"status": "succeeded",
"status_label": "Done",
"strategy": "mobile",
"url": "https://harbourandfinch.example.com/"
}
},
"run_now": {
"available": true,
"next_at": null,
"reason": null,
"remaining_this_hour": 2
},
"series": {
"desktop": [
{
"at": "2026-11-09T13:00:00Z",
"run_id": 6203,
"score": 91
}
],
"failures": [],
"from": "2026-10-11T13:00:00Z",
"mobile": [
{
"at": "2026-11-09T13:00:00Z",
"run_id": 6202,
"score": 72
},
{
"at": "2026-11-02T13:00:00Z",
"run_id": 6201,
"score": 64
}
],
"range": "30d",
"to": "2026-11-10T13:00:00Z"
},
"site": {
"domain": "harbourandfinch.example.com",
"id": 1042,
"skipped": null,
"tested_url": "https://harbourandfinch.example.com/"
},
"trend": {
"desktop": {
"current": null,
"delta": null,
"previous": null
},
"mobile": {
"current": null,
"delta": null,
"previous": null
}
}
}{
"message": "Unauthenticated."
}{
"code": "company_unavailable",
"message": "Your company is unavailable.",
"reason": "company_unavailable"
}{
"code": "feature_off",
"message": "Not found.",
"reason": "feature_off"
}{
"code": "deleted",
"message": "This site is deleted and waiting to be purged. Restore it first.",
"reason": "deleted"
}{
"code": "invalid",
"errors": {
"range": [
"The selected range is invalid."
]
},
"field": "range",
"message": "The selected range is invalid.",
"reason": "invalid"
}{
"code": "rate_limited",
"message": "Too many requests. Try again in 60 seconds.",
"reason": "rate_limited",
"retry_after_seconds": 60
}