Demonic Shadow.8357 Posted July 17, 2018 Share Posted July 17, 2018 Hi, I'm pretty new with GW2 API and I really want to build some apps with the API. (for fun and self-use, not for sell or anything) As a test I have written a little program to get the achievements one by one (async), and got after a while an error saying - "too many requests", which makes sense. I only wish to know what is the limit? so basically how many requests per "x" (minute/second/..) so I will be able to avoid this issue. Also - if someone figured out the optimal ratio between getting several ids in one request to amount of requests, please notify me :) (For example - the ideal ratio could be achieved by combining 10 ids in 1 request or something like that) Link to comment Share on other sites More sharing options...
Archomeda.6472 Posted July 17, 2018 Share Posted July 17, 2018 The limit is returned via the header `X-Rate-Limit-Limit`. That's per minute. Regarding combining multiple requests into one, take a look at [bulk expansion and paging on the wiki](https://wiki.guildwars2.com/wiki/API:2#Accessing_resources). Link to comment Share on other sites More sharing options...
Demonic Shadow.8357 Posted July 17, 2018 Author Share Posted July 17, 2018 Thank you very much! Short and helpful. Can be closed (if that is done here in these forums) Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now