API Connect

 View Only
  • 1.  Resetting API Rate Limit Before Time Interval Elapses

    Posted Thu October 10, 2024 03:35 AM

    Hi everyone,

    I have an API configured with a rate limit of 3 requests per hour. I would like to know if there's a way to reset or bypass this rate limit within the same hour once it has been exceeded. Specifically, after hitting the limit, is it possible to reset the count and allow more requests within that hour?

    Any insights or suggestions on how to achieve this would be greatly appreciated.



    ------------------------------
    Gibin G Luke
    ------------------------------


  • 2.  RE: Resetting API Rate Limit Before Time Interval Elapses

    Posted Fri October 11, 2024 01:27 AM

    As the consumer? No obviously not, that would be a security issue.

    As the provider the counts get reset if you republish the product but that's a bit drastic.

    If the rate limit is only a soft limit then the consumer can continue to make calls, it's only if it was a hard limit that they'd get blocked with 429s. The overage is obviously tracked in analytics and you can bill them for it.



    ------------------------------
    Chris Dudley
    ------------------------------



  • 3.  RE: Resetting API Rate Limit Before Time Interval Elapses

    Posted Sun October 13, 2024 12:33 AM

    Thank you, @Chris Dudley, for your helpful response! I appreciate the insights on rate limit resets and the clarification between soft and hard limits.



    ------------------------------
    Gibin G Luke
    ------------------------------



  • 4.  RE: Resetting API Rate Limit Before Time Interval Elapses

    Posted Sun October 13, 2024 02:51 AM
    Edited by Gibin G Luke Sun October 13, 2024 02:53 AM

    Hi @Chris Dudley, when I tested with a soft limit, I only received a 200 response in analytics. How can we identify which API calls have exceeded their request limits? Is there a graphical feature available for this analysis?



    ------------------------------
    Gibin G Luke
    ------------------------------



  • 5.  RE: Resetting API Rate Limit Before Time Interval Elapses

    Posted 22 days ago

    A replenish operation on the limit in question in a rate limit action can reduce the count. In this case, if you can apply a replenish with a weight of 3, it would allow 3 more calls within the same interval.



    ------------------------------
    Chad Petty
    ------------------------------