Skip to main content
GET
/
analytics
/
visitors
/
total
Total Visits
curl --request GET \
  --url https://server.promptwatch.com/api/v1/analytics/visitors/total \
  --header 'X-API-Key: <api-key>'
[
  {
    "date": "<string>",
    "total_visits": 123
  }
]

Authorizations

X-API-Key
string
header
required

API key for authentication. Get yours from the Promptwatch dashboard under Settings > API Keys.

Query Parameters

startDate
string<date>

Start date for analytics data (YYYY-MM-DD)

endDate
string<date>

End date for analytics data (YYYY-MM-DD)

referrerDomains
string[]

Filter by specific referrer domains

timezone
string

IANA timezone for date bucketing (e.g., 'America/Los_Angeles')

pathname
string

Filter by specific page path

Response

Default Response

date
string
required

Date for the data point

total_visits
number
required

Total visits for the date