---
title: "Which nights are free between two dates (at most 62 days per call)"
method: GET
path: "/api/public/v1/p/{slug}/availability"
---

# Which nights are free between two dates (at most 62 days per call)

`GET /api/public/v1/p/{slug}/availability`

## Request

- Base URL: `https://posadita.com`
- URL: `https://posadita.com/api/public/v1/p/{slug}/availability`
- Auth: none declared

## Path parameters

- `slug` string, required

## Query parameters

- `from` string, date, required
- `to` string, date, required

## Response `200`

One entry per night. `priceCents` is null when the place does not take bookings online.

- object
  - `days` object[]
    - `date` string, date
    - `available` boolean
    - `minStay` integer
    - `checkinAllowed` boolean
    - `checkoutAllowed` boolean
    - `priceCents` integer, nullable

## Other responses

- `400`: Bad or too long a range

---

[API](https://skmtc.dev/posadita/apis/posadita-direct-booking.md) · [All operations](https://skmtc.dev/posadita/apis/posadita-direct-booking/llms.txt) · [OpenAPI document](https://skmtc.dev/posadita/apis/posadita-direct-booking/revisions/5a4a24c27407?raw)
