Skip to main content
Piloterr
Back to library

Despegar Location Search API

Resolve a city, airport or hotel name, or a Despegar results URL, to a destination id. A results URL is reduced to the place id in the path, such as CIT_982. A detail URL that only contains a hotel number returns 400. return_page_source is not supported and returns 400.

Active1 credit = 1 requestGET/v2/despegar/location/search

Endpoint Overview

Detailed documentation, pricing, and usage examples.

OverviewLink to Overview

Search Despegar Argentina for places, hotels and flights.

QuickstartLink to Quickstart

Copy one URL at a time.

https://api.piloterr.com/v2/despegar/location/search?query=Buenos%20Aires
https://api.piloterr.com/v2/despegar/search?destination=Buenos%20Aires&check_in=2026-12-15&check_out=2026-12-18&adults=2
https://api.piloterr.com/v2/despegar/ad?url=https://www.despegar.com.ar/accommodations/detail/242503/2026-12-15/2026-12-18/2
https://api.piloterr.com/v2/despegar/flight/search?query=BUE-MAD

Hotel dates are required and must be today or later. Flight dates are optional: without them the route page returns published fares.

Related APIs

Expand your data capabilities with these complementary tools.

Ready to get started?

Your web scraping API is one click away. Start with +500 credits, no infrastructure to set up, no proxies to manage, and no credit card required.

  • +500 credits
  • No credit card required
  • All endpoints included