If you have more than a few projects on Vercel, you know the routine: open a project, click Analytics, note the numbers, go back, open the next one. Vercel shows Web Analytics one project at a time.
In May 2026 Vercel made its Web Analytics API public . This post shows how to use it to get the numbers for every project, and what you have to build around it.
The API in two minutes
There are two datasets:
Visits : page views tracked automatically, with pageviews and visitors .
Events : custom events sent with track() , with count and visitors .
Each dataset has two queries:
Count ( /v1/query/web-analytics/visits/count ) returns one total.
Aggregate ( /v1/query/web-analytics/visits/aggregate ) returns rows grouped by up to two dimensions in by . One can be a time unit ( hour , day , week , month , year ). The others include country , referrerHostname , requestPath , deviceType , browserName and the UTM fields.
You authenticate with a normal Vercel access token.…