API

List projects

GEThttps://api.visitors.now/v1/projects

Returns all your projects.

Request

index.ts
const res = await fetch("https://api.visitors.now/v1/projects", {
  headers: { Authorization: `Bearer ${VISITORS_USER_API_KEY}` },
});

const projects = await res.json();

Response

[
  {
    "id": "fe14d7a2-0f3f-4dc4-9c0b-6f4a49f5c751",
    "name": "Visitors",
    "domain": "visitors.now",
    "token": "b1a57b77-01f4-42e4-b7b4-1709b4d21d34",
    "public": false,
    "currency": "USD",
    "createdAt": "2025-11-28T14:30:56.834Z",
    "updatedAt": "2026-02-11T04:51:52.559Z"
  }
]

Response fields

id

string

Unique project identifier.

name

string

Display name of the project.

domain

string

The domain associated with the project.

token

string

Tracking script token for the project.

public

boolean

Whether the project dashboard is publicly accessible.

currency

string

Currency used for revenue display.

createdAt

string

ISO 8601 timestamp of when the project was created.

updatedAt

string

ISO 8601 timestamp of the last update.