Trip.com Car Rental Search API
See which cars and rental companies Trip.com lists at a pickup place, such as London Heathrow, with their from prices.
{ "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/" } ]}
What you send, what comes back
The input object it accepts, and every field of a record, with the values from the response above.
| Field | Type | Required | What it does | Example |
|---|---|---|---|---|
| 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 |
| Field | Type | Example |
|---|---|---|
| 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 |
Call it from your code
Set UPSCRAPE_API_KEY to your key and copy a working request. No SDK needed.
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" }}'
import jsonimport osimport requestspayload = json.loads(r'''{ "capability": "tripcom.car_rental.search", "input": { "max_results": 12, "query": "London Heathrow" }}''')response = requests.post( "https://data.upscrape.com/execute", headers={ "Authorization": f"Bearer {os.environ['UPSCRAPE_API_KEY']}", "Content-Type": "application/json", "Prefer": "wait=30", }, json=payload,)response.raise_for_status()print(json.dumps(response.json(), indent=2))
const response = await fetch("https://data.upscrape.com/execute", { method: "POST", headers: { "Authorization": `Bearer ${process.env.UPSCRAPE_API_KEY}`, "Content-Type": "application/json", "Prefer": "wait=30", }, body: JSON.stringify({ "capability": "tripcom.car_rental.search", "input": { "max_results": 12, "query": "London Heathrow" }}),});if (!response.ok) { throw new Error(`Upscrape request failed: ${response.status}`);}console.log(JSON.stringify(await response.json(), null, 2));
{ "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/" } ]}
More Trip.com endpoints
The same API key runs every one of them.
Trip.com Car Rental Search API FAQ
The short answers. The docs have the long ones.
How much does the Trip.com Car Rental Search API cost?
1 credit per successful call, shown before it runs. You buy credits once, and paid credits never expire.
What do I send?
Send query. The input fields below list every option with its type and limits.
Do I need a Trip.com Travel login?
No. It reads public Trip.com Travel data; nothing runs on your account.
Can my AI agent call it?
Yes, over MCP: the agent finds tripcom.car_rental.search, checks its price and runs it with the same credits as the REST API.