Price calendar API

Price calendar

Get the 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. The IATA code is shown by uppercase letters, for example, MOW.
  • destination – IATA code for the destination. The 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.

Was this article helpful?

Have more questions? Submit a request