get_histogram
What is the shape of one metric? Returns histogram buckets (count + share) plus summary stats.
Metric: one of lcp, inp, cls, fcp, ttfb (field CWV), or a scalar technique path when available.
Filter: same as get_metrics (device, cms, framework, cdn, provider). No group_by — call get_metrics with group_by to compare segments, then get_histogram per segment if needed.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| filter | No | AND filters. Omit for all sites in the dataset. Keys: device (all|phone|desktop), cms, framework, cdn, provider (key), provider_category (e.g. analytics — use with provider or alone is not enough; prefer group_by for rankings). | |
| metric | Yes | lcp | inp | cls | fcp | ttfb, or a contract scalar path. |