Get current web vitals metrics with average values, scores, and performance status
curl --request GET \
--url https://api.example.com/web_vitals_current{
"metric_name": "<string>",
"avg_value": 123,
"p75": 123,
"p90": 123,
"p95": 123,
"p99": 123,
"measurements": 123,
"score": 123,
"status": "<string>",
"units": "<string>",
"description": "<string>",
"thresholds": "<string>",
"domain": "<string>",
"tenant_id": "<string>"
}Returns aggregated web vitals metrics over a specified time period with performance scores and status indicators. This endpoint provides a high-level overview of your site’s Core Web Vitals health.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_current.json
curl -H "Authorization: Bearer YOUR_TOKEN" \
"https://api.tinybird.co/v0/pipes/web_vitals_current.json?days=7&domain=example.com"
{
"data": [
{
"metric_name": "LCP",
"avg_value": 2234.56,
"p75": 2500.12,
"p90": 3200.45,
"p95": 3800.22,
"p99": 4500.88,
"measurements": 1523,
"score": 100,
"status": "Excellent",
"units": "ms",
"description": "Largest Contentful Paint - measures loading performance",
"thresholds": "Excellent: ≤2500ms, Good: ≤4000ms, Poor: >4000ms",
"domain": "example.com",
"tenant_id": "tenant_123"
},
{
"metric_name": "TTFB",
"avg_value": 345.67,
"p75": 412.34,
"p90": 567.89,
"p95": 678.90,
"p99": 890.12,
"measurements": 1523,
"score": 100,
"status": "Excellent",
"units": "ms",
"description": "Time to First Byte - measures server response time",
"thresholds": "Excellent: ≤500ms, Good: ≤1000ms, Poor: >1000ms",
"domain": "example.com",
"tenant_id": "tenant_123"
},
{
"metric_name": "CLS",
"avg_value": 0.08,
"p75": 0.09,
"p90": 0.12,
"p95": 0.15,
"p99": 0.22,
"measurements": 1523,
"score": 100,
"status": "Excellent",
"units": "score",
"description": "Cumulative Layout Shift - measures visual stability",
"thresholds": "Excellent: ≤0.1, Good: ≤0.25, Poor: >0.25",
"domain": "example.com",
"tenant_id": "tenant_123"
}
]
}
days parametercurl --request GET \
--url https://api.example.com/web_vitals_current{
"metric_name": "<string>",
"avg_value": 123,
"p75": 123,
"p90": 123,
"p95": 123,
"p99": 123,
"measurements": 123,
"score": 123,
"status": "<string>",
"units": "<string>",
"description": "<string>",
"thresholds": "<string>",
"domain": "<string>",
"tenant_id": "<string>"
}