# Trip.com flight search

Search one-way Trip.com flight offers for a route, date, passenger set and cabin class from the current first-party list endpoint.

- Platform: [Trip.com Travel](https://docs.upscrape.com/docs/platforms/tripcom)
- Capability ID: `tripcom.flight.search`
- 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": {
    "adults": 1,
    "cabin_class": "economy",
    "currency": "USD",
    "departure_date": "2026-11-10",
    "destination": "PAR",
    "locale": "en-US",
    "origin": "LON"
  },
  "capability": "tripcom.flight.search"
}'
```

## Input


| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `adults` | `integer` | No | Number of adult guests. From 1 to 9. Default: `1`. |
| `cabin_class` | `string` | No | Allowed values: `economy`, `premium_economy`, `business`, `first`. Default: `economy`. |
| `children` | `integer` | No | Number of child guests. From 0 to 8. Default: `0`. |
| `currency` | `string` | No | Currency for returned prices. Default: `USD`. |
| `departure_date` | `string` | Yes | Departure date in YYYY-MM-DD |
| `destination` | `string` | Yes | Arrival city or airport code, for example PAR or CDG |
| `infants` | `integer` | No | At least 0. Default: `0`. |
| `locale` | `string` | No | Locale to use for the request. Default: `en-US`. |
| `max_results` | `integer` | No | Maximum number of results to return. At least 0. Default: `0`. |
| `origin` | `string` | Yes | Departure city or airport code, for example LON or LHR |

### Example input

```json
{
  "adults": 1,
  "cabin_class": "economy",
  "currency": "USD",
  "departure_date": "2026-11-10",
  "destination": "PAR",
  "locale": "en-US",
  "origin": "LON"
}
```

## Response

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

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

No example output is available for this capability.


## 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)
