Price calendar API

Price calendar

Get lowest prices for flights on the indicated departure dates for the departure/destination cities.

Query

Method: GET.

URL: http://min-prices.aviasales.ru/calendar_preload

Query parameters

  • origin – IATA code for the point of departure. IATA code is shown by uppercase letters, for example MOW.
  • destination – IATA code for the destination. IATA code is shown by uppercase letters, for example MOW.
  • depart_date – Departure date in the format YYYY-MM-DD.
  • one_way – Search for one-way tickets (true or false).

Example: http://min-prices.aviasales.ru/calendar_preload?origin=BCN&destination=MOW&depart_date=2014-12-01&one_way=false

{   
   "best_prices":[],
   "current_depart_date_prices":[]
}

Response

  • best_prices – Contains an array of the lowest prices for various departure days.
  • current_depart_date_prices – Contains an array of the lowest prices that match the specified departure date.

Both arrays contain parameters for the found price in the following format:

{
   "actual": true,
   "depart_date": "2014-10-04",
   "destination": "HKT",
   "distance": 8015,
   "found_at": "2014-09-09T14:16:07+04:00",
   "number_of_changes": 2,
   "origin": "LED",
   "return_date": "2014-10-15",
   "show_to_affiliates": false,
   "trip_class": 0,
   "value": 26197
}
  • value – Price in rubles.
  • depart_date – Departure date, in YYYY-MM-DD format, that corresponds to the price.
  • return_date – Return date, in YYYY-MM-DD format, that corresponds to the price.
  • number_of_changes – Number of stops in the flight with the lowest price.
Have more questions? Submit a request