Raw schema
{
"type": "object",
"properties": {
"origin": {
"type": "string",
"description": "Город или аэропорт: код IATA (MOW, LED, SVO) или название по-русски/по-английски"
},
"destination": {
"type": "string",
"description": "Город или аэропорт: код IATA (MOW, LED, SVO) или название по-русски/по-английски"
},
"depart_date": {
"type": "string",
"description": "Дата вылета YYYY-MM-DD"
},
"return_date": {
"type": "string",
"description": "Дата обратно YYYY-MM-DD (для билета туда-обратно)"
},
"adults": {
"type": "integer",
"minimum": 1,
"maximum": 9,
"default": 1,
"description": "Взрослых (12+)"
},
"children": {
"type": "integer",
"minimum": 0,
"maximum": 8,
"default": 0,
"description": "Детей 2–11 лет"
},
"infants": {
"type": "integer",
"minimum": 0,
"maximum": 4,
"default": 0,
"description": "Младенцев до 2 лет (без места)"
},
"trip_class": {
"type": "string",
"enum": [
"economy",
"business"
],
"default": "economy"
},
"direct_only": {
"type": "boolean",
"default": false,
"description": "Только прямые рейсы"
},
"baggage_only": {
"type": "boolean",
"default": false,
"description": "Только с багажом в цене"
},
"max_stops": {
"type": "integer",
"minimum": 0,
"maximum": 3,
"description": "Не больше N пересадок"
},
"no_self_transfer": {
"type": "boolean",
"default": false,
"description": "Без самостоятельных пересадок"
},
"no_night_transfer": {
"type": "boolean",
"default": false,
"description": "Без ночных пересадок"
},
"depart_after": {
"type": "string",
"description": "Вылет не раньше HH:MM (местное время)"
},
"depart_before": {
"type": "string",
"description": "Вылет не позже HH:MM (местное время)"
},
"max_price": {
"type": "integer",
"description": "Не дороже, ₽ за всех пассажиров"
},
"sort": {
"type": "string",
"enum": [
"price",
"duration"
],
"default": "price"
},
"limit": {
"type": "integer",
"minimum": 1,
"maximum": 20,
"default": 8,
"description": "Сколько вариантов вернуть"
}
},
"required": [
"origin",
"destination",
"depart_date"
]
}