Get web vitals metrics aggregated by route or pathname, sortable by performance
curl --request GET \
--url https://api.example.com/web_vitals_routes{
"route": "<string>",
"full_pathname": "<string>",
"route_part": "<string>",
"overall_score": 123,
"lcp_avg": 123,
"ttfb_avg": 123,
"fcp_avg": 123,
"inp_avg": 123,
"cls_avg": 123,
"lcp_score": 123,
"ttfb_score": 123,
"fcp_score": 123,
"inp_score": 123,
"cls_score": 123,
"metric_units": "<string>",
"domain": "<string>",
"analysis_type": "<string>"
}Returns web vitals metrics aggregated by route or pathname, allowing you to identify which pages on your site have the best or worst performance. Supports pagination and flexible sorting.Documentation Index
Fetch the complete documentation index at: https://mintlify.com/tinybirdco/web-analytics-starter-kit/llms.txt
Use this file to discover all available pages before exploring further.
GET https://api.tinybird.co/v0/pipes/web_vitals_routes.json
curl -H "Authorization: Bearer YOUR_TOKEN" \
"https://api.tinybird.co/v0/pipes/web_vitals_routes.json?days=7&sort_order=desc&limit=5"
curl -H "Authorization: Bearer YOUR_TOKEN" \
"https://api.tinybird.co/v0/pipes/web_vitals_routes.json?route=checkout&days=30"
curl -H "Authorization: Bearer YOUR_TOKEN" \
"https://api.tinybird.co/v0/pipes/web_vitals_routes.json?analysis_type=pathnames&days=7&limit=20"
{
"data": [
{
"route": "home",
"overall_score": 92.5,
"lcp_avg": 2100.34,
"ttfb_avg": 345.67,
"fcp_avg": 1650.89,
"inp_avg": 180.23,
"cls_avg": 0.08,
"lcp_score": 100,
"ttfb_score": 100,
"fcp_score": 100,
"inp_score": 100,
"cls_score": 100,
"metric_units": "LCP=ms, TTFB=ms, FCP=ms, INP=ms, CLS=score",
"domain": "example.com",
"analysis_type": "routes"
},
{
"route": "products",
"overall_score": 78.3,
"lcp_avg": 3234.56,
"ttfb_avg": 567.89,
"fcp_avg": 2345.67,
"inp_avg": 234.56,
"cls_avg": 0.15,
"lcp_score": 75,
"ttfb_score": 75,
"fcp_score": 75,
"inp_score": 100,
"cls_score": 75,
"metric_units": "LCP=ms, TTFB=ms, FCP=ms, INP=ms, CLS=score",
"domain": "example.com",
"analysis_type": "routes"
},
{
"route": "checkout",
"overall_score": 45.8,
"lcp_avg": 5678.90,
"ttfb_avg": 1234.56,
"fcp_avg": 4567.89,
"inp_avg": 678.90,
"cls_avg": 0.32,
"lcp_score": 25,
"ttfb_score": 25,
"fcp_score": 25,
"inp_score": 25,
"cls_score": 25,
"metric_units": "LCP=ms, TTFB=ms, FCP=ms, INP=ms, CLS=score",
"domain": "example.com",
"analysis_type": "routes"
}
]
}
overall_score is calculated as the average of all available metric scoresanalysis_type="pathnames", you get more granular data but may have lower sample sizes per pathnameskip and limit) for large result sets to improve performancecurl --request GET \
--url https://api.example.com/web_vitals_routes{
"route": "<string>",
"full_pathname": "<string>",
"route_part": "<string>",
"overall_score": 123,
"lcp_avg": 123,
"ttfb_avg": 123,
"fcp_avg": 123,
"inp_avg": 123,
"cls_avg": 123,
"lcp_score": 123,
"ttfb_score": 123,
"fcp_score": 123,
"inp_score": 123,
"cls_score": 123,
"metric_units": "<string>",
"domain": "<string>",
"analysis_type": "<string>"
}