Getting started

Track page views on any website with a simple API. No dashboard, no setup.


Welcome to Page Views API, a minimal API built for developers who just want to track page views without the overhead of full analytics tools. Integrate in seconds and get accurate, privacy-friendly view counts with a simple request.

Usage

import { PageViews } from "page-views-api";
 
const pageViews = new PageViews({
  apiKey: "YOUR_API_KEY",
});
 
const views = await pageViews.getViews({
  path: "/",
});
 
console.log(views);