Skip to main content
GET
/
stats
/
page-views
Page view metrics
curl --request GET \
  --url https://api.thehaystack.ai/v2/haystack/stats/page-views \
  --header 'Authorization: Bearer <token>'
{
  "pageViews": {}
}

Authorizations

Authorization
string
header
required

Enter your API token from the Haystack dashboard

Query Parameters

startDate
string<date>
required
endDate
string<date>
required
aggregation
enum<string>
required
Available options:
day,
week,
isoWeek,
month,
quarter,
year
mock
boolean

Response

200 - application/json

Stats payload

pageViews
object