Once your project goes to production mode it is crucial to know what is your exact API usage and how many credits are left. The solutions listed here will prevent running out of quota and pausing the data stream.
Using dedicated endpoint
/api_usage is a dedicated endpoint to know your current plan and the remaining amount of credits. It has a data weight of 1 API credit per call.
Using response headers
Each query to an API has
api-credits-left response headers that state how many credits you have used and how many credits are left after making the request. By summing these two values you should get the plan limit.
Periodically check your personal dashboard statistics page. It covers important numbers, such as the average amount of API credits used, peak amount, and many others.