search_travel
Search travel offers and get trackable booking links for a given product type + city.
REQUIRED:
type: which travel product — one of ["hotel","flights","bundle","airport_transfer","car_rental"].
city: city name from the supported list — read the
travel://citiesresource for valid values (that city list is for travel only). Pass hotel.state (e.g. "NY") when the city name is ambiguous.agent_id: your registered, active agent id — the attribution + access key. A missing/blank or unregistered agent_id is rejected (no anonymous use).
HOTEL runs a live Trip.com search — pass the hotel object with the stay: check_in /
check_out (YYYY-MM-DD), rooms, adults, children, state. If those are missing/invalid or the
city can't be resolved, you get the hotel default links instead. Other types currently
return curated default links (the hotel object is ignored for them).
Returns {status, reason, message, links:{:[{title, brand, platform, buy_url,
product_url, ...}]}}. status is "ok" = a live hotel result; "fallback" = curated default
links (see reason); "no_results" = nothing available for the type; "error" = the agent_id
was rejected. Each buy_url is ALREADY the trackable booking link — hand it to the traveler
directly. product_url is the plain merchant page.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| city | Yes | ||
| type | Yes | ||
| hotel | No | ||
| limit | No | ||
| agent_id | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||