Searching multiple airlines


#1

Could I do something like “-idents DAL* AAL* MAS*” or “-idents DAL* -idents AAL*” to get results from multiple airlines?


#2

Not sure which query you’re using, but try -idents "DAL AAL MAS*"**


#3

I am using the Search query. I will try that.


#4

It doesn’t look like it worked. It only found the first thing that I put in.


#5

It should work. Be sure you are quoting the argument to -idents, using either double quotes or curly braces. For example, this works for me:


http://flightxml.flightaware.com/json/FlightXML2/Search?query=-idents%20{UAL*%20AAL*}


#6

Here is the query I have been making:


-idents {BAW* BER* CFE* CPA* ENY* ELY* FIN* HAL* IBE* JBU* LAN* NLY* MAS* JAL* JLJ* QFA* QTR* RPA* RJA* SBI* SKW* JST* TAM* THT* ETD* BEE* CHH*} -inAir 0

It only returns flights for CHH.


#7

That works for me. Make sure you’re encoding your request URLs properly if you’re using the JSON interface. If you’re using the SOAP interface, then you shouldn’t need to do anything special.


https://flightxml.flightaware.com/json/FlightXML2/Search?query=-idents%20{BAW*%20BER*%20CFE*%20CPA*%20ENY*%20ELY*%20FIN*%20HAL*%20IBE*%20JBU*%20LAN*%20NLY*%20MAS*%20JAL*%20JLJ*%20QFA*%20QTR*%20RPA*%20RJA*%20SBI*%20SKW*%20JST*%20TAM*%20THT*%20ETD*%20BEE*%20CHH*}%20-inAir%200