API

List masked pathnames

GEThttps://api.visitors.now/v1/project/masked-pathnames

Returns pathname patterns aggregated in analytics output.

Request

index.ts
const res = await fetch("https://api.visitors.now/v1/project/masked-pathnames", {
  headers: { Authorization: `Bearer ${VISITORS_API_KEY}` },
});

const data = await res.json();

Response

{
  "maskedPathnames": ["/users/:id"]
}