Feature Request REST API endpoint for Web Analytics data

Hey Vercel team

I’m building a dashboard app for my clients to track their website stats in one place. Currently, there’s no way to programmatically fetch Web Analytics data via the REST API.

What I need

A simple REST API endpoint to retrieve basic analytics metrics:

  • Total pageviews

  • Unique visitors

  • Top pages

  • Traffic sources

  • Device/browser breakdown

  • Geographic data

Something like:

GET /v1/projects/{projectId}/analytics?from=timestamp&to=timestamp
Current workaround

Right now, the only option is using Web Analytics Drains to stream events to my own endpoint and store everything in my database. While this works, it’s overkill for my use case and adds unnecessary infrastructure complexity.

Why this matters

I manage multiple client websites, and they want a unified dashboard to see their stats without logging into Vercel. An API endpoint would make this super straightforward.

I know Drains exist for real-time streaming, but sometimes you just need to pull aggregated data on-demand without maintaining your own analytics database.

Proposed solution

Add read-only analytics endpoints similar to what’s available in the Vercel dashboard:

  • Daily/weekly/monthly aggregations

  • Configurable date ranges

  • Optional filters (path, country, device, etc.)

  • Rate limiting to prevent abuse

Would love to hear if this is on the roadmap or if there’s an alternative approach I’m missing.

Thanks,

Milan H
Flink Agency

2 Likes

Hi @mhdevfr, welcome to the Vercel Community!

Thanks for the feature request. I’ve relayed it to our product team.

1 Like