UNPKG

get-booking-prices

Version:

Tiny library to retrieve booking data (rooms with their prices) from Booking.com.

13 lines (12 loc) 419 B
export declare type HotelRoomAvailability = { name: string; price: number; occupancy: number; }; export declare type GetRoomsOptions = { customHeaders?: Record<string, string>; adults?: number; country?: string; currency?: string; }; export declare function getRooms(hotelSlug: string, checkin: Date, checkout: Date, options?: GetRoomsOptions): Promise<HotelRoomAvailability[]>;