cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Developer API > Analytics API > getRateLimits doesn't return amount of calls used

Making a call to https://api.ebay.com/developer/analytics/v1_beta/rate_limit/?api_name=tradingapi
and despite having used approximately 800 calls so far today for GetOrders, it's still returning:

"limit": 5000,
"remaining": 5000,

I'm hours from my reset time, so it wasn't just reset.

I am making the call using the same token which is making the Trading API call.

What am I doing wrong?

Message 1 of 10
latest reply
9 REPLIES 9

Re: Developer API > Analytics API > getRateLimits doesn't return amount of calls used

I've not used this call, but, if a user token was required to access "GetOrders", then it would seem that a user token should be required to access "/user_rate_limit/".

 

 

ShipScript has been an eBay Community volunteer since 2003, specializing in HTML, CSS, Scripts, Photos, Active Content, Technical Solutions, and online Seller Tools.
Message 2 of 10
latest reply

Re: Developer API > Analytics API > getRateLimits doesn't return amount of calls used

Yes, it does need the user token.

It's saying I didn't use any calls at all whatsoever, which is definitely not the case.

 

Screenshot from 2023-08-12 16-34-25.png

Message 3 of 10
latest reply

Re: Developer API > Analytics API > getRateLimits doesn't return amount of calls used

@swiv-o-matic 

Sorry, I was unclear again. If the user token is provided, which you confirmed, then I believe the endpoint is wrong and should be "/user_rate_limit/".

 

ShipScript has been an eBay Community volunteer since 2003, specializing in HTML, CSS, Scripts, Photos, Active Content, Technical Solutions, and online Seller Tools.
Message 4 of 10
latest reply

Re: Developer API > Analytics API > getRateLimits doesn't return amount of calls used

No problem. I should've mentioned the same thing happens with that call as well.

 

Message 5 of 10
latest reply

Re: Developer API > Analytics API > getRateLimits doesn't return amount of calls used

I am finding the same behavior with the 

https://api.ebay.com/developer/analytics/v1_beta/rate_limit/ API call.  The "remaining" value (e.g. 5000) is always the same as the limit, but that can't be right?  I provide the Bearer token for my Application and an eBay user (does the eBay user matter here?)  I just need to see the remaining rate limits for my app.  This to crucial to information to understand how the application is scaling, and if it requires a rate limit increase.
Mark Johnson
Message 6 of 10
latest reply

Re: Developer API > Analytics API > getRateLimits doesn't return amount of calls used

I'm having the exact same problem.

I think my solution for now will be to implement a counter for my api calls.

Message 7 of 10
latest reply

Re: Developer API > Analytics API > getRateLimits doesn't return amount of calls used

I help you 

 

Message 8 of 10
latest reply

Re: Developer API > Analytics API > getRateLimits doesn't return amount of calls used

Has anyone found a way around this? I'm running into the same issue and it's incredibly unhelpful to be told to check your limits but have no way to do it.

Message 9 of 10
latest reply

Re: Developer API > Analytics API > getRateLimits doesn't return amount of calls used

I managed to get it working on eBay's API Explorer page. In the textarea where you need to put a token, click on "Get OAuth Application Token" instead of "Get OAuth User Token". It kind of makes sense given that the limits are for your "application",  not for your individual users. 

Message 10 of 10
latest reply