Analytics API
Monitor LeadMagic API usage: credit balance, request volume, success rates, latency and per-product breakdowns over time.
https://api.leadmagic.io/v1/analytics/dashboardTry this endpointOpen the API playground
Analytics endpoints are free. They report request counts, success rates and latency, not credits spent. Your credit balance is on the dashboard endpoint.
Quick Reference
| Endpoint | Returns |
|---|---|
GET /v1/analytics/dashboard | Credit balance, rate-limit usage, and request counts for today, this week and this month |
GET /v1/analytics/usage | Requests per day over a period |
GET /v1/analytics/products | Requests and success rate per product |
GET /v1/analytics/summary | All-time request totals and success rate |
GET /v1/analytics/daily | Daily performance: errors, latency percentiles, rate-limited requests |
GET /v1/analytics/day/{date} | Requests per product on one day |
Responses are not wrapped: read fields at the top level.
Parameters
Days to include, 1–90. Used by usage, products and daily.
YYYY-MM-DD. Optional start for summary.
YYYY-MM-DD. Optional end for summary.
For dashboard only. Adds that product's rate limit in rate_limit.product_policy, for example email-finder.
Dashboard
GET /v1/analytics/dashboard
Balance, plan and your own spending limits.
Workspace-wide request counters. Product limits can be lower.
today, this_week and this_month, each with these fields.
Example response
Example response
Usage
GET /v1/analytics/usage?days=7
Totals for the period: total_requests, chargeable_requests, chargeable_rate and unique_products.
One item per day with date, total_requests, chargeable_requests, unique_products_used and chargeable_rate_percentage.
Example response
Example response
Products
GET /v1/analytics/products?days=7
Keyed by product, each with total_requests, successful_requests, failed_requests and success_rate.
The same counters per product per day.
Example response
Example response
Summary
GET /v1/analytics/summary
Daily
GET /v1/analytics/daily?days=7
One item per day.
Example response
Example response
Day
GET /v1/analytics/day/{date}
Returns the top 15 products by requests for that day. The rest are grouped as other_products.
Example response
Example response