The Final Week of the Ready, Set, Send Challenge Has Begun!

Retrieving current API usage levels and RETRY-AFTER

RandyR8633
Constant Contact Partner

Is there an API call that can be made to find out how many requests have been made so it can be compared against the daily quota? It would be great to be able to query that. We have a client that gets a 429 but the claim is that they aren't making too many requests. Getting statistics by making an API call would be helpful to manage the account. For example, seeing that they have used 4,000 of the 10,000 daily limit would be helpful.

 

In addition, when a 429 is received, it would be good to get a "RETRY-AFTER" header. so that we could pause any operations until that time.

 

I have looked for extra headers when a 429 error occurs but don't see any that might provide this information.

 

TIA

3 REPLIES 3
John__B
Employee
0 Votes

Hello RandyR8633,

 

Thank you for reaching out to Constant Contact API Developer Support. My team is here to assist outside software developers with questions about building into Constant Contact's API.

 

We don’t currently offer an endpoint that can retrieve the remaining number of requests out of the standard 10,000 requests per day rate limit, however, I have tracked your account on an open feature request for this functionality. I can’t guarantee when or if this feature will be added, however, we greatly appreciate your feedback and use case for this request. Your feedback and experience is essential to improving our product, so thank you for reaching out to us regarding this matter. 

 

Please let us know if you have any other questions!

 

Regards,


John B.
API Support Specialist
Did I answer your question? If so, please mark my post as an "Accepted Solution" by clicking the Accept as Solution button in the bottom right hand corner of this post.
BrazeltonTouchpointsF
Rookie
0 Votes

Tracking the number of API calls used on a given day is an obvious stat to make available since there's a quota limit. This should be implemented in the Constant Contact UI itself for easy reference.

John__B
Employee
0 Votes

Hello BrazeltonTouchpointsF,

 

Thank you for reaching out to Constant Contact API Developer Support. My team is here to assist outside software developers with questions about building into Constant Contact's API.

 

Thanks so much for your feedback. It has been submitted for review and consideration by our engineering team. Your feedback and experience with this request is essential to improving our product, so thank you for reaching out to us regarding this matter.

 

Please let us know if you have any other questions!

 

Regards,


John B.
API Support Specialist
Did I answer your question? If so, please mark my post as an "Accepted Solution" by clicking the Accept as Solution button in the bottom right hand corner of this post.
Resources
Developer Portal

View API documentation, code samples, get your API key.

Visit Page

Announcements

API Updates

Join our list to be notified of new features and updates to our V3 API.

Sign Up