{"openapi":"3.0.0","info":{"title":"Booking.com Hotels Prices and Availability Data","version":"1.0.0","description":"Booking.com worldwide hotel and property listings with stay prices, review scores and property details, one row per entity."},"servers":[{"url":"https://ah-booking-com.opendata.best/s/booking-com"}],"paths":{"/v1/search":{"post":{"operationId":"search","summary":"Search Booking.com hotels and room prices","description":"Query Booking.com hotels, apartments and resorts worldwide by city, destination ID or property URL.","tags":["search"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":false,"properties":{"destination":{"type":"string","description":"Destination. City, region, country, area or landmark, such as Tokyo or Lombardia. Fill this or detailUrls; leaving both empty starts a small example search.","example":"Singapore"},"detailUrls":{"type":"array","items":{"type":"string"},"description":"Hotel detail URLs. Booking.com hotel page URLs; these take priority over destination search and require enrichDetails=true. The list shares maxResults and detailEnrichLimit (at most 30); fewer properties may be returned when details are unavailable."},"maxResults":{"type":"integer","minimum":1,"maximum":20,"description":"Max rows per input (each listed URL, ID or keyword; a single target counts as one input). All row types share this allowance. Each plan caps the rows of one request (BASIC 10, PRO 70, ULTRA 200, MEGA 500); larger values are lowered to your plan's cap. You pay per delivered row (Rows).","default":10,"example":3},"checkin":{"type":"string","description":"Check-in Date. Arrival date in YYYY-MM-DD, today or later and no more than 500 days ahead. Leave both dates empty for arrival in 21 days and a two-night stay."},"checkout":{"type":"string","description":"Check-out Date. Departure date in YYYY-MM-DD, after arrival. If only one date is supplied, the missing date completes a two-night stay."},"adults":{"type":"integer","minimum":1,"maximum":10,"description":"Number of Adults. Number of adult guests, from 1 to 10.","default":2},"children":{"type":"integer","minimum":0,"maximum":10,"description":"Number of Children. Number of children, from 0 to 10. Missing child ages are filled with 8.","default":0},"childAges":{"type":"array","items":{"type":"integer","minimum":0,"maximum":17},"description":"Child Ages. Child ages from 0 to 17. When children is set, the list is padded with age 8 or shortened to match; otherwise valid ages determine the child count.","default":[]},"rooms":{"type":"integer","minimum":1,"maximum":10,"description":"Number of Rooms. Number of rooms requested, from 1 to 10.","default":1},"currency":{"type":"string","description":"Currency. Preferred ISO currency code (e.g. 'USD', 'EUR', 'SGD'). Each row's currency field says which currency the shown price is in.","default":"USD"},"lang":{"type":"string","description":"Language. Display language for property information, such as en-us, en-gb, de, fr or ja.","default":"en-us"},"sort":{"type":"string","enum":["popularity","price","review_score","review_and_price","stars_desc","stars_asc","distance","homes_first"],"description":"Sort. Order of properties in destination search results.","default":"popularity"},"propertyTypes":{"type":"array","items":{"type":"string","enum":["hotel","apartment","hostel","motel","resort","bed_and_breakfast","villa","guesthouse","holiday_home","aparthotel","lodge","homestay","country_house","capsule_hotel","campground","inn","ryokan","riad","chalet","holiday_park","tent","love_hotel","pension"]},"description":"Property Types. Accommodation categories to include. Leave empty to include all categories.","default":[]},"stars":{"type":"array","items":{"type":"integer","minimum":1,"maximum":5},"description":"Star Ratings. Hotel star classes to include, from 1 to 5. Leave empty for no star filter.","default":[]},"minReviewScore":{"type":"number","minimum":0,"maximum":10,"description":"Minimum Review Score. Minimum guest review score, from 0 to 10. Leave empty for no review-score filter."},"freeCancellation":{"type":"boolean","description":"Free Cancellation Only. Restrict destination searches to offers with free cancellation.","default":false},"enrichDetails":{"type":"boolean","description":"Enrich hotel details. Add available public hotel details to up to detailEnrichLimit property rows. Contact fields can remain empty; rows without enrichment include reasons for missing information.","default":true},"detailEnrichLimit":{"type":"integer","minimum":1,"maximum":30,"description":"Detail enrichment limit. Maximum properties to enrich, from 1 to 30, default 3. This also limits the number of supplied hotel URLs processed; other search rows remain in the results without enrichment.","default":3},"destId":{"type":"string","description":"Destination ID. Known Booking.com destination identifier. Supply it with destType to use that destination directly.","default":""},"destType":{"type":"string","enum":["","city","region","country","landmark","airport","district","hotel","coordinates"],"description":"Destination Type. Destination kind paired with destId, such as city, region, country or landmark.","default":""},"customNfltFilters":{"type":"array","items":{"type":"string"},"description":"Custom nflt Filters. Additional Booking.com filter fragments, such as class=5, oos=1 or review_score=80. These are combined with the selected accommodation filters.","default":[]},"country":{"type":"string","description":"Country hint. Country name or code, such as US, GB or Germany. Use as a hint when a postal code or address cannot be matched to a destination.","default":""},"requestId":{"type":"string","pattern":"^[A-Za-z0-9._:-]{1,80}$","description":"Optional. Your id for this request: repeating it while the job runs returns the same job."}}},"example":{"destination":"Singapore","currency":"USD","enrichDetails":false,"maxResults":3}}}},"responses":{"200":{"description":"Done within the request: the rows.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RowsPage"}}}},"404":{"description":"No results matched the query (nothing was billed).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Invalid or missing parameters.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"At capacity, too many running jobs, or rolling 24-hour row limit reached; retry after Retry-After seconds.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"502":{"description":"The source could not be collected this time (not billed).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"504":{"description":"Synchronous timeout reached before completion; task cancelled (nothing was billed).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/health":{"get":{"operationId":"health","summary":"API health check","description":"Lightweight readiness check for this API. Never starts a collection and always bills 0 rows.","tags":["health"],"responses":{"200":{"description":"API is operational (0 rows).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HealthStatus"}}}},"503":{"description":"API is temporarily unavailable (not billed).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HealthStatus"}}}}}}}},"components":{"schemas":{"Row":{"type":"object","properties":{"source":{"type":"string","title":"Source","description":"Always 'booking'."},"hotelId":{"type":"string","title":"Hotel ID","description":"Booking.com property identifier derived from the listing URL when available, for example sg/marina-bay-sands."},"hotelNumericId":{"type":"string","title":"Hotel numeric ID","description":"Booking.com numeric property identifier when supplied. Empty when the result does not include one."},"name":{"type":"string","title":"Name","description":"Hotel or accommodation listing name."},"destination":{"type":"string","title":"Destination"},"scopeLevel":{"type":"string","title":"Scope level","description":"Geographic search scope that produced the property, such as district, city, region or country."},"distanceKm":{"nullable":true,"type":"number","title":"Distance from requested place","description":"Distance in kilometres from the requested place when property coordinates are available."},"destId":{"type":"string","title":"Destination ID","description":"Booking.com destination identifier used for the search."},"destType":{"type":"string","title":"Destination type","description":"Destination kind used for the search, such as city, region or district."},"checkin":{"type":"string","title":"Check-in","description":"Check-in date the search used (3 weeks from the request date when the input left dates empty)."},"checkout":{"type":"string","title":"Check-out","description":"Check-out date the search used."},"adults":{"nullable":true,"type":"integer","title":"Adults","description":"Adults in the search."},"url":{"type":"string","title":"URL","description":"Canonical listing URL on Booking.com."},"price":{"nullable":true,"type":"number","title":"Price","description":"Nightly price: totalPrice divided by nights. Null when no price was available for the requested stay."},"totalPrice":{"nullable":true,"type":"number","title":"Total price","description":"Whole-stay price for the requested dates and guests. Hotel URL rows use recommended rooms and omit the price when the recommendation cannot cover the requested rooms; rates can differ from search offers."},"originalTotalPrice":{"nullable":true,"type":"number","title":"Original total price","description":"Struck-through stay price before a discount, when the card shows one."},"nights":{"nullable":true,"type":"integer","title":"Nights","description":"Number of nights priced (checkout minus checkin)."},"priceNote":{"type":"string","title":"Price note","description":"Taxes and charges note accompanying the price. Empty when not supplied."},"currency":{"type":"string","title":"Currency","description":"Currency actually used for the price. Hotel URL prices use the requested currency when a Booking.com conversion rate is available; otherwise they retain the property currency."},"rating":{"nullable":true,"type":"number","title":"Rating","description":"Parsed numeric review score (typically 1–10 on Booking.com)."},"ratingText":{"type":"string","title":"Rating text","description":"Review-score text displayed for the property. Empty when not supplied."},"reviewCount":{"nullable":true,"type":"integer","title":"Review count","minimum":0,"description":"Number of guest reviews on the card; null when none are shown."},"propertyType":{"type":"string","title":"Property type","description":"Accommodation type such as Hotel, Apartment, or Hostel when the source states one. Empty when the source gives no type."},"location":{"type":"string","title":"Location","description":"Area and city shown on the search card (e.g. 'Ota Ward, Tokyo')."},"distanceFromCenter":{"type":"string","title":"Distance from center","description":"Distance-from-center text when displayed for the property. Empty when not supplied."},"imageUrl":{"type":"string","title":"Image URL","description":"Primary image URL from the listing card."},"roomType":{"type":"string","title":"Room type","description":"Room selection associated with the price, when supplied. Hotel URL rows describe recommended rooms; some search rows have no room description."},"pageName":{"type":"string","title":"Page name","description":"Property URL slug when supplied, such as seminaris-campus-berlin. Absent when unavailable."},"stayText":{"type":"string","title":"Stay text","description":"Displayed stay-length text, such as for 2 nights. Absent when not supplied."},"subtitle":{"type":"string","title":"Card subtitle","description":"Additional property subtitle shown in search results. Absent when not supplied."},"amenities":{"type":"array","title":"Amenities","description":"Amenity labels available through hotel detail enrichment. Empty on search rows without enrichment and when detail enrichment did not run or supplied no labels.","items":{"type":"string"}},"phones":{"type":"array","title":"Phones","description":"Public property phone entries when available. An empty list does not establish that no phone number exists elsewhere.","items":{"type":"object","properties":{"value":{"type":"string"},"type":{"type":"string"},"e164":{"nullable":true,"type":"string"}}}},"emails":{"type":"array","title":"Emails","description":"Public property email entries when available. An empty list does not establish that no email address exists elsewhere.","items":{"type":"object","properties":{"value":{"type":"string"},"type":{"type":"string"}}}},"address":{"type":"object","title":"Address","description":"Structured hotel postal address: street keeps the house number, while unit contains only a written apartment, suite, floor or room designation. Region can be filled from postal references; addressCorrected identifies supplemented fields.","properties":{"street":{"nullable":true,"type":"string"},"unit":{"nullable":true,"type":"string"},"locality":{"nullable":true,"type":"string"},"region":{"nullable":true,"type":"string"},"postalCode":{"nullable":true,"type":"string"},"country":{"nullable":true,"type":"string"},"full":{"nullable":true,"type":"string"}}},"geo":{"nullable":true,"type":"object","title":"Geo","description":"Property latitude and longitude when available; otherwise null.","properties":{"lat":{},"lng":{}}},"person":{"nullable":true,"type":"object","title":"Person","description":"Named public property contact when available; otherwise null.","properties":{"name":{"nullable":true,"type":"string"},"role":{"nullable":true,"type":"string"}},"additionalProperties":true},"org":{"nullable":true,"type":"object","title":"Organization","description":"Property organization name and identifier when available; the name may come from the listing title.","properties":{"name":{"nullable":true,"type":"string"},"id":{"nullable":true,"type":"string"}},"additionalProperties":true},"web":{"type":"object","title":"Web","description":"Public web leads: website is the hotel's own site only (never a booking.com page), plus public social links.","properties":{"website":{"nullable":true,"type":"string"},"socials":{"type":"array","items":{"type":"string"}}}},"leadSource":{"type":"string","title":"Lead source","description":"Origin of the contact or address fields: search for a listing, detail for a hotel page, or mobile-api for mobile property information.","enum":["search","detail","entity","contact","reveal-xhr","mobile-api"]},"leadReveal":{"type":"string","title":"Lead reveal","enum":["visible","click","xhr","gated","image","absent"]},"leadAbsences":{"type":"object","title":"Lead absences","description":"Reasons that contact or address fields are missing or unverified, distinguishing values not found on the checked source from values that were not verified rather than proven absent.","additionalProperties":{"type":"string"}},"scrapedAt":{"type":"string","title":"Scraped at","format":"date-time","description":"ISO timestamp when the listing was normalized."},"description":{"type":"string","title":"Description","description":"Property description when detail enrichment succeeds and supplies this field."},"starRating":{"type":"number","title":"Star rating","description":"Official star rating (e.g. 4.0). Only when enrichDetails=true and the row is within detailEnrichLimit."},"spokenLanguages":{"type":"array","title":"Spoken languages","description":"ISO language codes spoken at the property. Only when enrichDetails=true and the row is within detailEnrichLimit.","items":{"type":"string"}},"checkinFrom":{"type":"string","title":"Check-in from","description":"Earliest check-in time (house rules). Only when enrichDetails=true and the row is within detailEnrichLimit."},"checkinUntil":{"type":"string","title":"Check-in until","description":"Latest check-in time (house rules). Only when enrichDetails=true and the row is within detailEnrichLimit."},"checkoutFrom":{"type":"string","title":"Check-out from","description":"Earliest check-out time (house rules). Only when enrichDetails=true and the row is within detailEnrichLimit."},"checkoutUntil":{"type":"string","title":"Check-out until","description":"Latest check-out time (house rules). Only when enrichDetails=true and the row is within detailEnrichLimit."},"paymentMethods":{"type":"array","title":"Payment methods","description":"Accepted credit cards at the property. Only when enrichDetails=true and the row is within detailEnrichLimit.","items":{"type":"string"}},"allowChildren":{"type":"boolean","title":"Children allowed","description":"Whether children are allowed (house rules). Only when enrichDetails=true and the row is within detailEnrichLimit."},"hotelUfi":{"type":"integer","title":"Hotel UFI","description":"Booking.com identifier for the property destination, when provided by detail enrichment."},"mobileCurrency":{"type":"string","title":"Mobile currency","description":"Original property currency supplied with mobile property details, before any price conversion."},"roomTypes":{"type":"array","title":"Room types","description":"Up to ten room names supplied by property details. Available only for enriched rows.","items":{"type":"string"}},"addressCheck":{"nullable":true,"type":"object","title":"Address check","description":"Postal-address verification information, when available, including status, precision and suggested corrections.","additionalProperties":true},"addressCorrected":{"nullable":true,"type":"object","title":"Address fields filled","description":"Address parts supplemented from postal references, with the source for each field. Absent when no fields were supplemented.","additionalProperties":true}},"additionalProperties":true,"description":"One collected entity. Field availability depends on rowType and the source. Fields always present (a|b = at least one of them): every row: hotelId, name, url, price."},"Error":{"type":"object","required":["error"],"properties":{"error":{"$ref":"#/components/schemas/ErrorDetail"}}},"ErrorDetail":{"type":"object","required":["code","message","retryable"],"properties":{"code":{"type":"string","example":"invalid_input"},"message":{"type":"string"},"retryable":{"type":"boolean"}}},"JobStatus":{"type":"object","properties":{"jobId":{"type":"string"},"status":{"type":"string","enum":["queued","running","succeeded","partial","failed","cancelled"]},"done":{"type":"boolean"},"rowsAvailable":{"type":"integer"},"rowsDelivered":{"type":"integer","description":"Rows already delivered (and billed) to you for this job."},"rowsLimit":{"type":"integer","description":"Most rows this job can deliver."},"estimatedFinishSec":{"type":"integer","description":"While running: estimated seconds until done."},"statusUrl":{"type":"string"},"resultsUrl":{"type":"string"},"expiresAt":{"type":"string","format":"date-time"},"retentionHours":{"type":"integer"},"error":{"$ref":"#/components/schemas/ErrorDetail"}}},"RowsPage":{"allOf":[{"$ref":"#/components/schemas/JobStatus"},{"type":"object","properties":{"offset":{"type":"integer"},"nextOffset":{"type":"integer"},"hasMore":{"type":"boolean"},"rowCount":{"type":"integer"},"rowsBilled":{"type":"integer","description":"Rows delivered by this response."},"rows":{"type":"array","items":{"$ref":"#/components/schemas/Row"}},"meta":{"type":"object","additionalProperties":true}}}]},"HealthStatus":{"type":"object","required":["ok","site","status","endpoints","rowsBilled"],"properties":{"ok":{"type":"boolean"},"site":{"type":"string"},"status":{"type":"string","enum":["operational","unavailable"]},"endpoints":{"type":"array","items":{"type":"string"}},"rowsBilled":{"type":"integer"}}}}}}