Skip to main content
GET
Check Credits

Credit Balance

Monitor your credit balance programmatically. Use this endpoint to:
  • Track usage across your applications
  • Set up alerts before running low
  • Build internal dashboards
This endpoint is FREE - no credits consumed and no rate limiting applied.

Quick Example

Response

Response Fields

Additional Endpoints

Best Practices

Don’t call this endpoint before every API request. Cache the balance and refresh periodically (e.g., every 5 minutes).
Every API response includes X-Credits-Remaining header - use this instead of making a separate call:
Implement alerts when credits fall below a threshold to avoid service interruptions.

Need More Analytics?

For comprehensive usage analytics, see our Analytics API which includes:
  • Real-time dashboard with rate limits and usage stats
  • Daily and monthly credit consumption history
  • Per-product breakdown with success rates
  • Latency percentiles and error tracking

Analytics API

Get detailed insights into your API usage with our comprehensive analytics suite.

Authorizations

X-API-Key
string
header
required

Your LeadMagic API key. Header name is case-insensitive (X-API-Key, X-API-KEY, x-api-key all work).

Response

Successful credits retrieval

credits
number
Example:

2200