---
title: "Check Availability — Documentation"
canonical: "https://repull.dev/docs/check-availability"
description: "Query any property's calendar through the Repull API: open dates, nightly rates and minimum stay, and how the listing price relates to channel prices."
updated: "2026-11-30T00:48:58.694Z"
commit: "18314c12fefb59a7545ef7607c0893919de20aa9"
---

# Check Availability

Query the calendar for any property to see which dates are open, their nightly rates, and minimum stay requirements.

## When to use this endpoint

- Show a live availability calendar on your booking widget
- Verify dates are open before creating a reservation
- Sync availability to a channel manager or external platform
- Build a date picker that disables unavailable nights

> **Note: Need to update availability?**
>
> Use [Update Pricing](https://repull.dev/docs/update-pricing.md) to push rate changes, block dates, or set minimum night requirements.

## Get availability calendar

`GET /v1/availability/{propertyId}`

> **Note: Date parameter names differ by endpoint**
>
> This generic calendar read takes `from` and `to` query params. The per-channel Airbnb calendar (`/v1/channels/airbnb/listings/{id}/availability`) uses `start_date` and `end_date` instead. Match the parameter names to the exact endpoint you call.

**cURL**

```bash
curl "https://api.repull.dev/v1/availability/123?from=2026-07-01&to=2026-07-31" \
  -H "Authorization: Bearer sk_live_YOUR_KEY"
```

**Node.js**

```typescript
// The @repull/sdk client has no availability method, so call the endpoint directly.
const res = await fetch('https://api.repull.dev/v1/availability/123?from=2026-07-01&to=2026-07-31', {
  headers: { Authorization: `Bearer ${process.env.REPULL_API_KEY}` },
})
const calendar = await res.json()

for (const day of calendar.days) {
  if (day.available) {
    console.log(`${day.date}: ${day.price} ${calendar.currency}/night (min ${day.minNights} nights)`)
  } else {
    console.log(`${day.date}: blocked`)
  }
}

// Dates with no calendar data are unknown, never bookable
console.log('No data for:', calendar.coverage.missingDates)
```

**Python**

```python
import os
import datetime
from repull import AuthenticatedClient
from repull.api.availability import get_availability

client = AuthenticatedClient(
    base_url="https://api.repull.dev",
    token=os.environ["REPULL_API_KEY"],
)

availability = get_availability.sync(
    property_id=123,
    client=client,
    from_=datetime.date(2026, 6, 1),
    to=datetime.date(2026, 6, 5),
)
```

**Go**

```go
import (
	"context"
	"os"

	"github.com/ivannikolovbg/repull-go/repull"
)

client, err := repull.NewClientWithResponses(
	repull.DefaultBaseURL,
	repull.WithBearer(os.Getenv("REPULL_API_KEY")),
)
ctx := context.Background()

// needs "time" and openapi_types "github.com/oapi-codegen/runtime/types"
from, _ := time.Parse("2006-01-02", "2026-06-01")
to, _ := time.Parse("2006-01-02", "2026-06-05")

resp, err := client.GetAvailabilityWithResponse(ctx, 123, &repull.GetAvailabilityParams{
	From: openapi_types.Date{Time: from},
	To:   openapi_types.Date{Time: to},
})
```

**Ruby**

```ruby
config = Repull::Configuration.new
config.access_token = ENV.fetch('REPULL_API_KEY')
config.host = 'api.repull.dev'

client = Repull::ApiClient.new(config)

api = Repull::AvailabilityApi.new(client)
availability = api.get_availability(123, Date.new(2026, 6, 1), Date.new(2026, 6, 5))
```

**PHP**

```php
$config = Repull\Configuration::getDefaultConfiguration()
    ->setAccessToken(getenv('REPULL_API_KEY'));
$http = new GuzzleHttp\Client();

$api = new Repull\Api\AvailabilityApi($http, $config);
$availability = $api->getAvailability(
    123,
    new DateTime('2026-06-01'),
    new DateTime('2026-06-05'),
);
```

**C#**

```csharp
using Repull.SDK;

var client = RepullClientFactory.Create(
    Environment.GetEnvironmentVariable("REPULL_API_KEY")!);

var availability = await client.V1.Availability[123].GetAsync(rc =>
{
    rc.QueryParameters.From = new Date(2026, 6, 1);
    rc.QueryParameters.To = new Date(2026, 6, 5);
});
```

## Path parameter

| Parameter | Type | Required | Description |
| --- | --- | --- | --- |
| `propertyId` | `integer` | Yes | Property ID to check availability for. Pass the integer id from GET /v1/properties as a path segment (e.g. /v1/availability/123). |

## Query parameters

| Parameter | Type | Required | Description |
| --- | --- | --- | --- |
| `from` | `date` | Yes | First date of the range, inclusive. Format: YYYY-MM-DD. (Alias: startDate.) |
| `to` | `date` | Yes | Last date of the range, inclusive. Format: YYYY-MM-DD. (Alias: endDate.) The window is capped at 366 days. |

## Response format

Returns the days Repull holds calendar data for, plus the requested dates it does not.

```
{
  "propertyId": "123",
  "currency": "USD",
  "days": [
    { "date": "2026-07-01", "available": true, "price": 250, "minNights": 2 },
    { "date": "2026-07-02", "available": false, "price": 250, "minNights": 2 }
  ],
  "coverage": {
    "requestedDays": 3,
    "coveredDays": 2,
    "missingDates": ["2026-07-03"]
  }
}
```

### Response fields

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `propertyId` | `string` | No | The property the calendar belongs to. |
| `currency` | `string` | No | ISO 4217 currency code for every price. |
| `days` | `array` | No | One entry per date with calendar data, in date order. |
| `coverage` | `object` | No | requestedDays, coveredDays, and missingDates — requested dates with no calendar data. Treat a missing date as unknown, never as bookable. |

> **Note: Need max-stay or closed-to-arrival?**
>
> This read carries availability, price and minimum nights only. For the full restriction set, read the channel calendar: `GET /v1/channels/airbnb/listings/{id}/availability?start_date=…&end_date=…` or `GET /v1/channels/booking/availability?property_id=…`.

## The listing's price and the channel's price

This calendar is the listing's own: one per listing, the same whichever channels it is on. Each channel can add a **markup**when prices are sent to it — a $200 night with a 35% Airbnb markup is sold on Airbnb for $270, while this calendar keeps $200. Airbnb markups are per listing; a Booking.com markup belongs to the property and is shared by every listing on it. Read and set them with `GET`/`PUT /v1/listings/{id}/markups`; a change re-sends the affected prices to that channel straight away.

To see what a channel holds right now — its price with the markup, and what it has for sale — read the channel: `GET /v1/channels/booking/availability?property_id=…` or `GET /v1/channels/airbnb/listings/{id}/availability`. The Booking.com read returns availability **per room** (`rooms_to_sell`), which is how Booking.com keeps inventory. Its per-rate figure, available with `room_level=0`, reports 0 rooms for rooms that are on sale, so do not use it to decide what is bookable.

## Common examples

### Check a specific date range before booking

```
curl "https://api.repull.dev/v1/availability/123?from=2026-07-10&to=2026-07-15" \
  -H "Authorization: Bearer sk_live_YOUR_KEY"
```

### Full month calendar view

```
curl "https://api.repull.dev/v1/availability/123?from=2026-08-01&to=2026-08-31" \
  -H "Authorization: Bearer sk_live_YOUR_KEY"
```

### Validate availability in code

```
// Check that every night of a stay is known and open
const res = await fetch('https://api.repull.dev/v1/availability/123?from=2026-07-10&to=2026-07-14', {
  headers: { Authorization: `Bearer ${process.env.REPULL_API_KEY}` },
})
const calendar = await res.json()

const blocked = calendar.days.filter(d => !d.available).map(d => d.date)
const unknown = calendar.coverage.missingDates

if (blocked.length === 0 && unknown.length === 0) {
  // Safe to create the booking
} else {
  console.log('Blocked:', blocked, 'No data:', unknown)
}
```

## API Reference

See the complete [Availability API Reference](https://repull.dev/docs/api/availability.md) for all endpoints including update and batch operations.
