---
title: "Trip.com API: Suggest | Perceptlayer"
description: "Suggest from Trip.com as JSON. 1 credit per successful call."
url: https://perceptlayer.com/apis/trip-com/suggest
---

[APIs](https://perceptlayer.com/apis) / [Trip.com](https://perceptlayer.com/apis/trip-com) / Suggest

# Trip.com: Suggest

Suggest from Trip.com as JSON. 1 credit per successful call.

GET `/v1/trip-com/suggest`

## Parameters

Send parameters in the query string.

| Parameter | Type | Required | Allowed values |
| --- | --- | --- | --- |
| `query` | string | Required | Up to 100 characters |
| `type` | string | Optional | all, city, hotel, airport |
| `locale` | string | Optional | en, en-gb, de, fr, ja, ko, zh-hk |

## Example request

cURL shell 

```
curl "https://api.perceptlayer.com/v1/trip-com/suggest?query=paris" \
  -H "X-API-Key: $API_KEY"
```

[Run this endpoint in the playground](https://perceptlayer.com/apis/trip-com?try=suggest#playground) with your own parameters. 1 credit per successful call; failed calls are free.
