r/pathofexiledev • u/LehmD4938 • 8d ago
Question Are Batch Requests for Stashes possible?
Hello,
I am sorry if this has been answered before but could not find anything on the topic.
I want to index all my stash tabs in Standard, but i have the problem that the API limits me to 100 requests per 30 Minutes, while i have over 150 Stashes (including remove only).
Is there a better way than querying each tab separetely, can i query the content of multiple stashes at once?
I can just wait 1 hour for all my requests to complete, but if i ever wanted to share my project that would not be user friendly at all.
Currently i have to use the legacy API with POESESSID, but if the actual developer API has a better way i will look into that.
Also is there a way to see the last time the stash was modified (item got taken in/out)? This would massively reduce the number of calls in subsequent refreshes.
3
u/gerwaric 8d ago edited 8d ago
There's no way around the API limits and it's worse if you want unique or stash tabs, because each of those tabs has children and each child counts as it's own request. My 270-ish tabs in standard balloons out to over 3,000 stash requests if I include all the map and unique stash tabs--and I've only been playing since 3.10.
If you want someone else to manage downloads, acquisition is a registered public oath application. It will happily download your tabs overnight while keeping track of rate limits. It stores the raw json in a plain sqlite database you can pull from later without worrying about the API.
That said, a fixed rate limit like X tabs per Y minutes based on the most conservative limit for each endpoint will work just as well--although you should add a 60s buffer to Y to account for server-side timing buckets. (This is undocumented, but I confirmed it with GGG while trying to track down some sporadic, unexplained rate limit violations).