Monitor CloudFlare API rate limits

Hello,

Cloudflare API limits are per user. We’re using an application to add and remove DNS records. The application uses the same token and is deployed in many clusters. Recently we started hitting rate limits. We opened a ticket to increase the limit, since we’re in the enterprise plan, however I’m trying to understand if there’s a way to graph API rate consumption over time. I can’t see any info in the response headers, which is pretty common, nor in the response body of the request.

The error we’re getting is:

ListZonesContext command failed: More than 1200 requests per 300 seconds reached. Please wait and consider throttling your request speed (10100)

Any ideas where can we fetch the limit, so we can make the app a bit smarter about it? I can’t find anything interesting in the user api tokens details or user api details.