nba_api icon indicating copy to clipboard operation
nba_api copied to clipboard

How many times can you make a request in a day?

Open ColeBlender opened this issue 4 years ago • 2 comments

ColeBlender avatar Dec 13 '21 23:12 ColeBlender

I've not come across any limits. Theoretically, it would be the following:

24h * 60m * 60s * 1000ms = 86,400,000ms in a day. Divide that by 600ms delay per call (NBA throttle) = 144,000 calls in a 24hr period.

You'll have to give it a try and let us know. When I was determining the throttle, I didn't go millisecond by millisecond. 500ms hit the throttle, 600ms didn't. I didn't experiment with values in between. If you want to squeeze more calls in and find the absolute minimum value, please share. :-D

rsforbes avatar Dec 14 '21 15:12 rsforbes

I'm using random delay between requests from 0.5sec to 1sec and never had issues

perlovga avatar Apr 17 '22 07:04 perlovga

limit is high enough to the point where it shouldn't impact nearly all programs, just to be safe however I wouldn't go below .3

muabdali avatar Oct 10 '22 13:10 muabdali