• Join - It's Free

Rate headers "Remaining" - decrease by 2 each call

Started by Shmuel-Aharon Kam (Kahn / שמואל-אהרן קם (קאן on Sunday, January 26, 2025
Problem with this page?

Participants:

Related Projects:

Showing all 4 posts

When running my script EVERY API call counts as two, at least as far as Geni reports back to me. Here is a piece of a debug log. Notice the right column. Any ideas?

PS It's really strange that we have no way to know at what time a frame BEGINS.

API_#___time()____#_In___Limit___Remaining
__________________Frame___________________

1______1737930048___0_______0_______0

2______1737930057___1_______0_______0
3______1737930058___2______10_______8
4______1737930058___3______10_______6
5______1737930059___4______10_______4
6______1737930059___5______10_______2

7______1737930068___1______10_______0
8______1737930069___2______10_______8
9______1737930069___3______10_______6
10_____1737930070___4______10_______4
11_____1737930071___5______10_______2

12_____1737930079___1______10_______0
13_____1737930080___2______10_______8
14_____1737930080___3______10_______6
15_____1737930081___4______10_______4
16_____1737930082___5______10_______2

17_____1737930090___1______10_______0
18_____1737930091___2______10_______8
19_____1737930091___3______10_______6
20_____1737930092___4______10_______4
21_____1737930092___5______10_______2

ALL of the API calls go through a wrapper class, so I know I'm not missing any.

I stress-tested my test app and it shows this, - i.e. just as it should behave

RateLimit=40, RateWindow=10, RateRemaining=2, Runtime=16, TotalRuntime=1808
RateLimit=40, RateWindow=10, RateRemaining=1, Runtime=15, TotalRuntime=1823
RateLimit=40, RateWindow=10, RateRemaining=0, Runtime=15, TotalRuntime=1838
ApiException: Rate limit exceeded. - Retry in 5 seconds

  Url: https://www.geni.com/api/profile?fields=name,stress-testing

RateLimit=40, RateWindow=10, RateRemaining=39, Runtime=15, TotalRuntime=1853
RateLimit=40, RateWindow=10, RateRemaining=38, Runtime=15, TotalRuntime=1868

Yes, I presume it works for others. I was wondering why MINE is different. Does it count "get headers" as an API call? I would be surprised.

Also your rate is at 40? I would love that.

Showing all 4 posts

Create a free account or login to participate in this discussion