Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature request: REST API #68

Open
sanderpick opened this issue Apr 20, 2023 · 5 comments
Open

Feature request: REST API #68

sanderpick opened this issue Apr 20, 2023 · 5 comments
Labels
enhancement New feature or request

Comments

@sanderpick
Copy link

sanderpick commented Apr 20, 2023

I know this just launched on Vercel, but I'm curious if there will be an API to query page views and events... ideally w/ SQL? Let me know if there's a better place to ask this too.

@timolins
Copy link
Member

timolins commented May 2, 2023

Yes, an API is on our roadmap. We will keep you updated. 🙌

@mt-hagen
Copy link

mt-hagen commented Jun 7, 2023

Hi @timolins - Will this also apply to the Speed Insights data? I would love to use this data for a cusotm reporting dashboard!

@Svish
Copy link

Svish commented Jun 25, 2023

I was also looking for this, as it would be a great tool to use for example in generateStaticParams with Next.js.

Instead of pre-generating all or none of the dynamic pages, one could instead use this to for example generate the top N visited pages.

Would be awesome if @vercel/analytics exported some simple utility functions for this!

// Imagined usage in `./src/app/products/[id]/[slug]/page.tsx`

export async function generateStaticParams() {
  return getStaticParamsMatching('/products/[id]/[slug]', { limit: 50 })
}

@masnwilliams
Copy link

Pinging this again to see where this is on the roadmap. Would pay to be able to query analytics through this npm library with a queryAnalytics({ queryParams... }).

@camcamcamcam
Copy link

Really hoping this happens sometime in 2023 so I can use the analytics coming out of Vercel in a BI tool. Especially now that GA has become pretty useless with some recent law changes in Canada.

@feugy feugy added the enhancement New feature or request label Feb 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

7 participants