# Query/response limit

**URL:** <https://discussions.flightaware.com/t/query-response-limit/80831>\
**Category:** AeroAPI\
**Created:** [January 3, 2022, 3:38am UTC](https://discussions.flightaware.com/t/query-response-limit/80831 "2022-01-03T03:38:20Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![bneckfootball38](https://sea1.discourse-cdn.com/flex019/user_avatar/discussions.flightaware.com/bneckfootball38/32/92461_2.png) [@bneckfootball38](https://discussions.flightaware.com/u/bneckfootball38)\
**Post date:** [January 3, 2022, 3:38am UTC](https://discussions.flightaware.com/t/query-response-limit/80831/1 "2022-01-03T03:38:20Z")

</div>

BLUF: Is the AeroAPI definition of “query” just API calls, or API calls + response pages/sets?

I’m currently using the personal tier of AeroAPI, which limits users to 10 queries/minute. I’m requesting SkyWest departures from Denver using “/airports/KDEN/flights/departures”. If I set max\_pages to more than 8, I get a “429 - Too many requests” response. Are the number of records/response pages I can receive from an API call capped by the 10 queries/minute limit? I’m not making more than 1 API call per minute, which leads me to believe that the response pages/records returned by the API count towards the query limit, however I can’t find any documentation that covers this. Thanks in advance for any help!

---

<div class="post-metadata">

**Author:** ![Fischer6385](https://sea1.discourse-cdn.com/flex019/user_avatar/discussions.flightaware.com/fischer6385/32/114966_2.png) [@Fischer6385](https://discussions.flightaware.com/u/Fischer6385)\
**Post date:** [January 4, 2022, 7:46pm UTC](https://discussions.flightaware.com/t/query-response-limit/80831/2 "2022-01-04T19:46:28Z")

</div>

Looking at how the pricing structure is for AeroAPI v4 will provide a clearer look as to how the “pages” are broken down, but to answer your question yes a query would be a single page for calls that can request multiple pages.

> **[AeroAPI® Flight Tracking and Flight Status API - FlightAware](https://flightaware.com/commercial/aeroapi/)**
>
> Best Flight Tracker: Live Tracking Maps, Flight Status, and Airport Delays for airline flights, private/GA flights, and airports.

Taylor Fischer -  
Commercial Support

Toll Free: +1.800.713.8570  
Support Line:+1.713.588.6514

Eleven Greenway Plaza, Suite 2900 - Houston, Texas - 77046  
FlightAware

–  
Learn about FlightAware Global and Premium Accounts: [Commercial Services - FlightAware](http://flightaware.com/commercial/)

---

<div class="post-metadata">

**Author:** ![bneckfootball38](https://sea1.discourse-cdn.com/flex019/user_avatar/discussions.flightaware.com/bneckfootball38/32/92461_2.png) [@bneckfootball38](https://discussions.flightaware.com/u/bneckfootball38)\
**Post date:** [January 5, 2022, 2:52am UTC](https://discussions.flightaware.com/t/query-response-limit/80831/3 "2022-01-05T02:52:09Z")

</div>

Thanks for the quick response. Just so I understand, if my API call returns 5 result sets, that counts as 6 queries (in terms of query rate limit)?

---

<div class="post-metadata">

**Author:** ![bauergda](https://sea1.discourse-cdn.com/flex019/user_avatar/discussions.flightaware.com/bauergda/32/94324_2.png) [@bauergda](https://discussions.flightaware.com/u/bauergda)\
**Post date:** [March 5, 2022, 1:34pm UTC](https://discussions.flightaware.com/t/query-response-limit/80831/4 "2022-03-05T13:34:19Z")

</div>

I am using the Personal Tier and having the same issue when requesting departures and arrivals for specific airports. Has the your theory of original call + response page/record count = query count been confirmed?

On a side note, based on my API Usage graph, a user is charged for the “429 - Too many requests” response. Just curious, do the original call and the 429 response add to the query count as well?

---

<div class="post-metadata">

**Author:** ![nasageek](https://sea1.discourse-cdn.com/flex019/user_avatar/discussions.flightaware.com/nasageek/32/122208_2.png) [@nasageek](https://discussions.flightaware.com/u/nasageek)\
**Post date:** [March 7, 2022, 6:45am UTC](https://discussions.flightaware.com/t/query-response-limit/80831/5 "2022-03-07T06:45:46Z")

</div>

@bauergda @bneckfootball38

Rate limiting is generally performed at the result set level. Therefore, a query that would return more than 10 result sets is not possible on the Personal tier. To answer the specific question from @bneckfootball38, a call returning 5 result sets consumes 5 quota. A call with 0 results still consumes 1 quota, as does any 4xx error response besides a 429.

Some more examples:  
0 results → 1 total quota consumed  
15 (individual) results → 1 quota  
16 results → 2 quota  
404 error → 1 quota  
400 error → 1 quota  
429 error → 0 quota

To answer the question from @bauergda about billing: we’ve recently adjusted our billing approach to not bill for any 4xx errors (besides 404s). This is currently not properly reflected on the usage table which we intend to address soon.
