Skip to content

Add /v1/cwv-distribution endpoint#105

Draft
max-ostapenko wants to merge 10 commits intomainfrom
development
Draft

Add /v1/cwv-distribution endpoint#105
max-ostapenko wants to merge 10 commits intomainfrom
development

Conversation

@max-ostapenko
Copy link
Copy Markdown
Contributor

@max-ostapenko max-ostapenko commented Mar 30, 2026

New Feature: CWV Distribution Endpoint

  • Added a new controller (cwvDistributionController.js) and route (/v1/cwv-distribution) that queries BigQuery for CWV histogram data by technology, with support for filtering by date and rank.

alonkochba and others added 10 commits March 23, 2026 09:43
* feat: add /v1/geo-breakdown endpoint for geographic CWV breakdown

Adds a new controller and route that returns core_web_vitals data for
all geographies for a given technology. Unlike /cwv, this endpoint omits
the geo filter so callers can build a geographic breakdown chart without
issuing one request per country.

* refactor: merge geo-breakdown into reportController factory

Add crossGeo option to createReportController; delete standalone
geoBreakdownController.js. Endpoint now returns a single-month snapshot
(latest by default, or the month specified by the end param).

---------

Co-authored-by: Max Ostapenko <1611259+max-ostapenko@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants