Phrogg Posted July 11, 2017 Share Posted July 11, 2017 I'm running an ajax request against https://politicsandwar.com/api/tradeprice/resource=iron (for example) and its taking between 6-10 seconds to return about 300B of data. This has been consistent over the last week or so. I don't remember this being the case 6-8 month ago when I last had a need to interact with the API. The other API endpoints (including /api/nations) are working fine. Quote was important; now retired Link to comment Share on other sites More sharing options...
Administrators Alex Posted July 11, 2017 Administrators Share Posted July 11, 2017 That's because I have a delay on that script so that people can't use it to pull real time data and snag those super good trade offers (which are usually mistakes) immediately with scripts or bots. It's been this way for at least a few months if not 6 months or longer. 1 Quote Is there a bug? Report It | Not understanding game mechanics? Ask About It | Got a good idea? Suggest ItForums Rules | Game Link Link to comment Share on other sites More sharing options...
WISD0MTREE Posted July 11, 2017 Share Posted July 11, 2017 2 hours ago, Alex said: That's because I have a delay on that script so that people can't use it to pull real time data and snag those super good trade offers (which are usually mistakes) immediately with scripts or bots. It's been this way for at least a few months if not 6 months or longer. If that's the intention, could you remove the Captchas for deleting offers? Those take more than 6 to 10 seconds to complete. Quote Link to comment Share on other sites More sharing options...
seabasstion Posted July 13, 2017 Share Posted July 13, 2017 could we get an endpoint that has the prices of all the resources for legitimate purposes? something that updates maybe once a day so it cant be abused? Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.