{"openapi":"3.1.0","info":{"title":"Booking.com Hotels Prices and Availability Data (x402 & MCP)","version":"0.1.0","description":"Booking.com worldwide hotel and property listings with stay prices, review scores and property details, one row per entity.","x-guidance":"Structured real-time web intelligence APIs paid per delivered row in USDC via x402. All endpoints are synchronous at POST /s/<site>/v1/<endpoint> and also exposed over stateless MCP at POST /mcp. Supports x402 v2 'upto' (Permit2, charged strictly for delivered rows) and 'exact' (EIP-3009). Empty/0-row (404), invalid input (422), timeout (504), and upstream failures (502) are never charged.","contact":{"email":"ops@opendata.best"}},"servers":[{"url":"https://x402.opendata.best"}],"paths":{"/s/booking-com/v1/search":{"post":{"operationId":"booking_com_search","summary":"Booking.com Hotels Prices and Availability Data: Search Booking.com hotels and room prices","description":"Query Booking.com hotels, apartments and resorts worldwide by city, destination ID or property URL. Unit price: $0.005000/row USDC (default quote 10 rows, max 20 rows). Unsettled / 0-row / error responses are never charged.","tags":["booking-com","Travel"],"x-payment-info":{"protocols":[{"x402":{}}],"price":{"mode":"dynamic","currency":"USD","amount":"0.050000"}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"destination":{"type":"string","description":"City, region, country, area or landmark, such as Tokyo or Lombardia. Fill this or detailUrls; leaving both empty starts a small example search."},"detailUrls":{"type":"array","items":{"type":"string"},"description":"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","description":"Maximum property rows for the destination, default 70; larger searches are collected in parts of 70, subject to the maximum cost per run. Hotel URL lists share this limit and detailEnrichLimit; Free-plan users have a 200-row run cap and a 10-run allowance set by the publisher.","default":10,"minimum":1,"maximum":20},"checkin":{"type":"string","description":"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.","pattern":"^(\\d{4}-\\d{2}-\\d{2})?$"},"checkout":{"type":"string","description":"Departure date in YYYY-MM-DD, after arrival. If only one date is supplied, the missing date completes a two-night stay.","pattern":"^(\\d{4}-\\d{2}-\\d{2})?$"},"adults":{"type":"integer","description":"Number of adult guests, from 1 to 10.","default":2,"minimum":1,"maximum":10},"children":{"type":"integer","description":"Number of children, from 0 to 10. Missing child ages are filled with 8.","default":0,"minimum":0,"maximum":10},"childAges":{"type":"array","items":{"type":"integer","minimum":0,"maximum":17},"description":"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","description":"Number of rooms requested, from 1 to 10.","default":1,"minimum":1,"maximum":10},"currency":{"type":"string","description":"Preferred ISO currency code (e.g. 'USD', 'EUR', 'SGD'). Each row's currency field says which currency the shown price is in.","default":"USD","pattern":"^[A-Za-z]{3}$"},"lang":{"type":"string","description":"Display language for property information, such as en-us, en-gb, de, fr or ja.","default":"en-us","pattern":"^[A-Za-z]{2}([-_][A-Za-z]{2})?$"},"sort":{"type":"string","description":"Order of properties in destination search results.","default":"popularity","enum":["popularity","price","review_score","review_and_price","stars_desc","stars_asc","distance","homes_first"]},"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":"Accommodation categories to include. Leave empty to include all categories.","default":[]},"stars":{"type":"array","items":{"type":"integer","minimum":1,"maximum":5},"description":"Hotel star classes to include, from 1 to 5. Leave empty for no star filter.","default":[]},"minReviewScore":{"type":"number","description":"Minimum guest review score, from 0 to 10. Leave empty for no review-score filter.","minimum":0,"maximum":10},"freeCancellation":{"type":"boolean","description":"Restrict destination searches to offers with free cancellation.","default":false},"enrichDetails":{"type":"boolean","description":"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","description":"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,"minimum":1,"maximum":30},"destId":{"type":"string","description":"Known Booking.com destination identifier. Supply it with destType to use that destination directly.","default":""},"destType":{"type":"string","description":"Destination kind paired with destId, such as city, region, country or landmark.","default":"","enum":["","city","region","country","landmark","airport","district","hotel","coordinates"]},"customNfltFilters":{"type":"array","items":{"type":"string"},"description":"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 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":""}},"additionalProperties":false},"example":{"destination":"Singapore","currency":"USD","enrichDetails":false,"maxResults":10}}}},"responses":{"200":{"description":"Synchronous data rows with x402 PAYMENT-RESPONSE receipt header.","headers":{"PAYMENT-RESPONSE":{"description":"Base64-encoded x402 v2 SettleResponse receipt.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Response_booking_com"},"example":{"jobId":"job_booking-_example","status":"succeeded","done":true,"rowCount":1,"rowsBilled":1,"rowsDelivered":1,"rows":[{"hotelId":"example_hotelId","hotelNumericId":"example_hotelNumericId","name":"example_name","price":10,"totalPrice":10,"nights":"example_nights"}],"meta":{"site":"booking-com","endpoint":"search","maxResults":10,"payment":{"scheme":"upto","network":"eip155:84532","quotedMicrousd":50000,"settledMicrousd":5000,"transaction":"0x0000000000000000000000000000000000000000000000000000000000000000"}}}}}},"402":{"description":"Payment required or invalid/declined payment authorization (never charged).","headers":{"PAYMENT-REQUIRED":{"description":"Base64-encoded x402 v2 PaymentRequired quote.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object"}}}},"404":{"description":"no_results: 0 rows matched the query; aborted before settlement (charged=false).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"409":{"description":"payment_id_conflict: payment-identifier reused with different parameters.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"Invalid or missing request parameters (validated before /verify; charged=false).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Rate limit or payer cooldown exceeded (charged=false).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"502":{"description":"Upstream source failed or blocked (charged=false).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"503":{"description":"settlement_pending or facilitator_unavailable; retry same payment to reconcile.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"504":{"description":"upstream_timeout: synchronous deadline reached and task cancelled (charged=false).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/s/booking-com/v1/health":{"get":{"operationId":"booking_com_health","summary":"Booking.com Hotels Prices and Availability Data: health check","description":"Free readiness check (never returns 402 and never starts a collection).","tags":["booking-com","health"],"responses":{"200":{"description":"Operational","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HealthStatus"}}}},"503":{"description":"Unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HealthStatus"}}}}}}}},"components":{"schemas":{"ErrorDetail":{"type":"object","required":["code","message","retryable"],"properties":{"code":{"type":"string"},"message":{"type":"string"},"retryable":{"type":"boolean"},"charged":{"type":"boolean"}}},"ErrorResponse":{"type":"object","required":["error"],"properties":{"error":{"$ref":"#/components/schemas/ErrorDetail"}}},"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"}}},"Row_booking_com":{"type":"object","properties":{"hotelId":{"type":["string","number","boolean","object","array","null"]},"hotelNumericId":{"type":["string","number","boolean","object","array","null"]},"name":{"type":["string","number","boolean","object","array","null"]},"price":{"type":["number","string","null"]},"totalPrice":{"type":["number","string","null"]},"nights":{"type":["string","number","boolean","object","array","null"]},"currency":{"type":["string","number","boolean","object","array","null"]},"rating":{"type":["number","string","null"]},"reviewCount":{"type":["number","string","null"]},"propertyType":{"type":["string","number","boolean","object","array","null"]},"location":{"type":["string","number","boolean","object","array","null"]},"phones":{"type":["array","object","string","null"]},"emails":{"type":["array","object","string","null"]},"org":{"type":["object","null"]},"address":{"type":["string","number","boolean","object","array","null"]},"geo":{"type":["object","null"]},"person":{"type":["object","null"]},"web":{"type":["object","null"]},"leadSource":{"type":["string","number","boolean","object","array","null"]},"leadReveal":{"type":["string","number","boolean","object","array","null"]},"leadAbsences":{"type":["string","number","boolean","object","array","null"]},"destination":{"type":["string","number","boolean","object","array","null"]},"scopeLevel":{"type":["string","number","boolean","object","array","null"]},"distanceKm":{"type":["string","number","boolean","object","array","null"]},"url":{"type":["string","null"],"format":"uri"},"scrapedAt":{"type":["string","number","boolean","object","array","null"]}},"additionalProperties":true},"Response_booking_com":{"type":"object","properties":{"jobId":{"type":"string"},"status":{"type":"string"},"done":{"type":"boolean"},"rowCount":{"type":"integer","minimum":1},"rowsBilled":{"type":"integer","minimum":1},"rowsDelivered":{"type":"integer","minimum":1},"rows":{"type":"array","items":{"$ref":"#/components/schemas/Row_booking_com"}},"meta":{"type":"object","properties":{"site":{"type":"string"},"endpoint":{"type":"string"},"maxResults":{"type":"integer"},"payment":{"type":"object","properties":{"scheme":{"type":"string"},"network":{"type":"string"},"quotedMicrousd":{"type":"integer"},"settledMicrousd":{"type":"integer"},"transaction":{"type":"string"},"payer":{"type":"string"}}}}}},"required":["jobId","status","done","rowCount","rows"]}}},"x-discovery":{"ownershipProofs":["0xdb7c562a3ef6f9f29da4672abdab1489e82e910a91b863e3c22b905df6522b7223798a84245e0452cab689483b6cbb7cd8c13141319df982b213dea31ee7e4311c"]}}