↑ ↓ to move ↵ to open
Trip.com Travel API reference

tripcom.car_rental.search

See which cars and rental companies Trip.com lists at a pickup place, such as London Heathrow, with their from prices.

At a glance

Endpoint ID
tripcom.car_rental.search
Price
1 credit per call; failed calls are free
Runs for up to
30 seconds
Request
POST /execute
Run an endpoint
MCP tool when pinned
tripcom__car_rental__search
Pin tools
OpenAPI
openapi.json
Download

Request

Send the endpoint ID as capability and its fields as input. Set UPSCRAPE_API_KEY to your key first.

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 '{  "capability": "tripcom.car_rental.search",  "input": {    "max_results": 12,    "query": "London Heathrow"  }}'

Input

FieldTypeRequiredWhat it doesExample
query string yes City or pickup location London Heathrow
currency string no Currency for returned prices.
locale string no Locale to use for the request.
max_results integer no Maximum number of results to return. At least 0. Default: 0. 12

Response

A finished call answers with HTTP 200; the data is in results[0].data, and billing.credits_charged is what it cost. A call still running after the wait answers 202: see jobs and results.

This is results[0].data from a real run:

results[0].data
{  "currency": "USD",  "end_page": 1,  "has_more": false,  "pickup_name": "London Heathrow-airport",  "source_url": "https://us.trip.com/carhire/to-united-kingdom-109/london-338/heathrow-airport-lhr/",  "start_page": 1,  "total_found": 12,  "cars": [    {      "car_id": "14003",      "currency": "USD",      "model": "Nissan Qashqai",      "pickup_location": "London Heathrow-airport",      "price_from": 35,      "provider": "ALAMO",      "url": "https://us.trip.com/carhire/to-united-kingdom-109/london-338/heathrow-airport-lhr/"    },    {      "car_id": "14007159",      "currency": "USD",      "model": "Nissan Juke",      "pickup_location": "London Heathrow-airport",      "price_from": 29,      "provider": "Drivalia",      "url": "https://us.trip.com/carhire/to-united-kingdom-109/london-338/heathrow-airport-lhr/"    }  ]}

Fields

FieldTypeExample
cars array 3 records
cars[].car_id string 14003
cars[].currency string USD
cars[].model string Nissan Qashqai
cars[].pickup_location string London Heathrow-airport
cars[].price_from integer 35
cars[].provider string ALAMO
cars[].url string https://us.trip.com/carhire/to-united-kingdom-109/london-338/he…
currency string USD
end_page integer 1
has_more boolean false
pickup_name string London Heathrow-airport
source_url string https://us.trip.com/carhire/to-united-kingdom-109/london-338/he…
start_page integer 1
total_found integer 12

If a call fails

A failed call costs nothing. The response carries an error.code you can branch on; Errors and retries lists every code and which ones to retry.

Other Trip.com Travel endpoints

Something missing or unclear? Ask the team that builds the Trip.com Travel endpoints.