I was reading "https://umod.org/community/rust/24747-api-to-get-plugin-and-game-update-info" and i saw that wulf said that the rate limit is pretty low for unauthorized users.
I was wondering why there is a rate limit and if theres a possiblity to bypass it. im trying to make a script that checks plugin updates but i can only request 1 plugin becuase i get error:429(too many requests)
API rate limit
The rate limit is there to prevent abuse. The rate limit is provided in the headers, which can be used to time your requests.
Thank you for the answer but i cant seem to find the rate limit. Do you mean the headers in the plugin(i.e : "https://umod.org/plugins/stack-size-controller") or after adding "/latest.json"
It'd show in the HTTP headers for any page you request.
Thank you!
I cant really make this script becuase the rate limit is too much. I have about 20 plugins and it would take 20 minutes to go through the script :(
The rate limit is not one request per minute.
Thats what happend everytime i requested, i had to wait 60 seconds between all my requests
Merged post
This is what im getting from the header:
Date: Sun, 06 Mar 2022 21:05:39 GMT
Transfer-Encoding: chunked
Connection: keep-alive
Cache-Control: no-cache, private
Access-Control-Expose-Headers: Retry-After, X-Retry-After
X-RateLimit-Limit: 1
X-RateLimit-Remaining: 0
Set-Cookie: iremovedthisbecuasemaybeitssecret; expires=Sun, 06-Mar-2022 23:05:39 GMT; Max-Age=7200; path=/; domain=.umod.org; secure, umod_session=iremovedthisbecuasemaybeitssecret; expires=Sun, 06-Mar-2022 23:05:39 GMT; Max-Age=7200; path=/; domain=.umod.org; secure; httponly
X-Frame-Options: SAMEORIGIN
X-XSS-Protection: 1; mode=block
X-Content-Type-Options: nosniff
Permissions-Policy: interest-cohort=()
CF-Cache-Status: DYNAMIC
Expect-CT: max-age=604800, report-uri="https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct"
Report-To: {"endpoints":[{"url":"iremovedthisbecuasemaybeitssecret"}],"group":"cf-nel","max_age":604800}
NEL: {"success_fraction":0,"report_to":"cf-nel","max_age":604800}
Server: cloudflare
CF-RAY: 6e7e0cfc3e8e1d06-CPH
Alt-Svc: h3=":443"; ma=86400, h3-29=":443"; ma=86400
Content-Type: application/json
Not seeing it that low, even logged out. It does appear to be lower than it should be though, but we're looking into it.
Ex. https://umod.org/plugins/stack-size-controller.json is showing a rate limit of 35.