Discover/Com API
live

Com 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.

Endpoint health
verified 4d ago
autocomplete
search_flights
get_home_offers
3/3 passing latest checkself-healing
Endpoints
3
Updated
26d ago

What is the Com 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.

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.
Call it over HTTPgrab 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'
Python SDK · recommended

Typed, relational, agent-ready

A generated client with real types, enums, and the links between objects — the structure a flat JSON response can't carry. Autocompletes in your editor and reads cleanly to coding agents.

  • Fully typed · autocompletes
  • Objects link to objects
  • Typed errors & pagination

Typed Python client. Set up the SDK in your uv project, then pull this API’s typed client:

uv add parse-sdk
uv run parse init
uv run parse add --marketplace despegar-com-ar-api

uv run parse add --marketplace pulls a pinned snapshot of this canonical API — it won’t change underneath you. To customize it, subscribe and swap to your own copy.

"""Despegar.com.ar flight search workflow: autocomplete, browse offers, search flights."""
from parse_apis.despegar_com_ar_api import Despegar, FlightSearchFailed

client = Despegar()

# Resolve a city name to IATA codes via autocomplete
airport = client.airportsuggestions.search(query="miami", limit=3).first()
if airport:
    print(airport.display, airport.iata, airport.latitude, airport.longitude)

# Browse current travel offers (packages, flights, hotels)
for offer in client.traveloffers.list(limit=3):
    print(offer.offer_type, offer.main_text, offer.section)

# Search flights BUE → MIA with typed error handling
try:
    flight = client.flights.search(
        origin="BUE",
        destination="MIA",
        departure_date="2026-08-01",
        return_date="2026-08-10",
        adults=1,
        limit=1,
    ).first()
    if flight:
        print(flight.airlines[0].name, flight.offer_card_type)
        for itin in flight.itineraries:
            seg = itin.segments[0]
            print(itin.flight_type, seg.from_, seg.to, seg.departure_datetime)
except FlightSearchFailed as exc:
    print(f"Flight search failed for {exc.origin} → {exc.destination}: {exc}")

print("exercised: airportsuggestions.search / traveloffers.list / flights.search")
All endpoints · 3 totalmissing one? ·

Returns autocomplete suggestions for airports and cities based on a search query. Each suggestion includes the IATA code, geographic coordinates, parent geography (continent, country, city), and a display name in Spanish with HTML highlights on the matched portion. Use to resolve free-text city/airport input into an IATA code suitable for search_flights.

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"
  }
}

About the Com API

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.

Reliability & maintenanceVerified

The Com API is a managed, monitored endpoint for despegar.com.ar — not a raw scraper you maintain. Every endpoint is automatically health-checked on a schedule, and when despegar.com.ar changes and a check fails, the API is automatically queued for repair and re-verified. It is built to keep working as the site underneath it changes.

This isn't an official despegar.com.ar API — it's an independent, maintained REST wrapper over public data. Where the source has no official API (or only a limited one), Parse gives you a stable contract over a source that never promised one, and keeps it current. Need a new endpoint or field? You can revise it yourself in plain English and the agent rebuilds it against the live site in minutes — contributing the change back to the shared API is free.

Last verified
4d ago
Latest check
3/3 endpoints passing
Maintenance
Monitored & self-healing
Will this API break when the source site changes?+
It's built not to. Every endpoint is health-checked on a schedule with automated test probes. When the source site changes and a check fails, the API is automatically queued for repair and re-verified — that's the self-healing layer. Each API page shows when its endpoints were last verified. And because marketplace APIs are shared, any fix reaches everyone using it.
Is this an official API from the source site?+
No — Parse APIs are independent, managed REST wrappers over publicly available data. That is the point: where a site has no official API (or only a limited one), Parse gives you a maintained, monitored endpoint for that data and keeps it working as the site changes — so you get a stable contract over a source that never promised one.
Can I fix or extend this API myself if I need a new endpoint or field?+
Yes — and you don't have to wait on us. This API was generated by the Parse agent, which stays attached. Describe the change in plain English ("add an endpoint that returns reviews", "fix the price field") in the revise box on the API page or via the revise_api MCP tool, and the agent rebuilds it against the live site in minutes. Contributing the change back to the public API is free.
What happens if I call an endpoint that has an issue?+
Errors are machine-readable: a bad call returns a clean status with the list of available endpoints and a repair hint, so an agent (or you) can recover or trigger a fix instead of failing silently. Confirmed failures feed the automatic repair queue.
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,000100 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 →
jetsmart.com API
Search JetSMART flights across available routes and airports, check real-time schedules and flight status, and discover low fares with an interactive calendar. Plan your trips efficiently by browsing all airport and route options without needing authentication.
justfly.com API
Search flights and get airport suggestions to find the best deals on JustFly.com, with instant access to flight details and trending destinations. Discover discounted airfare offers and compare flight options all in one place.
skyscanner.co.in API
Search for flights worldwide and compare prices with autocomplete suggestions for airports and destinations. View price calendars to find the cheapest travel dates and explore real-time flight availability and pricing.
skyairline.com API
Search for flights across SKY Airline routes, explore available airports and travel options, and discover current promotions and brand offerings. Plan your trip efficiently by browsing the airline's complete route network and accessing exclusive deals in one place.
skyscanner.com API
Search for flights and compare prices across multiple booking agents, while exploring airports and cities to plan your trip. View daily and monthly price calendars to find the best deals for your travel dates.
hotels.com API
Search for hotels across millions of properties, view room availability and pricing, and get detailed information about accommodations at specific destinations. Get location suggestions and discover popular travel spots to help plan your next getaway.
skyscanner.de API
Search for flights across multiple airlines, view real-time pricing, and discover the cheapest travel dates with daily and monthly price calendars. Autocomplete destination suggestions to quickly find and compare flight options for your next trip.
skiplagged.com API
Search for flights across airlines including hidden-city ticketing options, and look up airport information by name or code to find the best travel deals. Access Skiplagged's flight inventory and routing data to discover cheaper itineraries and alternative airport combinations.