• Join - It's Free

Just how low is the API limit?

Started by Private User on Friday, April 28, 2023
Problem with this page?

Participants:

  • Private User
    Geni member
  • Private User
    Geni Pro

Related Projects:

Showing all 8 posts

I have tried making two sequential calls.
The first to get the profile, and the second to get the immediate family.

The first call produces the profile data.
The second call produces a 429 error - too many api calls / rate exceeded.

Just how low is the limit?

In every request response header you can read the rate limits. What can you read read there?

Documentation:
https://www.geni.com/platform/developer/help/rate_limits?version=1

The rate limit is usually 40 calls each 10 seconds, but that does of course that the connection is approved and that you use the access-token you got in the request. Geni staff can increase this limit as well.

If just using a public or cookie-based calls it is as little as 5 requests per 10 seconds.

"X-API-Rate-Limit": "1",
"X-API-Rate-Remaining": "0",
"X-API-Rate-Window": "10",
"X-Runtime": "107",

Ok, - for approved apps the Rate-Limit is usually 40. Did you remember to use the access-token in your request?

You should in any case catch the case, suspend the app a few seconds and then re-request

Well, yes. I thought if I didn't then there would be no access whatsoever.

1. Request authorisation. browser opens, I have to authorise it, and an authorisation code is given
2. Put that code into a request, and receive an access token.
3. insert that access token in the headers, and make a request for the root profile - works fine.
And the response headers also say my API limit is 1.

If I try a second request ... no problem,

Sorry... Just saw the typo...

If I try a second request... It doesn't work

This is the way I use the access token (C#) (the Google way so that the AccessToken is not visible to avoid confidential data in the URL)

request.Headers.Add("Authorization", $"Bearer {Uri.EscapeDataString(AccessToken)}");

Showing all 8 posts

Create a free account or login to participate in this discussion