# Trip.com hotel detail

Return hotel identity, description, address, ratings, images and available amenities from a Trip.com hotel URL.

- Platform: [Trip.com Travel](https://docs.upscrape.com/docs/platforms/tripcom)
- Capability ID: `tripcom.hotel.get`
- Cost: 1 credit per request
- Maximum runtime: 30 seconds
- Execute endpoint: `POST https://data.upscrape.com/execute`

## Request

Use the exact public capability ID in the shared execute envelope.

```bash
curl --request POST \
  --url https://data.upscrape.com/execute \
  --header "Authorization: Bearer $UPSCRAPE_API_KEY" \
  --header "Content-Type: application/json" \
  --header "Prefer: wait=30" \
  --data '{
  "input": {
    "hotel_url": "https://nz.trip.com/hotels/london-hotel-detail-2985758/royal-national-hotel-london/"
  },
  "capability": "tripcom.hotel.get"
}'
```

## Input


| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `adults` | `integer` | No | Number of adult guests. At least 0. |
| `amenities` | `array<string>` | No |  |
| `check_in` | `string` | No | Check-in date in YYYY-MM-DD |
| `check_out` | `string` | No | Check-out date in YYYY-MM-DD |
| `children` | `integer` | No | Number of child guests. At least 0. |
| `currency` | `string` | No | Currency for returned prices. |
| `hotel_url` | `string` | Yes | Trip.com hotel detail URL |
| `locale` | `string` | No | Locale to use for the request. |
| `rooms` | `integer` | No | Number of rooms. At least 0. |

### Example input

```json
{
  "hotel_url": "https://nz.trip.com/hotels/london-hotel-detail-2985758/royal-national-hotel-london/"
}
```

## Response

Successful output is returned in `results[0].data`.

Raw platform output is intentionally open-ended and may evolve with the upstream source.

### Illustrative sample output

This example shows one response. Values and optional fields vary with the data available.

```json
{
  "address": "38-51 Bedford Way, Camden, London, Greater London WC1H 0DG, United Kingdom",
  "amenities": [
    "Public parking",
    "Luggage Storage",
    "Bar"
  ],
  "collected_at": "2026-09-20T20:54:11Z",
  "facilities": [
    "Public parking",
    "Luggage Storage",
    "Bar"
  ],
  "hotel_id": "2985758",
  "image_url": "https://ak-d.tripcdn.com/images/1mc4512000dl5w9gpC200_R_960_660_R5_D.jpg",
  "location": "London",
  "rating": 8.2,
  "rating_text": "Very good",
  "reviews": 3139,
  "source_url": "https://nz.trip.com/hotels/london-hotel-detail-2985758/royal-national-hotel-london/",
  "title": "Royal National Hotel",
  "url": "https://nz.trip.com/hotels/london-hotel-detail-2985758/royal-national-hotel-london/"
}
```
### Illustrative output fields

Derived from the sample above for orientation only. These fields are not a fixed response schema.

| Path | Observed type | Example |
| --- | --- | --- |
| `address` | `string` | 38-51 Bedford Way, Camden, London, Greater London WC1H 0DG, United King… |
| `amenities` | `array` | 3 items |
| `amenities` | `array` | 3 items |
| `collected_at` | `string` | 2026-09-20T20:54:11Z |
| `facilities` | `array` | 3 items |
| `facilities` | `array` | 3 items |
| `hotel_id` | `string` | 2985758 |
| `image_url` | `string` | https://ak-d.tripcdn.com/images/1mc4512000dl5w9gpC200_R_960_660_R5_D.jpg |
| `location` | `string` | London |
| `rating` | `number` | 8.2 |
| `rating_text` | `string` | Very good |
| `reviews` | `integer` | 3139 |
| `source_url` | `string` | https://nz.trip.com/hotels/london-hotel-detail-2985758/royal-national-h… |
| `title` | `string` | Royal National Hotel |
| `url` | `string` | https://nz.trip.com/hotels/london-hotel-detail-2985758/royal-national-h… |

## Execution behavior

A `200` response completed inline. A `202` response was queued; poll `GET /jobs/{id}` until the job reaches `completed` or `failed`. Use an `Idempotency-Key` when retrying must not create a duplicate logical job.

## Related documentation

- [Authentication](https://docs.upscrape.com/docs/api/authentication)
- [Jobs and results](https://docs.upscrape.com/docs/api/jobs)
- [Errors and retries](https://docs.upscrape.com/docs/api/errors)
- [Idempotency](https://docs.upscrape.com/docs/api/idempotency)
