How much 24/7 API traffic to remain polite?

RandomBlank
Wallet After Summer Sale -

I’ve made a “digital photo frame” webpage to run on a tablet hanged on the wall, in fullscreen, periodically pulling a random image from Derpi through API. Currently it’s set to changing the image every minute, which feels somewhat slow, but I didn’t want to be a burden to the site. How frequently can I pull an image to still remain polite with the bandwidth usage?
(details: pick a random number between 0 and 3000000, grab image-response for that number, if it’s not an image (deleted, video, etc), re-randomize, if it’s an image, display from view_url. If you think there’s a better approach I’m fully open to suggestions.)
Posted Report
Princess Celestia
The End wasn't The End - Found a new home after the great exodus of 2012

Administrator
Devops
@RandomBlank
The rate limit is 6 requests per second. However, if you use search queries which take too long to execute (such as if you try to access pages beyond 1000), your IP may get banned.
Your random image thing can probably make requests multiple times a second (provided it doesn’t hit the 6 requests/second hard limit).
Posted Report
RandomBlank
Wallet After Summer Sale -

@Princess Celestia
Thanks. It typically hits once in 15s (a good time for the slide-show) but it occasionally batches more requests in a second if it hits a non-image record. I’d need some very, very bad luck to hit 6 non-images in a row picking each randomly from the pool of entire site, but I can delay the retry anyway so even in that case I don’t do 6 within the same second.
I also made one for newest images, but it should be totally non-issue, one simple search per 150s.
Posted Report
Interested in advertising on Derpibooru? Click here for information!
Ministry of Image - Fanfiction Printing

Help fund the $15 daily operational cost of Derpibooru - support us financially!

Syntax quick reference: **bold** *italic* ||hide text|| `code` __underline__ ~~strike~~ ^sup^ %sub%

Detailed syntax guide