Performance
Get frontend performance overview
GET
Returns Web Vitals and page-load performance metrics for frontend projects.
cookiecookie
better-auth.session_token<token>Dashboard session cookie
from*stringFormat
date-timeto*stringFormat
date-timeprojectIds?array<string>environment?array<string>buckets?integerRange
10 <= value <= 400Default
48application/json- response
score*pageLoad*failures*users*vitals*pagesToFix*array<>pages*array<>curl -X GET 'https://api.example.com/api/v1/performance/frontend/overview?from=2019-08-24T14%3A15%3A22Z&to=2019-08-24T14%3A15%3A22Z'Example Response
{
"score": {
"unit": "count",
"value": 0,
"previous": 0,
"health": "normal",
"buckets": [
{
"timestamp": "2019-08-24T14:15:22Z",
"value": 0,
"previous": 0,
"health": "normal"
}
]
},
"pageLoad": {
"unit": "count",
"value": 0,
"previous": 0,
"health": "normal",
"buckets": [
{
"timestamp": "2019-08-24T14:15:22Z",
"value": 0,
"previous": 0,
"health": "normal"
}
]
},
"failures": {
"unit": "count",
"value": 0,
"previous": 0,
"health": "normal",
"buckets": [
{
"timestamp": "2019-08-24T14:15:22Z",
"value": 0,
"previous": 0,
"health": "normal"
}
]
},
"users": {
"unit": "count",
"value": 0,
"previous": 0,
"health": "normal",
"buckets": [
{
"timestamp": "2019-08-24T14:15:22Z",
"value": 0,
"previous": 0,
"health": "normal"
}
]
},
"vitals": {
"lcp": {
"p75": 0,
"count": 0,
"good": 0,
"needsImprovement": 0,
"poor": 0
},
"fcp": {
"p75": 0,
"count": 0,
"good": 0,
"needsImprovement": 0,
"poor": 0
},
"cls": {
"p75": 0,
"count": 0,
"good": 0,
"needsImprovement": 0,
"poor": 0
},
"inp": {
"p75": 0,
"count": 0,
"good": 0,
"needsImprovement": 0,
"poor": 0
},
"ttfb": {
"p75": 0,
"count": 0,
"good": 0,
"needsImprovement": 0,
"poor": 0
}
},
"pagesToFix": [
{
"transaction": "string",
"pageViews": 0,
"lastSeenAt": "2019-08-24T14:15:22Z",
"vitals": {
"lcp": {
"p75": 0,
"count": 0,
"good": 0,
"needsImprovement": 0,
"poor": 0
},
"fcp": {
"p75": 0,
"count": 0,
"good": 0,
"needsImprovement": 0,
"poor": 0
},
"cls": {
"p75": 0,
"count": 0,
"good": 0,
"needsImprovement": 0,
"poor": 0
},
"inp": {
"p75": 0,
"count": 0,
"good": 0,
"needsImprovement": 0,
"poor": 0
},
"ttfb": {
"p75": 0,
"count": 0,
"good": 0,
"needsImprovement": 0,
"poor": 0
}
},
"score": 0,
"health": "normal"
}
],
"pages": [
{
"transaction": "string",
"pageViews": 0,
"lastSeenAt": "2019-08-24T14:15:22Z",
"vitals": {
"lcp": {
"p75": 0,
"count": 0,
"good": 0,
"needsImprovement": 0,
"poor": 0
},
"fcp": {
"p75": 0,
"count": 0,
"good": 0,
"needsImprovement": 0,
"poor": 0
},
"cls": {
"p75": 0,
"count": 0,
"good": 0,
"needsImprovement": 0,
"poor": 0
},
"inp": {
"p75": 0,
"count": 0,
"good": 0,
"needsImprovement": 0,
"poor": 0
},
"ttfb": {
"p75": 0,
"count": 0,
"good": 0,
"needsImprovement": 0,
"poor": 0
}
},
"score": 0
}
]
}