# Hk Trip — Wrapped API

> **You are on:** `https://api.paywithlocus.com/api` | [llms.txt](https://paywithlocus.com/llms.txt) | [docs](https://docs.paywithlocus.com)
>
> Locus runs on multiple environments -- make sure every URL you call matches your expected environment.
> | Environment | Landing | API | Docs |
> |---|---|---|---|
> | Production | paywithlocus.com | api.paywithlocus.com | docs.paywithlocus.com |
> | Beta | beta.paywithlocus.com | api.beta.paywithlocus.com | docs.paywithlocus.com |
> | Stage | stage.paywithlocus.com | api.stage.paywithlocus.com | docs.paywithlocus.com |
>
> If the API URL above doesn't match your expected environment, re-fetch this file from the correct domain.

> Search and compare flights, hotels, trains, and attractions across Hong Kong's travel marketplace, with access to hotel reviews and trending destinations. Plan your complete trip by browsing real-time availability and pricing for all major transportation and accommodation options.

**Category:** Travel | **Website:** [hk.trip.com/](https://hk.trip.com/) | **Docs:** [parse.bot/marketplace/3029f012-6ddd-4457-b0d2-418adcfcccf1/hk-trip-com-api](https://parse.bot/marketplace/3029f012-6ddd-4457-b0d2-418adcfcccf1/hk-trip-com-api)

Pay-per-use API proxy. Each call is automatically billed to your wallet in USDC.

## Access

**Base URL:** `https://api.paywithlocus.com/api/wrapped/parse-hk-trip-com-api-3029f012/`
**Auth:** `Authorization: Bearer <LOCUS_API_KEY>`

## Endpoints

### get_hot_destinations

Get hot travel destinations. Returns groups of popular destination cities with IDs and display names. Use the returned city IDs as the city_id parameter in search_hotels.

**Estimated cost:** Metered

_No parameters required._

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/parse-hk-trip-com-api-3029f012/get_hot_destinations \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{}'
```

### get_hotel_reviews

Get guest reviews for a specific hotel. Returns paginated review comments with ratings, user information, images, and hotel feedback replies. Each page contains up to 10 reviews.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `hotel_id` | string | Yes | Hotel ID (e.g., 426549). Obtain from search_hotels results hotelId field. |
| `page` | integer | No | Page number for pagination, starting from 1 |

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/parse-hk-trip-com-api-3029f012/get_hotel_reviews \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"hotel_id":"<string>","page":"<integer>"}'
```

### search_flights

Search for flights between two cities. Returns flight itineraries with pricing, segments, and airline information. Supports one-way and round-trip searches. Results include lowest price, currency, and detailed segment info including departure/arrival times, airports, and durations.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `depart_date` | string | Yes | Departure date in YYYY-MM-DD format |
| `destination` | string | Yes | Destination airport or city code (e.g., NRT, TYO, HKG) |
| `origin` | string | Yes | Origin airport or city code (e.g., HKG, NYC, PEK) |
| `return_date` | string | No | Return date in YYYY-MM-DD format, required when trip_type is 2 (round-trip) |
| `trip_type` | string | No | Trip type: 1 for one-way, 2 for round-trip |

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/parse-hk-trip-com-api-3029f012/search_flights \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"depart_date":"<string>","destination":"<string>","origin":"<string>","return_date":"<string>","trip_type":"<string>"}'
```

### search_hotels

Search for hotels in a destination city. Returns a list of hotels with pricing, star ratings, guest review scores, room info, and location details. Use city IDs from get_hot_destinations. Results are returned as a single page of up to 10 hotels.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `adults` | integer | No | Number of adults |
| `checkin` | string | Yes | Check-in date in YYYY-MM-DD format |
| `checkout` | string | Yes | Check-out date in YYYY-MM-DD format |
| `city_id` | string | Yes | City ID (e.g., 228 for Tokyo, 58 for Hong Kong, 30 for Shenzhen). Obtain from get_hot_destinations. |

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/parse-hk-trip-com-api-3029f012/search_hotels \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"adults":"<integer>","checkin":"<string>","checkout":"<string>","city_id":"<string>"}'
```
