Personal Car Finance - Flights - Pacotes Reveillon Salvador - Loans - Xecuter 3 Mod Chip

PDA

View Full Version : Need Developer To Fix Script For Yahoo Answer API


DirectoryDude
Apr 23rd 2008, 5:49 pm
I have a site that is using the Yahoo Answer API and as we all know the daily rate limit from that API is limited to 5000.

Currently I hit 200 per day max (excluding any search engines that indexes my site) and yet I frequently get the 403 error from Yahoo indicating the limit has been reached: Warning: file_get_contents(http://answers.yahooapis.com/AnswersService/V1/questionSearch?appid=myIDQ&query=whateverIsearchFor&start=0&results=15) [function.file-get-contents]: failed to open stream: HTTP request failed! HTTP/1.0 403 Forbidden in /home/content/d/o/i/myaccountnamehere/html/domainname/myPHPapp/myapp.controller.php on line blahblah

I have shared hosting on goDaddy and recently upgraded to a dedicated IP thinking it would solve the problem but it did not.

I refuse to believe I am making 5000 calls to that API per day even including search engines that indexes the site so please help me pinpoint the problem and maybe suggest a solution ?

Do I really have to cache all the pages / use proxy / rss or do you have other suggestions ?

bobb1589
Apr 23rd 2008, 6:23 pm
It is very possible that you could be making 5000 calls. Are you saying you have 200 visitors a day or 200 pageviews. You should probably look at how many pageviews a day you are getting and look and see if possibly that is reaching 5000.

DirectoryDude
Apr 23rd 2008, 7:29 pm
I have maybe 200 pageviews per day max. I suspect it has to do with my host having multiple accounts calling the API from same server IP...not sure though

ludacwisp
Apr 30th 2008, 7:26 am
Yahoo has a sample caching function on their site. Its only about 5-10 lines, very simple.

nabz245
Apr 30th 2008, 8:05 am
Could you not have more than one key then make it rotate? - Probably against their TOS though.

ludacwisp
Apr 30th 2008, 4:44 pm
No, it blocks the IP address and all keys attempting incoming from that address. It does a good job of rate limiting you too. Hard to get around. Theres a place for you to apply for unrestricted API usage, but you probably need a site with a good reason for it.