Skip to content
Start in Cloud

Get Web Vitals timeseries REST API

GET
/api/sites/{id}/web-vitals/timeseries
curl --request GET \
--url 'https://app.hitkeep.com/api/sites/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/web-vitals/timeseries?rating=good&metric=LCP' \
--cookie hk_token=<hk_token>

Returns p75 and rating counts bucketed by hour or day for one Web Vital metric.

id
required
string format: uuid
from
string format: date-time
to
string format: date-time
path
string

Exact normalized page path.

rating
string
Allowed values: good needs_improvement poor

Web Vital threshold rating.

metric
required
string
Allowed values: LCP INP CLS FCP TTFB

Web Vital metric.

Web Vitals timeseries

Media typeapplication/json
Array<object>
object
good
integer
needs_improvement
integer
p75
number
poor
integer
samples
integer
time
string format: date-time
Examplegenerated
[
{
"good": 1,
"needs_improvement": 1,
"p75": 1,
"poor": 1,
"samples": 1,
"time": "2026-04-15T12:00:00Z"
}
]