Check if YQL limits are reached?

Is there a way (other than adding special code) to check if my application has exceeded the valid YQL limits? (Not sure if in the case of the application limit or the IP address limit in my case) I assume that all requests will not succeed after the limit is reached, but I would like to be active in adding measures so that this does not happen.

I use YQL in a critical piece of the application, and since the request is issued every few seconds, I suspect that I can get close to the limit.

+6
yql
source share
2 answers

Unfortunately, error code 999 also returns in other situations, so it is not a reliable indicator of reaching the hourly limit of 10,000.

Sample response from Yahoo / YQL:

HTTP/1.1 999 Unable to process request at this time -- error 999 Date: Sun, 07 Nov 2010 13:46:10 GMT Expires: Thu, 01 Jan 1970 22:00:00 GMT Cache-Control: no-cache, private Cache-Control: no-store Pragma: no-cache Vary: Accept-Encoding Content-Type: text/html;charset=UTF-8 Age: 0 Transfer-Encoding: chunked Connection: keep-alive Server: YTS/1.17.21 

I think it would be great if YQL could return the header field with the remaining YQL calls in an hour, like Twitter does.

Relevant parts of the Twitter API HTTP response header:

 HTTP/1.1 200 OK Date: Sun, 07 Nov 2010 13:52:18 GMT X-RateLimit-Limit: 150 X-RateLimit-Remaining: 147 X-RateLimit-Class: api X-Revision: DEV X-RateLimit-Reset: 1289141505 
+4
source share

If you exceed the hourly discount of 10,000 hits, you will receive a return error with code 999 - write your code to avoid blocking.

+3
source share

All Articles