What is the Trading Post rate limit?

What is the Trading Post rate limit?

in API Development

Posted by: DavidSev.6978

DavidSev.6978

Q:

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.

What is the Trading Post rate limit?

in API Development

Posted by: StevenL.3761

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.

What is the Trading Post rate limit?

in API Development

Posted by: Healix.5819

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.

What is the Trading Post rate limit?

in API Development

Posted by: Samuirai.4561

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?

What is the Trading Post rate limit?

in API Development

Posted by: DavidSev.6978

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.