# Trip.com API: Search hotels

> Finds hotels in a city on Trip.com for given dates, with prices, guest ratings, reviews and booking links. Only the initial public listing is read, so large limits may return fewer hotels.

Unofficial. Not affiliated with or endorsed by Trip.com.

- Page: https://fous.com/methods/trip.com/search-hotels
- Method: `trip.com/search_hotels`, version 1
- Website: trip.com
- Returns: name, stars, guest rating, reviews, area, nightly and total price, free cancellation, link
- Effect: read (it gets data and changes nothing)
- Sign-in: none needed
- Cost: 1 credit per completed run (1¢ with pay as you go); failed runs are free
- Verified: Nov 2, 2026

## Inputs

| Field | Type | Required | In the run below | Description |
|---|---|---|---|---|
| `city` | string | yes | `"Tokyo"` | City name, for example Tokyo. |
| `sort` | string | no |  | Listing order, for example lowest_price. One of "recommended", "lowest_price", "top_rated". Default "recommended". |
| `rooms` | integer | no |  | Number of rooms, for example 1. Default 1. |
| `adults` | integer | no |  | Number of adults, for example 2. Default 2. |
| `check_in` | string | yes | `"2026-10-20"` | Check-in date (YYYY-MM-DD), for example 2026-10-20. |
| `currency` | string | no |  | Three-letter currency code, for example USD. Default "USD". |
| `check_out` | string | yes | `"2026-10-22"` | Check-out date (YYYY-MM-DD), for example 2026-10-22. |
| `min_stars` | integer | no |  | Minimum hotel stars, for example 4. |
| `max_results` | integer | no |  | Maximum hotels to return, for example 20. Default 20. |

## Output

From a run on Oct 31, 2026, shortened. Its input:

```json
{
  "city": "Tokyo",
  "check_in": "2026-10-20",
  "check_out": "2026-10-22"
}
```

Its output:

```json
{
  "hotels": [
    {
      "area": "Central Tokyo | Near Japan National Stadium",
      "link": "https://www.trip.com/hotels/detail/?hotelId=35541585&checkIn=2026-10-20&checkOut=2026-10-22&adult=2&crn=1&curr=USD",
      "name": "Mitsui Garden Hotel Jingugaien Tokyo Premier",
      "stars": 5,
      "currency": "USD",
      "hotel_id": "35541585",
      "total_price": 571,
      "guest_rating": 9.2,
      "review_count": 1211,
      "nightly_price": 259,
      "free_cancellation": true,
      "guest_rating_label": "Great",
      "distance_to_city_centre": null
    },
    {
      "area": "Near Shinjuku City | Ikebukuro",
      "link": "https://www.trip.com/hotels/detail/?hotelId=5214781&checkIn=2026-10-20&checkOut=2026-10-22&adult=2&crn=1&curr=USD",
      "name": "JR-EAST HOTEL METS MEJIRO",
      "stars": 3,
      "currency": "USD",
      "hotel_id": "5214781",
      "total_price": 337,
      "guest_rating": 9.5,
      "review_count": 434,
      "nightly_price": 153,
      "free_cancellation": true,
      "guest_rating_label": "Amazing",
      "distance_to_city_centre": null
    },
    {
      "area": "Kanda | Near Nihonbashi",
      "link": "https://www.trip.com/hotels/detail/?hotelId=12663342&checkIn=2026-10-20&checkOut=2026-10-22&adult=2&crn=1&curr=USD",
      "name": "Sotetsu Fresa Inn Tokyo Kanda",
      "stars": 3,
      "currency": "USD",
      "hotel_id": "12663342",
      "total_price": 325,
      "guest_rating": 9.1,
      "review_count": 271,
      "nightly_price": 148,
      "free_cancellation": true,
      "guest_rating_label": "Great",
      "distance_to_city_centre": null
    }
  ]
}
```

## Run it

From code, with a Fous API key in `FOUS_API_KEY`; the answer's `data` holds the output:

```bash
curl https://api.fous.com/v1/runs \
  -H "Authorization: Bearer $FOUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"method":"trip.com/search_hotels","input":{"city":"Tokyo","check_in":"2026-10-20","check_out":"2026-10-22"}}'
```

From an AI agent connected to the Fous MCP server: its `run` with the same method and input. To connect one, give it `set up https://fous.com/SKILL.md`.

## Ask your agent

- Find me hotels in Lisbon from 2026-05-14 to 2026-05-17 for 2 adults, cheapest first, prices in EUR
- On Trip.com, what are the top-rated 4-star-and-up hotels in Bangkok for check-in March 3 and check-out March 7, 2026?
- Need 2 rooms for 4 adults in Seoul, Dec 20–23 2026 — show me about 10 options with free cancellation info and total price
- Search trip.com for 5-star hotels in Dubai, Nov 8 to Nov 12, priced in AED, recommended order, up to 30 results
- Looking for a cheap place to stay in Osaka for one adult, Oct 2–4 2026 — list hotels with guest ratings, review counts and booking links

## Input schema

```json
{
  "type": "object",
  "required": [
    "city",
    "check_in",
    "check_out"
  ],
  "properties": {
    "city": {
      "type": "string",
      "description": "City name, for example Tokyo."
    },
    "sort": {
      "enum": [
        "recommended",
        "lowest_price",
        "top_rated"
      ],
      "type": "string",
      "default": "recommended",
      "description": "Listing order, for example lowest_price."
    },
    "rooms": {
      "type": "integer",
      "default": 1,
      "minimum": 1,
      "description": "Number of rooms, for example 1."
    },
    "adults": {
      "type": "integer",
      "default": 2,
      "minimum": 1,
      "description": "Number of adults, for example 2."
    },
    "check_in": {
      "type": "string",
      "description": "Check-in date (YYYY-MM-DD), for example 2026-10-20."
    },
    "currency": {
      "type": "string",
      "default": "USD",
      "maxLength": 3,
      "minLength": 3,
      "description": "Three-letter currency code, for example USD."
    },
    "check_out": {
      "type": "string",
      "description": "Check-out date (YYYY-MM-DD), for example 2026-10-22."
    },
    "min_stars": {
      "type": "integer",
      "maximum": 5,
      "minimum": 1,
      "description": "Minimum hotel stars, for example 4."
    },
    "max_results": {
      "type": "integer",
      "default": 20,
      "maximum": 50,
      "minimum": 1,
      "description": "Maximum hotels to return, for example 20."
    }
  }
}
```

## Output schema

```json
{
  "type": "object",
  "required": [
    "hotels"
  ],
  "properties": {
    "hotels": {
      "type": "array",
      "items": {
        "type": "object",
        "required": [
          "name",
          "stars",
          "guest_rating",
          "guest_rating_label",
          "review_count",
          "area",
          "distance_to_city_centre",
          "nightly_price",
          "total_price",
          "currency",
          "free_cancellation",
          "link",
          "hotel_id"
        ],
        "properties": {
          "area": {
            "type": [
              "string",
              "null"
            ]
          },
          "link": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "stars": {
            "type": [
              "integer",
              "null"
            ]
          },
          "currency": {
            "type": "string"
          },
          "hotel_id": {
            "type": "string"
          },
          "total_price": {
            "type": "number"
          },
          "guest_rating": {
            "type": [
              "number",
              "null"
            ]
          },
          "review_count": {
            "type": [
              "integer",
              "null"
            ]
          },
          "nightly_price": {
            "type": "number"
          },
          "free_cancellation": {
            "type": "boolean"
          },
          "guest_rating_label": {
            "type": [
              "string",
              "null"
            ]
          },
          "distance_to_city_centre": {
            "type": [
              "string",
              "null"
            ]
          }
        },
        "additionalProperties": false
      }
    }
  },
  "additionalProperties": false
}
```

## See more

- [Trip.com API: Search flights](https://fous.com/methods/trip.com/search-flights.md): Finds priced flights between two cities or airports on Trip.com for the chosen dates, cheapest first; round trips pair each outbound flight with its available returns.
- [Agoda API: Search hotels](https://fous.com/methods/agoda.com/search-hotels.md): Finds available Agoda stays in a city for your dates, with prices before taxes and fees, star and guest ratings, and free-cancellation status.
- [Expedia API: Search hotels](https://fous.com/methods/expedia.com/search-hotels.md): Finds Expedia hotels in a destination for given dates, with public USD prices, reviews, property class, refund status and links. Nightly prices are per room; totals include all requested rooms, taxes and fees.
- [Kayak API: Search hotels](https://fous.com/methods/kayak.com/search-hotels.md): Compares Kayak hotel nightly rates across booking sites for a city or neighborhood and stay dates (two adults, one room).
- [Google API: Search Google Hotels](https://fous.com/methods/google.com/search-hotels.md): Finds places to stay in a city or area for given dates on Google Hotels, with nightly and total prices, hotel class, guest ratings, amenities, address and cheapest booking site. Optional filters for price, stars and rating; vacation rentals are left out. Prices and availability can change.
- [Priceline API: Search hotels](https://fous.com/methods/priceline.com/search-hotels.md): Find publicly priced Priceline hotels in a place for your travel dates, with guest ratings, nightly and total USD prices, and cancellation information. Excludes hotels hidden behind anonymous deals and sign-in-only prices.
- [Hostelworld API: Search hostels](https://fous.com/methods/hostelworld.com/search-hostels.md): Finds available hostels, hotels and guesthouses on Hostelworld in a city for given dates, with per-night dorm and private room prices, ratings, facilities and booking links.
- [Agoda API: Get room prices](https://fous.com/methods/agoda.com/get-room-prices.md): Finds room offers and nightly prices for one Agoda hotel on selected dates. Totals are calculated from displayed nightly prices before taxes and fees; final checkout totals may differ.
- [All Trip.com methods](https://fous.com/methods/trip.com.md)
