Despegar Latin America Hotels and Flights Data: Search Despegar hotels, flights and destinations
despegar_com__search[Despegar Latin America Hotels and Flights Data] Search Despegar hotels, flights and destinations. Query Despegar hotels, flights, destination suggestions, cars and activities across Latin American sites. x402 price: $0.0050/row USDC (max 10 rows; 0 rows / errors are never charged).
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "despegar_com__search"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mode | No | Leave on Auto to choose from the target fields you fill. Select hotelsSearch for a place-name hotel search. flightsSearch and packagesSeo are temporarily unavailable and stop with INVALID_INPUT without charging rows; cars, transfers and activities are not available. | auto |
| query | No | Enter a city or place name, such as Buenos Aires. With mode auto this returns destination suggestions; choose hotelsSearch to request hotels instead. | |
| rooms | No | Number of rooms requested. Detailed allocation of travellers between rooms is not available. | |
| adults | No | Number of adults for the search. Exact child-age and room-by-room allocation is not available. | |
| origin | No | Departure airport code or origin city slug for flights and packages, which are temporarily unavailable. A route alone selects flightsSearch and stops with INVALID_INPUT. | |
| checkin | No | Enter the stay start in YYYY-MM-DD format, today or later. Leave empty for 21 days from today. | |
| hotelId | No | Enter a Despegar hotel identifier to select hotelDetail automatically. Optional reviews count toward maxResults. | |
| checkout | No | Hotel check-out date, YYYY-MM-DD. Leave empty for 7 nights after check-in. | |
| children | No | Number of children requested. Child ages are not represented, so returned prices are not exact child-inclusive booking quotes. | |
| currency | No | Leave empty to use the selected country's currency, such as ARS for Argentina or MXN for Mexico. A different currency is rejected rather than converted. | |
| maxPages | No | Maximum hotel search pages to read, from 1 to 20. Collection can stop earlier when maxResults is reached or no more matching hotels are available. | |
| tripType | No | Choose a round trip or one-way flight search. | roundtrip |
| maxResults | No | Maximum delivered rows for the supplied query, hotel or route, including optional reviews. Default 70; larger requests are collected in parts of 70, subject to your maximum run cost and the Free-plan limits of 200 rows per run and 10 runs. | |
| maxReviews | No | Maximum reviews per hotel for hotelDetail or enriched hotelsSearch rows, from 0 to 50. Each review is billed as a separate row; hotel rows come first and reviews share the remaining maxResults allowance. | |
| returnDate | No | Flight return date, YYYY-MM-DD. Leave empty to use the check-out date. | |
| countrySite | No | Choose the Despegar country site. Availability and fields can differ between countries and collection modes. | despegar.com.ar |
| destination | No | Arrival airport code or destination city slug for flights and packages, which are temporarily unavailable. | |
| enrichLimit | No | Maximum hotels to check for additional details when enrichDetails is true, from 0 to 20. | |
| departureDate | No | Flight departure date, YYYY-MM-DD. Leave empty to use the check-in date. | |
| enrichDetails | No | Add available hotel details to hotelsSearch rows. Off by default; use enrichLimit to limit the number of hotels checked. | |
| destinationGid | No | Enter a Despegar destination identifier, such as CIT_982, to select hotelsSearch without a place-name lookup. |