Discover/despegar.com.ar API
live

despegar.com.ar APIdespegar.com.ar

Access Despegar.com.ar flight search, destination autocomplete, and home travel offers via API. Returns pricing in ARS/USD, IATA codes, airline data, and itineraries.

Endpoints
3
Updated
14d ago
Try it
Search text for airports or cities (e.g. 'miami', 'buenos').
api.parse.bot/scraper/d3bd51e8-9d60-468e-ba59-fa852e640ab4/<endpoint>
Ready to send
Fill in the parameters and hit sign in to send to see live response data here.
Use it in your codegrab a free API key at signup
curl -X GET 'https://api.parse.bot/scraper/d3bd51e8-9d60-468e-ba59-fa852e640ab4/autocomplete?q=buenos&query=miami' \
  -H 'X-API-Key: $PARSE_API_KEY'
All endpoints · 3 totalclick to expand

Returns autocomplete suggestions for airports and cities based on a search query. Results include IATA codes, geographic coordinates, and display names in Spanish.

Input
ParamTypeDescription
queryrequiredstringSearch text for airports or cities (e.g. 'miami', 'buenos').
Response
{
  "type": "object",
  "fields": {
    "items": "array of airport/city suggestion objects with id, target (iata, type, parents), display name, highlight, and location coordinates"
  },
  "sample": {
    "data": {
      "items": [
        {
          "id": "AIR_195982",
          "target": {
            "id": "195982",
            "gid": "AIR_195982",
            "iata": "MIA",
            "type": "AIRPORT",
            "parents": {
              "city": "CIT_4544",
              "country": "COU_20208",
              "continent": "CON_30004",
              "administrative_division": "ADM_10664"
            }
          },
          "display": "Aeropuerto Internacional Miami, Miami, Estados Unidos",
          "location": {
            "latitude": 25.79538913037947,
            "longitude": -80.2874298779297
          },
          "highlight": "Aeropuerto Internacional <em>Miami</em>, <em>Miami</em>, Estados Unidos"
        }
      ]
    },
    "status": "success"
  }
}

About the despegar.com.ar API

The Despegar.com.ar API exposes 3 endpoints covering destination autocomplete, homepage travel offers, and flight search for the Argentine market. The search_flights endpoint returns full itineraries with airline details, per-segment routing, and prices denominated in both ARS and USD. Results include IATA codes, booking links, and passenger breakdowns for adults, children, and infants.

Endpoints Overview

The API covers three distinct functions. autocomplete accepts a free-text query parameter (e.g. 'miami' or 'buenos') and returns an array of airport and city suggestion objects, each carrying an IATA code, geographic coordinates, a Spanish-language display name, and structured parent location data. This is the correct entry point for resolving user input to an IATA code before calling search_flights.

Flight Search

search_flights requires origin, destination, and departure_date (YYYY-MM-DD). Optionally supply return_date for round trips, and adults, children, or infants for passenger counts. The response includes a flights array where each object carries price, airlines, itineraries (with individual segments), origin, destination, link, and drivers. Note that results represent flight suggestions around the departure date rather than an exact-date fare list — dates close to the requested date are included.

Home Offers

get_home_offers takes no parameters and returns the current promotional listings from the Despegar.com.ar offers surface. Each offer object includes offer_type (flight, package, hotel), main_text, auxiliary_text, a dual-currency price field in ARS and USD, a link for booking, a picture URL, and a section label. The total field tells you how many offers are in the current response.

Coverage Notes

All content is oriented toward the Argentine market: display names are in Spanish, prices default to ARS, and IATA suggestions reflect Despegar's regional catalogue. The search_flights endpoint surfaces round-trip results when return_date is supplied and one-way results when it is omitted.

Common use cases
  • Build a flight price tracker for routes departing from Buenos Aires (AEP, EZE) to major South American hubs
  • Populate a destination search input with Spanish-language airport and city suggestions using the autocomplete endpoint
  • Aggregate current ARS/USD promotional fares from Despegar's home offers for a travel deals newsletter
  • Compare round-trip vs one-way pricing by calling search_flights with and without return_date
  • Resolve city or airport names to IATA codes before submitting structured flight search queries
  • Display airline names and layover segments for a given origin-destination pair in a travel planning tool
  • Monitor offer_type distribution (flights vs packages vs hotels) across Despegar's active promotions
Pricing & limitsSee full pricing →
TierPriceCredits/monthRate limit
Free$0/mo1005 req/min
Hobby$30/mo1,00020 req/min
Developer$100/mo5,000250 req/min

One credit = one API call regardless of which marketplace API you call. Exceeding the rate limit returns a 429 response. Authenticate with the X-API-Key header.

Frequently asked questions
Does Despegar have an official public developer API?+
Despegar operates a B2B affiliate and connectivity program for travel agencies, but there is no publicly documented developer API available to individual developers. The Parse API provides structured access to the data available on despegar.com.ar.
What does search_flights return and how exact are the dates?+
The endpoint returns an array of flight offer objects, each with price, airlines, itineraries containing individual segments, origin/destination codes, and a direct booking link. Results are flight suggestions around the supplied departure_date, not a strict exact-date fare list — nearby dates may appear in the response.
Does the API return hotel-only or car rental search results?+
Not currently. The API covers flight search via search_flights and mixed offer types (flights, packages, hotels) through get_home_offers, but there is no dedicated hotel search or car rental endpoint. You can fork the API on Parse and revise it to add an endpoint targeting those verticals.
Can I retrieve fare details for a specific flight or get seat availability?+
Not currently. The search_flights endpoint returns offer-level pricing, airline info, and itinerary segments, but does not expose fare class breakdowns, seat maps, or real-time availability counts. You can fork the API on Parse and revise it to add an endpoint covering fare detail pages.
Are prices returned in both ARS and USD across all endpoints?+
The get_home_offers endpoint explicitly includes both ARS and USD price fields per offer object. The search_flights price fields reflect the currency presented on despegar.com.ar, which is primarily ARS for the Argentine market. The autocomplete endpoint does not include pricing — it returns location metadata only.
Page content last updated . Spec covers 3 endpoints from despegar.com.ar.
Related APIs in TravelSee all →
culturetrip.com API
Discover travel inspiration and plan your next adventure by browsing curated travel articles, destination guides, and bookable trips organized by region and city. Search for specific destinations, compare trip dates and prices, and explore popular cities to find the perfect getaway.
sevenrooms.com API
Search for available restaurant tables across any SevenRooms venue, view venue details and open dates, and complete reservations all in one place. Whether you're planning ahead or booking last-minute, you can check real-time availability and secure your table at thousands of restaurants on the SevenRooms platform.
delta.com API
Look up Delta Airlines flight schedules, check real-time flight status, and retrieve detailed trip information to plan your travel. Find your nearest airport and access the data you need to monitor flights and make booking decisions.
customs.gov.mv API
Check import/export duties, tariff classifications, and exchange rates for Maldives customs compliance, plus track vessel movements, company registrations, and declaration statuses. Get real-time data directly from the official customs portal to streamline your trade and logistics operations.
comedymothership.com API
Browse upcoming Comedy Mothership shows across different rooms, check real-time ticket availability, and get detailed information about Kill Tony events and seating options. Find venue details, FAQs, and track specific performances to plan your comedy night.
burningman.org API
Access comprehensive Burning Man information including Black Rock City event schedules, ticketing details, themed activities, playa events, volunteering opportunities, and mutant vehicle listings. Search global Burning Man events, stay updated with news and stories, and find preparation resources all in one place.
breckenridge.com API
Check real-time snow conditions, weather forecasts, lift operations, and trail status at Breckenridge Ski Resort to plan your day on the mountain. View live mountain cameras and get up-to-the-minute updates on slopes, lifts, and weather before you head out.
united.com API
Search United Airlines flights, check real-time flight status, and view detailed seat maps to plan your perfect trip. Compare fare options and use airport autocomplete to quickly find your departure and arrival cities.