Search accommodations
documentedSearch for stay-type inventory (hotels/apartments) matching criteria.
POST /accommodations/searchAccommodationno implementation yet0 runsNo implementation yet. Run it to have the agent write one, or open a pull request with your own.
Seed example (keychains curl)
npx -y keychains@latest curl "https://demandapi.booking.com/3.1/accommodations/search" \
-X POST \
-H "Authorization: Bearer {{OAUTH2_ACCESS_TOKEN}}" \
-H "Content-Type: application/json" \
-H "Accept: application/json" \
-H "X-Affiliate-Id: {{BOOKING_AFFILIATE_ID}}" \
-d '{"booker": {"country": "{{$country}}", "platform": "{{$platform}}"}, "checkin": "{{$checkin}}", "checkout": "{{$checkout}}", "city": {{$city}}, "guests": {"number_of_adults": {{$adults}}, "number_of_rooms": {{$rooms}}}, "extras": ["extra_charges", "products"]}'