# Public Web Analytics API now available

By Steven Van · 2026-05-18

The API exposes page view and custom event data grouped by time, route, country, device or feature flag, matching the dashboard's numbers.

[Vercel](<https://creatorstoolbox.com/tools/vercel>)'s Web Analytics data is now available through a public API rather than just the dashboard. The API reads from the same aggregated data model that powers the dashboard, so a query and the on-screen numbers match.

Two resources are exposed: visits for automatically tracked page views, and events for custom events sent with track(). Count endpoints return a single total, such as lifetime page views for a post. Aggregate endpoints return rows grouped by time, route, country, referrer, device, feature flag, or custom event data, using OData-syntax filters and a by parameter to set the grouping.

Vercel points to two uses: building custom reports, or embedding live traffic metrics in a customer-facing admin panel. For raw, unaggregated event streams, data can instead be forwarded to external infrastructure with Drains. Authentication setup, full filter syntax, and response schemas are covered in the [Web Analytics API guide](<https://vercel.com/docs/analytics/web-analytics-api>).

[![](<https://vercel.com/api/docs-og?title=Query%20Web%20Analytics%20with%20the%20API&format=docs&sig=5b9920d2c1a6682953936e1d0a74c5de507f464918794516a94ac7c7be55a4be&category=Observe%20and%20improve&subcategory=Observability&subcategory2=Web%20Analytics>)](<https://vercel.com/docs/analytics/web-analytics-api>)

![Vercel](<https://www.google.com/s2/favicons?domain=vercel.com&sz=128>)

Vercel

The platform for frontend developers — deploy, preview, and scale web apps and AI agents with zero config.

[View Vercel →](<https://creatorstoolbox.com/tools/vercel>)

Sources

[Original source](<https://vercel.com/docs/analytics/web-analytics-api>)

[Read Public Web Analytics API now available on Creators Toolbox](<https://creatorstoolbox.com/blog/vercel-public-web-analytics-api-now-available>)

---
Canonical source: https://creatorstoolbox.com/blog/vercel-public-web-analytics-api-now-available
