When your project goes live, it’s essential to monitor your exact API usage and remaining credits. The solutions outlined here help avoid exhausting your quota and ensure uninterrupted data access.
Interpreting dashboard metrics
Understanding the dashboard data is crucial for effective API quota management. However, metrics may not always display real-time usage due to delayed or cached updates. For instance, paid accounts may display 'Minutely maximum' values that reflect historical maximum usage per minute, rather than current usage. Misinterpreting this can cause confusion.
Consider combining dashboard statistics with API based methods to provide a precise overview of your API consumption.
Solution 1: Using a dedicated API endpoint
The /api_usage endpoint provides real-time information about your current plan and remaining credits. Each call to this endpoint consumes 1 API credit.
Solution 2: Using response headers
Each API query includes the api-credits-used and api-credits-left response headers, which indicate the number of credits used and the remaining credits after the request. Adding these two values provides the total credit limit for your plan. These headers are valuable for real-time validation of your API credit usage and availability.
Read more



