Skip to content

Calendar ​

GET/calendar

One row per listing per night in the date window, with the same state the Host Port calendar shows.

Parameters ​

ParameterDefaultNotes
from12 months agoFirst night
to6 months from todayThe night after the last one you want
formatjsonor csv
page, page_sizenoneSee Paging

updated_since doesn't work here: a night has no "last changed" moment. Sending it is a 400.

Rows are ordered by listing, then night.

Count the rows before you ask

Ten listings for a year is 3,650 rows. Without paging, one call returns at most 20,000 rows, so a large portfolio over a long window needs paging or a shorter window.

Example ​

sh
curl -H "Authorization: Bearer hpk_your_key_here" \
  "https://ntnzabbhtivotmfhwdnm.supabase.co/functions/v1/data-api/v1/calendar?from=2026-12-01&to=2026-12-08"
json
[
  { "property_id": "0d7e…", "property_name": "Beachside Cottage", "night": "2026-12-01", "state": "available", "booking_id": null },
  { "property_id": "0d7e…", "property_name": "Beachside Cottage", "night": "2026-12-02", "state": "booked", "booking_id": "6f1c…" },
  { "property_id": "0d7e…", "property_name": "Beachside Cottage", "night": "2026-12-03", "state": "blocked", "booking_id": null }
]

Columns ​

ColumnTypeMeaning
property_iduuidThe listing's id
property_nametextThe listing's name
nightdateThe local calendar date of the night
statetextbooked, blocked or available. See below
booking_iduuidOn a booked night, the booking. Only filled when the connection also has the Bookings dataset

States ​

StateMeans
bookedA live booking is staying that night
blockedNot bookable: your own block, a block mirrored from a linked listing or another room, a Booking.com closure, or a closed date
availableOpen to book