What is the Trading Post rate limit?
DavidSev.6978:
Hi.
If I send a lot of queries to the TP then it gets blocked for a short while, what is the limit, or are there any guidelines on using such things?
I’m mostly using search.json with 250 id’s a go, and waiting 10s between queries. Is that OK?
I don’t want to be abusive, but I also don’t want to have to wait ages for all the prices to download, so a bit of guidance would be nice.
StevenL.3761:
I’m not an expert in these things, but I think they’d rather have you send 25 requests every second than 250 requests all at once every tenth second.
Healix.5819:
search.json returns cached buy order prices. If that’s all you wanted, simply use gw2spidy.
listings.json returns the actual prices.
If you’re trying to gather all the items using search.json, do a blank search and set the count to 0, which will dump everything.
Samuirai.4561:
I am fine with doing a request every ~5 seconds… By using search.json and a list if item ids every 10 second you should have no problems. Do you get “flooding error” or the 502 Proxy error?
DavidSev.6978:
When I just needed a few pages of items, 5s was fine. As the number of items I was getting grew I had to put it to 10s. I can’t remember exactly what the error was.
I’m now just using count=0, which gets me a lot more than I need but is a lot quicker.
It would be nice to get an official word on what is deemed acceptable though.