Skip to main content
Contributor II
September 5, 2024
Solved

Unexpected API throttling

  • September 5, 2024
  • 4 replies
  • 232 views

Our solution sometimes exceed the rate limit and receive 429 response. What is problematic for us is that on a few occasions we experienced unexpectedly long throttling. For example a few days ago we ended up with a 67608 second long throttle. Is there any way to avoid this extreme throttling? We try to avoid hitting the rate limit but we cannot avoid all the time due to the amount of calls we have to make.

 

    This topic has been closed for replies.
    Best answer by Kim Strauch

    Thanks, @Adverity, that makes sense that you’d need to hit the endpoint multiple times, once per conversion metric. 

    Looking at https://developers.klaviyo.com/en/reference/query_campaign_values, the daily rate limit is 225 calls. Is it possible your integration is calling this endpoint that many times? If not, if you’re using a private key (instead of OAuth) for your integration, you’re sharing a  rate limit quota with others using private keys for the same account… so the problem may lie with another integration. 

    4 replies

    Kim Strauch
    Klaviyo Employee
    Klaviyo Employee
    September 5, 2024

    A small subset of our API endpoints have daily rate limits in addition to per-second/per-minute rate limits to prevent abuse and ensure reliability for all API users. 


    @Adverity, can you provide more details on which endpoints you’re hitting this on and what you’re trying to do? Understanding your specific situation can help us to advise if 1) there’s a better way, and 2) understand whether there are valid cases that exceed current daily limits. 

    AdverityAuthor
    Contributor II
    September 10, 2024

    Hi Kim,

     

    We are hitting it on the https://a.klaviyo.com/api/campaign-values-reports/ endpoint. We are making multiple request to the endpoint to receive the data for multiple conversion metrics. Then we match the returned campaign ids to join with metadata fields from the campaign and campaigns and campaign-messages endpoint.

     

    Kim Strauch
    Klaviyo Employee
    Klaviyo Employee
    September 10, 2024

    Thanks, @Adverity, that makes sense that you’d need to hit the endpoint multiple times, once per conversion metric. 

    Looking at https://developers.klaviyo.com/en/reference/query_campaign_values, the daily rate limit is 225 calls. Is it possible your integration is calling this endpoint that many times? If not, if you’re using a private key (instead of OAuth) for your integration, you’re sharing a  rate limit quota with others using private keys for the same account… so the problem may lie with another integration. 

    Contributor III
    September 17, 2024

    What is the time limitation for a Single API like Creating a Profile., Say example some Application has specific time limit for a single API Kind of 30sec for an API., Is there any time limitations for API calls in Klaviyo