Site views
Logs of each page view on a site
The site view object
Attributes
idintegerUnique identifier
created_atread-onlytimestamp with time zoneCreation timestamp
countrytext | nullCountry of the visitor
pathnametextPathname of the viewed page
referertext | nullReferer of the view
sessionuuidIdentifier of the visitor's session
Related resources
Embed related resources in the response with the select parameter, for example select=*,sites(*). Resources related through more than one column need the column as a hint, like table!column(*).
{
"id": 0,
"site_id": "00000000-0000-0000-0000-000000000000",
"created_at": "2026-10-30T23:21:07.688Z",
"country": "NL",
"pathname": "",
"referer": "",
"session": "00000000-0000-0000-0000-000000000000"
}curl -X GET "https://api.bookingmood.com/v1/site_views?limit=10&select=*,sites(*)" \
-H "Authorization: Bearer YOUR_API_KEY"List site views
Filters
idFilter<integer>Unique identifier
created_atFilter<timestamp with time zone>Creation timestamp
countryFilter<text | null>Country of the visitor
pathnameFilter<text>Pathname of the viewed page
refererFilter<text | null>Referer of the view
sessionFilter<uuid>Identifier of the visitor's session
Responses
200A list of site views with the selected columns
206Partial Content
400The request is malformed, for example an unknown column or an invalid filter.
401The API key is missing or invalid.
code, message, details and hint. See the introduction for more on errors.GET /site_viewscurl -X GET "https://api.bookingmood.com/v1/site_views?select=*&limit=10" \
-H "Authorization: Bearer YOUR_API_KEY"[
{
"id": 0,
"site_id": "00000000-0000-0000-0000-000000000000",
"created_at": "2026-10-30T23:21:07.688Z",
"country": "NL",
"pathname": "",
"referer": "",
"session": "00000000-0000-0000-0000-000000000000"
}
]