API

List blocked pathnames

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

Returns pathnames blocked from being tracked.

Request

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

const data = await res.json();

Response

{
  "blockedPathnames": ["/admin/*"]
}