Skip to main content
Solved

Unexpected API throttling

  • September 5, 2024
  • 4 replies
  • 82 views

Forum|alt.badge.img+1

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.

 

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. 

View original
Did this topic or the replies in the thread help you find an answer to your question?

4 replies

Kim Strauch
Klaviyo Employee
Forum|alt.badge.img+9
  • Klaviyo Employee
  • 91 replies
  • 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. 


Forum|alt.badge.img+1
  • Author
  • Contributor II
  • 4 replies
  • 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
Forum|alt.badge.img+9
  • Klaviyo Employee
  • 91 replies
  • Answer
  • 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. 


Forum|alt.badge.img+1
  • Contributor III
  • 5 replies
  • 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