Analytics Cost Limit for 1 minute window

analytics
best-practices

#1

Hi,

 In twitter ads api docs https://dev.twitter.com/ads/analytics/best-practices it is mentioned that Any single query that would cost more than 5,000 will be rejected with a REQUEST_TOO_COMPLEX error response.

I want to know what is the maximum cost limit for 1 minute window.

Can i make two or more calls of cost 4,000 in 1 minute?.

Thanks.


#2

@jameya17 thanks for your question.

Each rate limit window is 1 min long. Within that rate limit window, you can request up to 5000 cost total in analytics requests per user token and no single request can exceed 5000 cost.

###General

  • The overall cost of API queries for analytics (“stats”) data is dependent upon the amount of data to be fetched per request, not the volume of calls made.
  • A shared overall cost per-rate-limit window is applied across all analytics endpoints.
  • Any single query that would cost more than 5,000 will be rejected with a REQUEST_TOO_COMPLEX error response.

Related Documentation:
https://dev.twitter.com/ads/analytics/best-practices


#3

Hi @brandonmblack,

 Thank you for your reply. The information you provided was really helpfull. Your explanation has cleared up my confusion.

Thanks,
Ameya


#4

@jameya17 awesome. Glad I could help!