Would I get in trouble if I made a large amount of API calls to torn using a script?
I've noticed in the documentation that API calls to torn are limited to 100 per minute per key. So, just wondering if it's safe to do like 50,000 API calls over the necessary period of time.
I might even be planning to have multiple people doing a bunch of requests at the same time. Would that break the server or something.
If you don't go over the limit of 100 calls per minute you'll be fine. If you go over that limit you'll be temporarily banned from accessing the API. It would definitely not break the server ^^
Question is what you needing 50,000 requests for ? data mining the whole of torn?
the temporary ban for violating >100 calls a minute is 10 minutes where your API requests will return an error, something like "Too many requests".
To be safe, limit calls to 95 per minute and run the jobs on a time delay. That should allow you enough room for error in case anything happens. Good luck with the data acquirement.
If you have enough users for the script then you will probably be okay. I would keep the limit to either 30 (if u have enough users) or at maximum 60 requests as people will be using other scripts also.
Also be sure to notify your users that they are making so many requests for your "database?".
yeah i keep getting the "too many requests" response even though I'm making only ~80 requests per minute. 60 is probably better.
You probably have other applications/extension that use the API like Doctorn.
i also had to reduce requests per minute. It would be nice to know if they officially reduced the limit or not so people know.
yeah patch notes released today says reduced to 60 per minute.
Don't pull a McNeo - if you're expecting to make a large amount of calls (20+) add a sleep timer between each calls to reduce load on the servers. example, for up to 40 calls per minute, add a 0.5 - 1 sec sleep timer.
Things like up to 10, it'll be more efficient to do it all in one go.
Honestly, anything that requires 50,000 API calls sounds like you either shouldn't be doing it, or need to seriously rethink what you are trying to accomplish and how to get there.
Agreed - 100 calls per half hour go a long way.
He's the Torn NSA