You are not logged in.
- Topics: Active | Unanswered
Pages: 1
#1 2025-04-10 1:09 am
- live627
- Member
- Registered: 2025-04-09
- Posts: 3
Quick questnon about batching requests
I'm updating a very old script of mine that has the ability to check a catalog of users against this database. I am looking for ways to speed up bulk processing of users, so decided to try out the batch processing. The documentation states that the limit per batch is 15, so my question is whether the limit is per pair of requested data (username, email, and ip) ore each individual data point.
Here is my code for reference
gist.github.com/live627/67ba3fa36dbe25690ce4148d8247fc2a
Offline
#2 2025-04-10 4:37 am
- pedigree
- uıɐbɐ ʎɐqǝ ɯoɹɟ pɹɐoqʎǝʞ ɐ buıʎnq ɹǝʌǝu ɯ,ı
- From: New Zealand
- Registered: 2008-04-16
- Posts: 7,100
Re: Quick questnon about batching requests
I'm glad you posted this and I was scratching my head at your PM
its 15 per request with ip/email/username/emailhash each being one field
so api?ip[]=1.2.3.4&ip[]=2.3.4.5&ip[]=3.4.5.6 is 3 of our 15 field limit per request.
now that the API is hosted entirely on cloudflare workers, you'll get an award if you can actually DoS the API so feel free to hurt it
Offline
#3 2025-04-10 8:46 am
- live627
- Member
- Registered: 2025-04-09
- Posts: 3
Re: Quick questnon about batching requests
Once I replaced the code with the link then it went through.
So then to clarify, a batch request with three ips and two emails count as three hits.
Offline
#4 2025-04-10 8:30 pm
- pedigree
- uıɐbɐ ʎɐqǝ ɯoɹɟ pɹɐoqʎǝʞ ɐ buıʎnq ɹǝʌǝu ɯ,ı
- From: New Zealand
- Registered: 2008-04-16
- Posts: 7,100
Re: Quick questnon about batching requests
it counts as 5, its the total of all the fields
Offline
#5 2025-04-11 9:01 am
- live627
- Member
- Registered: 2025-04-09
- Posts: 3
Re: Quick questnon about batching requests
Do rate limits apply? Is this documented and I misssed it?
The script I use is a modified version of Stop Spammer for SMF and it has a check for a rate limit in the request string
if (strpos($response, 'rate limit exceeded') !== false) {
return allowedTo('moderate_forum') ? fatal_lang_error('stopspammer_limitexceded') : 8;
}
Offline
#6 2025-04-13 12:12 am
- pedigree
- uıɐbɐ ʎɐqǝ ɯoɹɟ pɹɐoqʎǝʞ ɐ buıʎnq ɹǝʌǝu ɯ,ı
- From: New Zealand
- Registered: 2008-04-16
- Posts: 7,100
Re: Quick questnon about batching requests
there are no longer rate limits on the api
Offline
Pages: 1