Booking Holdings · Schema

AccommodationsAvailabilityInput

AccommodationsAvailabilityInput schema from Booking.com Demand API

AccommodationsAirlinesCar RentalsHospitalityHotelsRestaurantTravel

Properties

Name Type Description
accommodation integer A signed integer number that uniquely identifies an accommodation property. The full list can be obtained by calling [accommodations/details](/demand/docs/open-api/demand-api/accommodations/accommodat
booker object The booker's information.
checkin string The checkin date. Must be within 500 days in the future and in the format yyyy-mm-dd.
checkout string The checkout date. Must be later than {checkin}. Must be between 1 and 90 days after {checkin}. Must be within 500 days in the future and in the format yyyy-mm-dd.
currency string A three-letter code that uniquely identifies a monetary currency as defined by the ISO 4217 standard. The full list can be obtained by calling extras array Input parameter to request for additional information about this product.include_bundle_variants must be passed in order to retrieve all value added products.
guests object The guest details for the request.
payment object Payment input information to filter results.
products array
View JSON Schema on GitHub

JSON Schema

demand-api-accommodations-availability-input-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/booking-holdings/refs/heads/main/json-schema/demand-api-accommodations-availability-input-schema.json",
  "title": "AccommodationsAvailabilityInput",
  "description": "AccommodationsAvailabilityInput schema from Booking.com Demand API",
  "type": "object",
  "properties": {
    "accommodation": {
      "description": "A signed integer number that uniquely identifies an accommodation property. The full list can be obtained by calling [accommodations/details](/demand/docs/open-api/demand-api/accommodations/accommodations/details).",
      "type": "integer",
      "minimum": 1
    },
    "booker": {
      "description": "The booker's information.",
      "type": "object",
      "properties": {
        "country": {
          "description": "The booker country for showing the best price for that user and obeying laws regarding the display of taxes and fees.",
          "type": "string",
          "pattern": "^[a-z]{2}$"
        },
        "platform": {
          "description": "The booker platform for showing the platform based deals and prices.",
          "type": "string",
          "enum": [
            "android",
            "desktop",
            "ios",
            "mobile",
            "tablet"
          ]
        },
        "state": {
          "description": "The booker state for showing the best price for that user and obeying laws regarding the display of taxes and fees. Currently applicable only for country US.",
          "type": "string",
          "pattern": "^[a-z]{2}$"
        },
        "travel_purpose": {
          "description": "The travel purpose of the booker.",
          "type": "string",
          "enum": [
            "business",
            "leisure"
          ]
        },
        "user_groups": {
          "description": "The user groups that the booker is a member of.",
          "type": "array",
          "items": {
            "type": "string",
            "enum": [
              "authenticated"
            ]
          }
        }
      },
      "required": [
        "country",
        "platform"
      ]
    },
    "checkin": {
      "description": "The checkin date. Must be within 500 days in the future and in the format yyyy-mm-dd.",
      "type": "string",
      "format": "date"
    },
    "checkout": {
      "description": "The checkout date. Must be later than {checkin}. Must be between 1 and 90 days after {checkin}. Must be within 500 days in the future and in the format yyyy-mm-dd.",
      "type": "string",
      "format": "date"
    },
    "currency": {
      "description": "A three-letter code that uniquely identifies a monetary currency as defined by the ISO 4217 standard. The full list can be obtained by calling <a href=\"/demand/docs/open-api/demand-api/commonpayments/common/payments/currencies\" target=\"_blank\">common/payments/currencies</a>.",
      "type": "string",
      "pattern": "^[A-Z]{3}$"
    },
    "extras": {
      "description": "Input parameter to request for additional information about this product.include_bundle_variants must be passed in order to retrieve all value added products.",
      "type": "array",
      "items": {
        "type": "string",
        "enum": [
          "extra_charges",
          "include_bundle_variants"
        ]
      }
    },
    "guests": {
      "description": "The guest details for the request.",
      "type": "object",
      "properties": {
        "allocation": {
          "description": "The exact allocation of guests to rooms.",
          "type": "array",
          "items": {
            "properties": {
              "children": {
                "description": "The children ages for this room.",
                "type": "array",
                "items": {
                  "type": "integer",
                  "minimum": 0,
                  "maximum": 17
                }
              },
              "number_of_adults": {
                "description": "The number of adults for this room.",
                "type": "integer",
                "minimum": 1
              }
            },
            "required": [
              "number_of_adults"
            ],
            "type": "object"
          }
        },
        "children": {
          "description": "Array with the children ages.",
          "type": "array",
          "items": {
            "type": "integer",
            "minimum": 0,
            "maximum": 17
          }
        },
        "number_of_adults": {
          "description": "The number of adults for the search.",
          "type": "integer",
          "minimum": 1
        },
        "number_of_rooms": {
          "description": "The number of rooms needed.",
          "type": "integer",
          "minimum": 1
        }
      },
      "required": [
        "number_of_adults",
        "number_of_rooms"
      ]
    },
    "payment": {
      "description": "Payment input information to filter results.",
      "properties": {
        "timing": {
          "description": "This parameter specifies that the results should only return accommodation and blocks that contain the specified payment timings.",
          "type": "string",
          "enum": [
            "pay_at_the_property",
            "pay_online"
          ]
        }
      },
      "type": "object"
    },
    "products": {
      "type": "array",
      "items": {
        "description": "Unique ID of the product.",
        "type": "string"
      }
    }
  },
  "required": [
    "accommodation",
    "booker",
    "checkin",
    "checkout",
    "guests"
  ]
}

Work with this as data

Every JSON Schema here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for schemas

4 MCP tools reach this
  • find_json_schemasBrowse and filter every JSON Schema in the catalog.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This JSON Schema
curl "https://apis.io/api/v1/json-schemas/demand-api-accommodations-availability-input"
All schemas
curl "https://apis.io/api/v1/json-schemas?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.