What is the maximum number of daily API queries? When does it reset? Looks like they are bound to cookies/accounts, so they seem to be avoidable. Is there a point to this? I had a bunch of files I want to get info about (the reason I hit the limit), some of them are now gone as I had not anticipated the error message. Limit message is in XML format even with json=1 specified. Is there a documentation somewhere? The one here is insufficient. Is there a way to get multiple results for multiple MD5 in one query? Like "md5:#+or+md5:#+or+md5:#")
There are 2 limits. The first limits you to 100 posts per inquiry. This is default but apparently adjustable. The second limit is 1 query every 10 seconds. (I think it's 10 seconds) This is hard coded and not adjustable. If I'm right that will limit you to no more than 8640 queries/day.
My Account => options has your api key information. There is no request limit. Query result limit I believe is 1k, but I haven't looked at that maximum in a long while. Servers are under heavy load at night for North America users.
jedi1357 said: - The limit is 1 and it resets 10 seconds after use.
Both seems to be only partially true. Right now, when I'm logged in and trying to get [ gelbooru.com/index.php?page=dapi&s=post&q=index ] I see "Search error: Exceeded maximum queries per day. Yukkuri Shiteitte ne! :<" message. Obviously the same thing happens when I use CURL with my [user_id=187882] and [pass_hash]. So it seems I've hit the ban (sorry for that, would be awesome to have multi-hash queries), and since it is still here after more than 10 seconds, I'm interested if it will ever be lifted. API seems to work without cookies (with no regard to api_key), but having that ban is kinda heavy on conscience.
- Group: Administrator - Total Posts: 1626
I forgot about that limitation I had to implement due to API abuse. It's a high number, more than enough for a single user to use, without any issue. Scrapers or bots just flooding the server will reach the limit quite fast. It resets daily.