Check Credit Balance
Retrieve the current number of credits remaining for your API key. Use this endpoint to monitor usage, trigger alerts when credits run low, or display balance information in your application’s dashboard.
Use your account API key to retrieve the current credit balance for that key.
When To Use This
- Usage monitoring - Poll your balance periodically to track credit consumption across scraping jobs.
- Low-balance alerts - Build automated alerts that notify you when credits drop below a threshold, so you can top up before workflows fail.
- Dashboard integration - Display real-time credit balance in your application’s admin panel or monitoring dashboard.
- Cost tracking - Compare balance before and after batch jobs to measure credit consumption per workflow.
Authentication
Authenticate using either method:
- URL parameter:
?apiKey=01234567-8901-2345-6789-0ABCDEF01234 - Request header:
X-API-KEY: 01234567-8901-2345-6789-0ABCDEF01234
OpenAPI Specification
https://api.scrapi.tech/scalar/v1#tag/balance/get/v1balance
Endpoint
GET https://api.scrapi.tech/v1/balance?apiKey=01234567-8901-2345-6789-0ABCDEF01234
JSON Response
{
"credits": 85433
}The credits field contains the number of API credits remaining for the authenticated API key.
Related Features
- Credit Usage - Understand how credits are consumed by different features and tips for optimizing costs.
- Getting Started - Learn how to authenticate API requests with your key.