AirShopping
AirShopping is used to get a list of available flights from multiple providers.
Request
- Flight — mandatory, see aFlight-search
- aPax — array of traveller
- typ — Adult adt, Child chd, Infant inf
- qty — quantity
- Search
- aln — array of airlinecodes
- tcl — travel (cabin) class, standard: "Y"
- Y: Economy,
- S: Premium Economy
- C: Business
- F: First
- non — nonstopp
- bag — baggage
- trf — tariff, string!
- A: natoaktiv,
- B: milus,
- F: natofamilie,
- U: natofamilieus,
- S: student,
- N: nonprofit,
- P: flightplus,
- (E: senior, M: mailoffer, C: Affiliate)
- cur — currency, standard: EUR
- lng — language, standard: de
- mode — Caching, standard: 'normal'
- normal — check if in cache and all worker are active
- nocache — request all workers
- cache — read 2nd cache. idc required
- usecache ???
- (idclist — read from workers cache) in development
- idc — idCache, each list of offers is stored for recall
- Output
- limit — standard: 10, false: no limit
- offset — starting from 0
- tag —
- atx — array of tax details (not for all flights)
- leg — show the stopps in detail with flightnumber and time
- debug — to get the workerAirShopping requests
- all — with provider infos, not for frontend! see aFlight-all
If mode='normal' and idc is given, then the query stored under idc is used, supplemented by search parameters, and sent to AirShopping. If one of the offers is not available or the price has changed, a new request will be sent to the provider.
{
"cur": "USD",
"lng": "en",
"Flight": {
"route": [
{
"dac": "FRA",
"aac": "LAX",
"ddt": "2025-09-13"
},
{
"dac": "LAX",
"aac": "FRA",
"ddt": "2025-09-27"
}
]
},
"aPax": [
{
"typ": "adt",
"qty": 1
},
{
"typ": "chd",
"qty": 1
}
],
"Search": {
"aln": ["BA", "DL"],
"tcl": "Y",
"non": true,
"trf": "ABFU"
},
"Output":{
"limit": false
}
}
Response
- name — "AirShopping"
- status
- idc — Cache Id
- isCache
- count — how many aFlight
- limit
- offset
- aFlights — array of aFlight-short
- aLookups — array of aLookups
Errors
collect hcds for subsequent commands
in aFlights — aFlight.route.legs.hcd
"route": [
{
"dac": "FRA", // departure airport code
"aac": "MIA", // arrival airport code
"legs": [
{
"hcd": "ZiXX!F!1470!0!0!0", // hash code
"ddt": "2025-09-13T08:50:00", // departure date/time
...
}
]
},
{
"dac": "MIA",
"aac": "FRA",
"legs": [
{
"hcd": "ZiXX!F!1470!0!1!0",
"ddt": "2025-09-27T12:27:00",
...
}
]
},
...