What is the rate limit of Toph?

Is there any rate limits in toph?

Sometimes pressing in the “Test Code” button multiple times gives a warning. I couldn’t find anything regarding rate limits in the Blogs not in the ToS.

  • Can I be logged in in two devices at the same time?
  • Is there any limits per ip?
  • Or is there limits per account?
1 Like

There are rate limits, but they are not documented.

Most of the rate limits enforced on Toph are not static numbers.

In the case of the “Test” button, a Toph account can run up to 10 tests per 5 minutes (burst or otherwise) without getting “flagged”.

  • Can I be logged in in two devices at the same time? Yes, regular accounts can log in from two different devices. Temporary accounts can log in from only one web browser at a time.

  • Is there any limits per ip? Or is there limits per account? The answer to this depends on the action or resource being rate limited. For example, the “Test” button is rate limited on a per-account basis.

1 Like

I think there is a rate limit of ~1000 requests / x minutes.

Can you disclose the value of x? :grin:

1 Like

Ah. There really is no “~1000 requests / x minutes”.

But if any visitor exhibits crawler-like behavior, they are added to a naughty list. Anyone on the naughty list is given different treatments.

Sometimes Toph will just delay all responses to those who are on the naughty list. Sometimes Toph will just straight up respond with 429 Too Many Requests.

If you are trying to build something based on Toph’s publicly available data, you can always reach out to us and let us know about your plans. We are happy to accommodate with efforts that help the programming contest community worldwide.

1 Like

Got it. I had a pretty old script that runs every 40 minutes to fetch some data.

I can technically optimize it to not hit the rate limit, but I guess I’ll just let you know if you can help. :3

Cuz I don’t wanna fall into the “naughty list” :grin: