Cheap Flight Prices API: Airfare Calendar, Aviasales Data avatar

Cheap Flight Prices API: Airfare Calendar, Aviasales Data

Pricing

from $8.00 / 1,000 cached flight prices

Go to Apify Store
Cheap Flight Prices API: Airfare Calendar, Aviasales Data

Cheap Flight Prices API: Airfare Calendar, Aviasales Data

Cheap flight prices and airfare trends from the Aviasales Data API: cheapest tickets for dates, month and week price calendars, non-stop fares, special offers, popular routes and destinations, plus IATA airport, city and airline data. Bring your own key.

Pricing

from $8.00 / 1,000 cached flight prices

Rating

0.0

(0)

Developer

Nabeel Hassan

Nabeel Hassan

Maintained by Community

Actor stats

0

Bookmarked

2

Total users

1

Monthly active users

4 days ago

Last modified

Share

Get cheap flight prices, airfare calendars and popular routes from the Aviasales Data API with your own Travelpayouts token, as clean rows you can export to CSV, Excel or JSON.

The Aviasales Data API, part of the Travelpayouts travel affiliate network, serves flight prices that Aviasales users found in their recent searches, cached for up to 7 days. This actor wraps its documented read routes: cheapest tickets for dates, grouped prices, latest prices, month and week price calendars, nearby alternative airports, price range search, special offers, popular departure cities, 0 to 2 stop and non-stop fares, daily price trends and popular destinations, plus the public IATA reference files of countries, cities, airports and airlines. Use it for flight deal sites, travel blogs and static route pages, fare alerts, airfare trend analysis, price monitoring and travel market research. Bring your own API key.

BYOK, not live tested: every route, parameter and response field comes from the Travelpayouts help centre article "Aviasales Data API" and the developer reference, and every price route was probed on 2026-10-30 with an invalid token. The actor has not been run against a live token.

What it does

  • Cheapest tickets for dates (v3 prices_for_dates): the cheapest fares found in the last 48 hours for a route and a departure and return month or day, one way or round trip, non-stop or with stops, sorted by price or route popularity. Up to 1,000 rows a page.
  • Grouped prices (v3 grouped_prices): the cheapest ticket for each departure day or each month, with trip length limits.
  • Latest prices (v3 get_latest_prices): prices found for a year, month or day, grouped by dates or destinations, by cabin class and length of stay, for one route or every route.
  • Month and week price calendars (v2 month-matrix, week-matrix): a price for each day of a month, or for the 7 days around your departure and return dates.
  • Nearby alternative airports (v2 nearest-places-matrix): prices between the cities closest to your origin and destination.
  • Price range search (v3 search_by_price_range): tickets between a minimum and maximum price.
  • Special offers (v3 get_special_offers): abnormally low fares on a route, optionally for one airline.
  • Popular directions (v3 get_popular_directions): the cheapest tickets to a destination from the departure cities that search it most.
  • Cheapest and non-stop tickets, price trends, popular destinations (v1 prices/cheap, prices/direct, prices/calendar, city-directions).
  • IATA reference data: countries, cities with coordinates and time zones, airports and airlines, in ten languages, filtered by code, country or flightable status. No token needed.
  • Ready ticket links: each ticket row carries the API's relative link and a full aviasales.com ticketUrl, with your affiliate marker added when you set one.
  • Pay only for results: empty answers and refused lookups become a free row that says why.

How to get your own token

  1. Join the free Travelpayouts affiliate network at travelpayouts.com.
  2. Open your profile and copy the token from the API token section (app.travelpayouts.com/profile/api-token).
  3. Paste it into the Travelpayouts API token field of this actor, or set the DATA_API_KEY environment secret. It is sent only in the X-Access-Token header.

Input

FieldModesNotes
modeallone of the 17 modes below
origins, destinationsprice modesIATA city or airport codes; every origin pairs with every destination, up to 100 routes
departureDate, returnDatedate based modesYYYY-MM or YYYY-MM-DD (v1 routes take months)
oneWay, direct, sorting, uniqueRoutestickets for dates, price range, latest pricesAPI filters
groupBy, periodType, tripClass, tripDuration, minTripDuration, maxTripDurationgrouped and latest prices, month calendar
showToAffiliateslatest prices and the v2 matricespartner marker prices only (API default) or all prices
nearbyVariants, flexibilitynearby airports1 to 20 variants, 0 to 7 days
calendarType, stayLengthprice trendsdeparture or return day, length of stay
minPrice, maxPriceprice rangerequired for that mode
airlinespecial offersIATA airline code
currency, market, localeprice modesdefault currency usd
markerticket modesyour affiliate marker, added to ticketUrl
dataLanguage, iataCodes, countryCodes, flightableOnlyreference modesfilters applied before charging
maxResultsallmost rows returned and charged, default 100
requestsPerMinuteallpacing, default 60
apiKeyprice modesyour Travelpayouts token, stored as a secret
ModeRoute
pricesForDatesGET /aviasales/v3/prices_for_dates
groupedPricesGET /aviasales/v3/grouped_prices
latestPricesGET /aviasales/v3/get_latest_prices
monthMatrixGET /v2/prices/month-matrix
weekMatrixGET /v2/prices/week-matrix
nearestPlacesGET /v2/prices/nearest-places-matrix
priceRangeGET /aviasales/v3/search_by_price_range
specialOffersGET /aviasales/v3/get_special_offers
popularDirectionsGET /aviasales/v3/get_popular_directions
cheapPricesGET /v1/prices/cheap
directPricesGET /v1/prices/direct
calendarPricesGET /v1/prices/calendar
cityDirectionsGET /v1/city-directions
countries, cities, airports, airlinesGET /data/{language}/{file}.json

Example input:

{
"mode": "pricesForDates",
"origins": ["MAD"],
"destinations": ["BCN"],
"departureDate": "2026-12",
"returnDate": "2027-01",
"oneWay": "false",
"currency": "usd",
"marker": "123456"
}

Output

One row per price or record. Illustrative row (values from the documented response example, trimmed; not a live response):

{
"mode": "pricesForDates",
"recordType": "flightPrice",
"query": "MAD-BCN",
"found": true,
"origin": "MAD",
"destination": "BCN",
"originAirport": "MAD",
"destinationAirport": "BCN",
"departureAt": "2023-07-28T07:00:00+02:00",
"returnAt": "2023-08-26T14:30:00+02:00",
"price": 5929,
"currency": "usd",
"airline": "IB",
"flightNumber": "3002",
"transfers": 0,
"returnTransfers": 0,
"durationMinutes": 165,
"durationToMinutes": 80,
"durationBackMinutes": 85,
"link": "/search/MAD2807BCN26081?t=IB1690520400...&expected_price_currency=usd",
"ticketUrl": "https://www.aviasales.com/search/MAD2807BCN26081?t=IB1690520400...&expected_price_currency=usd&marker=123456",
"record": { "...": "the full API record" }
}

Calendar and matrix rows add foundAt, distanceKm, tripClass, actual and groupKey (the day or month of a grouped price, or the offer's place in a v1 result). Special offers add originName, destinationName and airlineName. Reference rows fill code, name, countryCode, cityCode, timeZone, latitude, longitude and flightable.

Pricing

Pay per event, only for rows that carry a real record:

EventPrice
Cached flight price (ticket, calendar day, offer, destination or departure city)$0.008
Country, city, airport or airline record$0.005

The Aviasales Data API itself is free for Travelpayouts partners, within its per minute rate limits.

FAQ

What is the Aviasales Data API?

It is the free flight price API of Travelpayouts, the travel affiliate network of the Aviasales group. It returns prices that Aviasales users found in recent searches, cached for up to 7 days, so it suits static pages, price calendars and deal lists rather than live booking.

Do I need my own Travelpayouts token?

Yes, for every price mode. This actor is bring your own key: it calls the API with your token and under your Travelpayouts account. Without a token a price mode ends straight away with a message saying how to get one, and nothing is charged. The countries, cities, airports and airlines modes are public files and need no token.

Are these live flight prices?

No. They are cached prices from real Aviasales searches, usually from the last 48 hours for the v3 routes. Check expiresAt or foundAt, and confirm the fare on Aviasales through ticketUrl before relying on it. The real time Flight Search API needs a separate approval from Travelpayouts and is not wrapped.

Why did a route return no prices?

The cache only holds routes and dates people actually searched, per market. Try a different month, leave the return date empty, set the market that matches your audience (us, gb, de), or widen the route to a city code such as LON instead of an airport code.

How does the affiliate marker work?

Set your Travelpayouts marker and every ticket row gets a ticketUrl on aviasales.com with marker= added, while the raw link stays as the API returned it. For tracked short links, paste the ticket URL into the link generator in your Travelpayouts account.

Which currencies and markets are supported?

Any currency code the API accepts, such as usd, eur, gbp or rub (the API default), and any Aviasales market code. The market decides which site's cache is read; by default it follows the origin.

How many requests does a run make?

One per route for most modes, plus one per page for the paged modes. The default pacing of 60 a minute stays under every documented route limit, and the Travelpayouts affiliate terms ask partners to keep load modest and cache results, which a scheduled run with a dataset does.

Where do IATA codes come from?

From the countries, cities, airports and airlines modes of this actor, which read the same public files the API documentation links to.

Keyword map

cheap flight prices API, airfare API, flight price calendar, Aviasales API, Travelpayouts API, flight data API, cheapest flights by month, flight price trends, low fare calendar, non-stop flights API, flight deals API, special offers airfare, popular flight routes, IATA airport codes, airline codes database, travel affiliate API, flight price monitoring.

Routes and verification

Every price route was probed twice on 2026-10-30 with a realistic length invalid token: prices_for_dates, month-matrix, prices/cheap, city-directions and get_popular_directions answered 401 Unauthorized, while the invented routes /aviasales/v3/flight_prices_list and /v9/prices/cheapest answered 404 404 page not found. The actor ends cleanly on a 401 or 403, reads a 404 page not found as a bug, and reads a 200 with success false as a refusal of that one route. The /data reference files answered 200 without a token. The deprecated v1 airline-directions, v1 prices/monthly and v2 prices/latest routes and the real time Flight Search API are not wrapped. The calendar route's date parameter is sent as depart_date, as in both documented request examples (one parameter list spells it departure_date).

Licensing and data use

This actor works only with your own Travelpayouts token, and the Travelpayouts Affiliate Agreement applies to how you use the data. The agreement allows integrating the API tools into your projects, recommends caching results for about 24 hours, and forbids parasitic load. Keep your marker on links you publish. This actor is not affiliated with or endorsed by Travelpayouts or Aviasales.