Hotels
Live rates
Live rooms and rates for up to 15 hotels. Takes about 15 seconds; query a few hotels at a time.
Usage
fortrip rates --hotel <id>... --check-in <date> --check-out <date>Options
| Flag | Field | Description |
|---|---|---|
--hotel <id> | hotelIds | Repeat, or comma-separate, for each hotel. |
--check-in <date> | checkIn | yyyy-MM-dd. Required. |
--check-out <date> | checkOut | yyyy-MM-dd. Required. |
--rooms <n> | rooms | Rooms. Default 1. |
--adults <n> | adults | Adults per room. Default 2. |
--child-age <n> | childrenAges | Repeat for each child. |
--nationality <CC> | nationality | Two-letter country code, e.g. CN. |
--board <code> | boardCodes | Repeat for each meal plan to keep, e.g. BB. |
--free-cancellation | freeCancellation | Only rates still free to cancel. |
--include-unbookable | bookableOnly | Also keep rates not bookable every night. |
--max-rooms <n> | maxRoomsPerHotel | Cheapest rooms per hotel. Default 10. |
--currency <code> | currency | CNY (default) or USD. |
Output
Prints the Rates result object on stdout. Errors go to stderr with an exit code.