How to leverage the API Usage endpoint

You can effectively utilize the "Admin Panel" to monitor API usage across various endpoints. Alternatively, our "usage" endpoint provides similar data and may be more efficient in certain scenarios. This method integrates the data directly into your workflow, allowing you to track API calls easily and ensure that you remain within your call limits.

The API Endpoint requires two key inputs: a year (in YYYY format) and a month (MM). It then returns a count of successful and erroneous API calls for each endpoint. Note that only the endpoints accessed within the specified time frame will be included in the results.

Moreover, you can establish workflows with this endpoint for a comprehensive extraction of usage data within a chosen period. For instance, in the example below, we initially set a parameter to mark when we began using the API. Subsequently, the system makes calls to the usage endpoint for each month from the start date to the present, providing a cumulative total of usage during that period.

 

Example Python code to leverage the Usage endpoint to extract multiple months

 

Screen Shot 2024-02-02 at 4.15.52 PM.pnga2615f67-b647-4134-bb7c-0d022317b2d4

Was this article helpful?
0 out of 0 found this helpful