Към съдържанието

Site views

Logs of each page view on a site

The site view object

Attributes

idinteger

Unique identifier

site_iduuid
sites.id

Identifier of the viewed site

created_atread-onlytimestamp with time zone

Creation timestamp

countrytext | null

Country of the visitor

pathnametext

Pathname of the viewed page

referertext | null

Referer of the view

sessionuuid

Identifier 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(*).

sites(*)object | null
sites

The site referenced by site_id.

The site view object
JSON
{
  "id": 0,
  "site_id": "00000000-0000-0000-0000-000000000000",
  "created_at": "2026-10-30T22:27:57.698Z",
  "country": "NL",
  "pathname": "",
  "referer": "",
  "session": "00000000-0000-0000-0000-000000000000"
}
Including related resources
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

site_idFilter<uuid>
sites.id

Identifier of the viewed site

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

200

A list of site views with the selected columns

206

Partial Content

400

The request is malformed, for example an unknown column or an invalid filter.

401

The API key is missing or invalid.

Error responses have a JSON body with a code, message, details and hint. See the introduction for more on errors.
GET /site_views
curl -X GET "https://api.bookingmood.com/v1/site_views?select=*&limit=10" \
  -H "Authorization: Bearer YOUR_API_KEY"
Example response
JSON
[
  {
    "id": 0,
    "site_id": "00000000-0000-0000-0000-000000000000",
    "created_at": "2026-10-30T22:27:57.698Z",
    "country": "NL",
    "pathname": "",
    "referer": "",
    "session": "00000000-0000-0000-0000-000000000000"
  }
]

Поемете контрол над резервациите си. Изградете свой собствен бизнес.

Присъединете се към 1200+ независими фирми за отдаване под наем на ваканционни имоти, които използват Bookingmood, за да увеличат броя на директните резервации и да изградят по-здрави взаимоотношения с гостите.

Започнете безплатна пробна версия на 14-дневна версия