Skip to main content

Quick Start

Go from zero to your first API response in under a minute. No sign-up, no account creation -- just a cURL command and the public sandbox key.

What you'll learn

By the end of this guide you will be able to:

  • Search for holiday properties by location and guest count
  • Retrieve full property details including images and amenities
  • Check date availability for a property calendar
  • Calculate the total price for a stay including fees

Prerequisites

All you need is an HTTP client. The examples below use cURL, JavaScript (fetch), and Python (requests), but any language or tool works.

Step 1: Make your first request

Search for holiday properties in Exmoor that sleep at least 4 guests:

curl "https://app.bookingbrain.com/api/v2/developer/search?place=exmoor&guests=4" \
-H "X-API-Key: bb_sandbox_test_key_do_not_use_in_production"

Step 2: Understand the response

The search endpoint returns a paginated list of properties:

{
"properties": [
{
"id": 312,
"title": "Meadow Cottage",
"slug": "meadow-cottage",
"property_place_slug": "porlock",
"bed_rooms": 3,
"total_guest": 6,
"bath_rooms": 2,
"is_pets": true,
"status": "active",
"min_price": 595.00,
"price_per_night": 85.00,
"apply_price": "nightly",
"thumbnailUrl": "https://storage.googleapis.com/bb-property-images/properties/312/meadow-cottage-main.jpg",
"latitude": 51.2089,
"longitude": -3.5915,
"search_summary": "A charming thatched cottage with stunning views across Porlock Vale to the Bristol Channel.",
"rating": 4.7
}
],
"total_property_on_search": 74,
"current_page": 1,
"num_pages": 4,
"perpage": 20
}

Key fields:

FieldDescription
propertiesArray of property summaries matching your search
total_property_on_searchTotal results across all pages
current_pageCurrent page (1-based)
num_pagesTotal number of pages
perpageResults per page (default 20, max 100)

Each property includes the essential information for a listing card: title, location, price, guest capacity, pet-friendliness, thumbnail image, and coordinates for map display.

Step 3: Get property details

Pick a property from the search results and fetch its full details using the id:

curl "https://app.bookingbrain.com/api/v2/developer/properties/312" \
-H "X-API-Key: bb_sandbox_test_key_do_not_use_in_production"

The property detail response includes everything you need for a full listing page: description, amenities, location details, pricing, check-in/check-out times, house rules, WiFi speeds, parking, EV charging, nearby attractions, and more.

Step 4: Check availability

Before a guest can book, check which dates are unavailable:

curl "https://app.bookingbrain.com/api/v2/developer/properties/312/unavailableDates?year=2026&month=7" \
-H "X-API-Key: bb_sandbox_test_key_do_not_use_in_production"

The response is a flat array of date strings (YYYY-MM-DD) that are booked or blocked. Use these to grey out dates in your calendar widget.

Step 5: Calculate the price

Once the guest has selected dates, calculate the exact price:

curl -X POST "https://app.bookingbrain.com/api/v2/developer/properties/312/get-price" \
-H "X-API-Key: bb_sandbox_test_key_do_not_use_in_production" \
-H "Content-Type: application/json" \
-d '{
"start_date": "2026-07-04",
"num_nights": 7,
"num_guests": 4
}'

The price response tells you:

FieldDescription
response0 = available. Non-zero means there is a conflict (see Booking Flow)
priceAccommodation charge before fees
cleaning_feeCleaning fee (if applicable)
service_feeService fee (if applicable)
final_total_priceTotal the guest pays, including all fees and discounts
security_depositRefundable security deposit
discountDiscount details if a promotional rate applies

Next steps

You have now completed the read-only portion of the API. From here: