> ## Knowledge Base Index
> Fetch the complete knowledge base index at: https://help.scrapingbee.com/sitemap.xml
> Use this file to discover available pages before exploring further.
> Pure-Markdown content can be obtained by appending a '.md' suffix to the content URLs listed in the sitemap (without the trailing slash).

# How to monitor credit usage?

There are 2 ways you can monitor your usage with our API: 

1. You can add that your code/script sends an additional request to our [usage endpoint](https://www.scrapingbee.com/documentation/#usage-endpoint). You can also add that if it reaches a specific limit, it stops sending requests or notifies you.
2. You can return our API [headers](https://www.scrapingbee.com/documentation/#headers), which include the SPB-cost header. This header returns how much the request costs, and you can calculate the usage on your end.


With Make, n8n, and Zapier, you can add a workflow that calculates your usage and sends out automatic emails when you reach a certain threshold or once all the credits are used up. 
Our documentation and support would help out with our API queries, but for such specific setups, you should double-check the specific no-code workflow automation documentation.

