DocumentationMCPCLI

Introduction

  • Overview

Hotels

  • Search hotels
  • Get hotel details
  • Get live hotel rates

Booking

  • Create hotel booking payment link

Guides

  • Get hotel planning guide

Hotels

Get live hotel rates

Live rooms and rate plans for up to 15 hotels, prices in currency (CNY by default, or USD) at Stripe's exchange rate. rooms, adults and childrenAges are per room: every room has the same occupancy. Each room carries its catalogue facts (static) and the cheapest rate per meal plan × free-cancellation variant, with roomId and ratePlanCode for book_hotel. boardCode is the meal plan (RO room only; BB breakfast; HB breakfast + dinner; FB breakfast + lunch + dinner; BL lunch; BD dinner; HBBL breakfast + lunch; HBLD lunch + dinner; AI all inclusive); boardCount is how many guests per room it covers: fewer than adults per room means the meals don't cover everyone (BB with boardCount 1 for 2 adults is breakfast for 1 of 2). Takes about 15 seconds; query a few hotels at a time. Returns the 5 cheapest rooms per hotel unless maxRoomsPerHotel says otherwise.

get_hotel_rates · Read-only · CLI: fortrip hotels rates

Input

hotelIdsinteger[]required

Hotels to price. Each call takes about 15 seconds.1–15 items · each > 0

checkInstringrequired

Check-in date, yyyy-MM-dd.

checkOutstringrequired

Check-out date, yyyy-MM-dd. Stays are 1 to 15 nights.

roomsintegerrequired

Number of rooms; every room has the same occupancy1–8

adultsintegerrequired

Adults per room, not in total (2 rooms for 4 adults = rooms 2, adults 2)1–8

childrenAgesinteger[]

Age of each child in one room (0-17), per room≤ 8 items · each 0–17

nationalitystring

Guest nationality, ISO 3166-1 alpha-2 in upper case, e.g. CN. Some rates are restricted by nationality; booking doesn't send it, so such a rate may change or be refused at bookingmatches ^[A-Z]{2}$

currency"CNY" | "USD"

Currency to show prices in. Prices are converted from the supplier's at Stripe's exchange rate; the response's fx says how.default "CNY"

bookableOnlyboolean

Keep only rates that are bookable on every night.default true

boardCodes("RO" | "BB" | "HB" | "FB" | "BL" | "BD" | "HBBL" | "HBLD" | "AI")[]

Keep only these meal plans: RO room only, BB breakfast, HB half board, FB full board, AI all inclusive, and so on.≥ 1 items

freeCancellationboolean

Keep only rates that can still be cancelled free of charge right now.

maxRoomsPerHotelinteger

Return the N cheapest rooms per hotel. Defaults to 5.1–200 · default 5

Output

Returns the Rates result object as structuredContent. Errors are described in the overview.

PreviousGet hotel detailsNextCreate hotel booking payment link

On this page

  • Input
  • Output
Fortrip

Opinionated trip planning, built for real itineraries.

Plan

  • AI Trip Planner
  • Validator
  • Transport
  • Stays

Company

  • Pricing
  • About
  • Team
  • Blog
  • Decision Optimization
  • Itinerary Selection
  • News

Resources

  • Explore Destinations
  • Brand Assets
  • Responsible Travel
  • vs ChatGPT
  • Best AI travel planner
  • FAQ

© 2026 FortripAI, Inc.

PrivacyTerms
info@fortrip.ai+1-650-272-16121111b South Governors Ave, Dover, DE 19904
Skip to main content
Fortrip Logo
HomeExplorePlanningPricing
CLIMCPDocs
Saved0