What is a query?


#1

Say I did a Search function and had the howmany at 10. Would that be considered one query or 10 queries?

Also, say I searched all SWA codes, what exactly would it return?


#2

Up to 15 results are considered 1 query; 15 is also the default max result size. If you increase the max result size to 150, and do a query that returns 120 results, you’re billed for 8 queries.

It would return 15 SWA flights with the default max result size.


#3

Thank you for the response. So, just to clarify, say I did FlightInfo with a max query of 100 every hour for 100 hours (adds up to 10,000), would it cost about $3.06?


#4

100 results = 7 queries
Repeat 100 times, you are billed for 700 queries.
700 * $0.0079 (FlightInfo is a Class 2 query) = $5.52


#5

Last question, what is the maximum amount of results at a time that you’d recommend?


#6

As many as you’d like. Beyond a few thousand gets a bit silly. You may also notice some queries perform slowly with larger numbers of results.