Get web vitals performance distribution across excellent, good, and poor categories with optional period-over-period comparison
curl --request GET \
--url https://api.example.com/web_vitals_distribution{
"metric_name": "<string>",
"performance_category": "<string>",
"avg_value": 123,
"p75": 123,
"p90": 123,
"p95": 123,
"p99": 123,
"measurement_count": 123,
"percentage": 123,
"total_measurements": 123,
"score": 123,
"units": "<string>",
"thresholds": "<string>",
"description": "<string>",
"domain": "<string>",
"previous_avg_value": 123,
"previous_p75": 123,
"previous_p90": 123,
"previous_p95": 123,
"previous_p99": 123,
"previous_measurement_count": 123,
"previous_total_measurements": 123,
"previous_percentage": 123,
"avg_value_growth_percentage": 123,
"measurement_count_growth_percentage": 123
}Returns the distribution of web vitals measurements across performance categories (excellent, good, poor) with percentages and statistical metrics. Optionally includes previous period data for growth analysis.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_distribution.json
curl -H "Authorization: Bearer YOUR_TOKEN" \
"https://api.tinybird.co/v0/pipes/web_vitals_distribution.json?date_from=2024-01-01&date_to=2024-01-07&include_previous_period=true"
{
"data": [
{
"metric_name": "LCP",
"performance_category": "excellent",
"avg_value": 1850.23,
"p75": 2100.45,
"p90": 2350.67,
"p95": 2450.89,
"p99": 2499.12,
"measurement_count": 8532,
"percentage": 68.5,
"total_measurements": 12456,
"previous_avg_value": 1920.45,
"previous_p75": 2180.23,
"previous_p90": 2400.56,
"previous_p95": 2480.78,
"previous_p99": 2499.90,
"previous_measurement_count": 7234,
"previous_total_measurements": 11890,
"previous_percentage": 60.8,
"avg_value_growth_percentage": -3.66,
"measurement_count_growth_percentage": 17.94,
"score": 100,
"units": "ms",
"thresholds": "Excellent: ≤2500ms, Good: ≤4000ms, Poor: >4000ms",
"description": "Largest Contentful Paint - measures loading performance",
"domain": "example.com"
},
{
"metric_name": "LCP",
"performance_category": "good",
"avg_value": 3234.56,
"p75": 3456.78,
"p90": 3678.90,
"p95": 3890.12,
"p99": 3999.34,
"measurement_count": 2876,
"percentage": 23.1,
"total_measurements": 12456,
"previous_avg_value": 3345.67,
"previous_p75": 3567.89,
"previous_p90": 3789.01,
"previous_p95": 3901.23,
"previous_p99": 3998.45,
"previous_measurement_count": 3234,
"previous_total_measurements": 11890,
"previous_percentage": 27.2,
"avg_value_growth_percentage": -3.32,
"measurement_count_growth_percentage": -11.07,
"score": 75,
"units": "ms",
"thresholds": "Excellent: ≤2500ms, Good: ≤4000ms, Poor: >4000ms",
"description": "Largest Contentful Paint - measures loading performance",
"domain": "example.com"
},
{
"metric_name": "LCP",
"performance_category": "poor",
"avg_value": 5234.78,
"p75": 5678.90,
"p90": 6789.01,
"p95": 7890.12,
"p99": 9876.54,
"measurement_count": 1048,
"percentage": 8.4,
"total_measurements": 12456,
"previous_avg_value": 5567.89,
"previous_p75": 6012.34,
"previous_p90": 7123.45,
"previous_p95": 8234.56,
"previous_p99": 10234.78,
"previous_measurement_count": 1422,
"previous_total_measurements": 11890,
"previous_percentage": 12.0,
"avg_value_growth_percentage": -5.98,
"measurement_count_growth_percentage": -26.30,
"score": 25,
"units": "ms",
"thresholds": "Excellent: ≤2500ms, Good: ≤4000ms, Poor: >4000ms",
"description": "Largest Contentful Paint - measures loading performance",
"domain": "example.com"
}
]
}
curl --request GET \
--url https://api.example.com/web_vitals_distribution{
"metric_name": "<string>",
"performance_category": "<string>",
"avg_value": 123,
"p75": 123,
"p90": 123,
"p95": 123,
"p99": 123,
"measurement_count": 123,
"percentage": 123,
"total_measurements": 123,
"score": 123,
"units": "<string>",
"thresholds": "<string>",
"description": "<string>",
"domain": "<string>",
"previous_avg_value": 123,
"previous_p75": 123,
"previous_p90": 123,
"previous_p95": 123,
"previous_p99": 123,
"previous_measurement_count": 123,
"previous_total_measurements": 123,
"previous_percentage": 123,
"avg_value_growth_percentage": 123,
"measurement_count_growth_percentage": 123
}