Price Map API

Price Map: supported routes

Query

Method: GET.

URL: http://map.aviasales.ru/supported_directions.json?origin_iata=LED&one_way=false&locale=en

Query parameters

  • origin_iata – IATA code of the airport/city from which tickets are searched for. The IATA code is shown by uppercase letters, for example, MOW.
  • one_way – “true” for one-way tickets, “false” for round trips.
  • locale – Search language

Response

{
"origin":{
	"iata":"LED",
	"name":"St Petersburg",
	"country":"RU",
	"coordinates":[
		30.315785,
		59.939039
		]
	},
"directions":[
{
	"direct":false,
	"iata":"USM",
	"name":"Koh Samui",
	"country":"TH",
	"coordinates":[
		100.0628,
		9.555315
		]
	}
}

Response parameters

  • iata – IATA code of departure city.
  • name – Name of departure city.
  • country – Country letter code.
  • coordinates – Coordinates of departure city.
  • directions – Route information.
    • direct – Whether non-stop flights are available.
    • name – Name of destination city.
    • country – Destination country.
    • coordinates – Coordinates.

Price Map: prices

Query

Method: GET.

URL: http://map.aviasales.ru/prices.json?origin_iata=LED&period=2016-12-01:season&direct=true&one_way=false&no_visa=true&schengen=true&need_visa=true&locale=ru&min_trip_duration_in_days=13&max_trip_duration_in_days=15

Query parameters

  • origin_iata – IATA code for the point of departure. The IATA code is shown by uppercase letters, for example, MOW.
  • period – period of dates to search for.
  • direct – whether non-stop flights are available.
  • one_way – “true” for one-way tickets, “false” for round trips.
  • price – highest ticket price.
  • no_visa – payment not made with a Visa card.
  • schengen – whether the ticket can be changed.
  • need_visa – visa required (or not).
  • locale – search language.
  • min_trip_duration_in_days – shortest trip duration (in days).
  • max_trip_duration_in_days – longest trip duration (in days)

Response

[{
   "show_to_affiliates":false,
   "trip_class":0,
   "destination":"PSA",
   "depart_date":"2014-05-30",
   "return_date":"2014-06-12",
   "number_of_changes":0,
   "value":43785,
   "created_at": 1407716354,
   "ttl": 1407889154,
   "distance":2247,
   "actual":false
}]

Response parameters

  • show_to_affiliates – true: prices available to affiliates, false: price not available to affiliates.
  • trip_class – trip class (1 – business class, 0 – standard).
  • destination – IATA code for destination.
  • depart_date – departure date.
  • return_date – return date.
  • number_of_changes – number of stops.
  • value – flight cost.
  • created_at – time and date of query creating (in Unix timestamp format).
  • ttl (time-to-live) – time and date at which offer is available (in Unix timestamp format).
  • distance – distance between departure and arrival points.
  • actual – equals 0 or 1. 0 – price was found long ago and may be out of date. 1 – price was found recently and is current.

Was this article helpful?

Have more questions? Submit a request