Skip to main content
GET
Dashboard Overview

Usage Analytics

Get detailed insights into your API usage, credit consumption, and performance metrics. All analytics endpoints are free and don’t consume credits.
100% Free: All analytics endpoints consume zero credits and have no rate limits. Use them to build dashboards, monitoring systems, and usage alerts.

Quick Reference


Dashboard

Get a real-time snapshot of your account status including credits, rate limits, and usage statistics.

Response

Response Fields

object
required
Your account information
object
required
Current credit balance
object
required
Real-time rate limit status
object
required
Concurrent request tracking
object
required
Usage statistics for today, this week, and this month

Usage Summary

Get aggregated usage metrics over a time period with daily breakdown.
number
default:"30"
Number of days to include (1-90)

Response

Chargeable Rate shows what percentage of your requests consumed credits. A lower rate means more free results (unknown validations, not-found responses, etc.).

Products Breakdown

Get per-product usage with requests, credits, and success rates. Essential for cost optimization.
number
default:"30"
Number of days to include (1-90)

Response

Success rate means we found data. For email finder, 85% success means 85% of lookups returned an email. You only pay for successful results.

Credit History

Get credit consumption history with daily breakdown. Perfect for spend tracking and budgeting.
number
default:"30"
Number of days to include (1-90)

Response


All-Time Summary

Get lifetime statistics for your account, or specify a custom date range.
string
Start date (YYYY-MM-DD format). Optional.
string
End date (YYYY-MM-DD format). Optional.

Response


Daily Metrics

Get detailed daily metrics including latency percentiles and error rates. Essential for SLA monitoring.
number
default:"30"
Number of days to include (1-90)

Response

Latency Percentiles


Day Breakdown

Get per-product breakdown for a specific day. Perfect for debugging and audits.

Response


Practical Examples

Build a Real-Time Dashboard

Fetch all metrics in parallel for a comprehensive dashboard:

Best Practices

Analytics endpoints are free, but caching improves your dashboard performance:
Every API response includes X-Credits-Remaining — use this instead of polling the dashboard:
Fetch multiple analytics endpoints in parallel:
Schedule weekly reports using cron or serverless functions:

Check Credits

Simple endpoint to check your current balance.

Rate Limits

Learn about rate limiting and how to stay within limits.

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

Dashboard data retrieved successfully

user
object
credits
object
rate_limit
object
concurrency
object
stats
object