Skip to content
Start in Cloud

Get Web Vitals summary

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

Returns p75, sample count, rating counts, and derived p75 rating for each 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
string
Allowed values: LCP INP CLS FCP TTFB

Web Vital metric.

Web Vitals summary

Media type application/json
Array<object>
object
metric
string
Allowed values: LCP INP CLS FCP TTFB
p75
number
samples
integer
good
integer
needs_improvement
integer
poor
integer
rating
string
Allowed values: good needs_improvement poor
metrics
object
key
additional properties
object
p75
number
samples
integer
good
integer
needs_improvement
integer
poor
integer
rating
string
Allowed values: good needs_improvement poor
Example
[
{
"metric": "LCP",
"rating": "good",
"metrics": {
"additionalProperty": {
"rating": "good"
}
}
}
]