Why does going over a minute's usage limit disable the feature for the remainder of the day?

  • 1
  • Question
  • Updated 6 years ago
I received an email telling me that I exceeded the number of calls to hourly forecasts by 4 calls in a minute. As a result, the email informed me that the feature was being disabled for the remainder of the day.

Is there a way I can determine whether I'll exceed my usage before I make a call?

And, more to the point, I'd like to make hourly forecast calls at an average rate of 50-100 per hour but the min price for that is $150 / month (too expensive for just 2 users). However spikes might result in more than 10 calls per minute and so I seem to be stuck.
Photo of qbit3

qbit3

  • 2 Posts
  • 0 Reply Likes

Posted 7 years ago

  • 1
Photo of Brendan Hayes

Brendan Hayes, Official Rep

  • 962 Posts
  • 123 Reply Likes
It sounds like you're at the Developer level, so the upper limit is 10 calls within a minute. If you're having trouble with that number, add a pause to your code to space out the requests. If you add your own counter to your calls you could cut it off at 9 within a minute. We don't have a system for tracking your live request tally to know when you're about to go over.
Photo of Ronald de Vries

Ronald de Vries

  • 4 Posts
  • 0 Reply Likes
I have the same problem. Because the weather queries has to be server side and the latitude and longitude is clientside, and refreshed a lot every time the coordinated are corrected, there are a lot of weather queries in a minute.
And because it is a new ajax call I can not set a pause or other timer on it. All variables are cleared on every call.

Solution:
1. I would have that control if it could run client-side.
2. set a 10 queries max limit in one minute.
Photo of Brendan Hayes

Brendan Hayes, Official Rep

  • 962 Posts
  • 123 Reply Likes
You can combine features on the URL, so maybe you could benefit from putting several on at the same time, like /geolookup/conditions/forecast/
Photo of Ronald de Vries

Ronald de Vries

  • 4 Posts
  • 0 Reply Likes
Sorry I don't understand what you mean? Do you mean that I have to combines features so it will take more time to get a result back so there will not be a lot of calls at the same time?