Clay logo

LeadMagic has made more than one billion API calls with Clay and won The Unstoppable Wheel award.

Recap
LeadMagicDocs

Analytics API

Monitor LeadMagic API usage: credit balance, request volume, success rates, latency and per-product breakdowns over time.

GEThttps://api.leadmagic.io/v1/analytics/dashboard
Try 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

EndpointReturns
GET /v1/analytics/dashboardCredit balance, rate-limit usage, and request counts for today, this week and this month
GET /v1/analytics/usageRequests per day over a period
GET /v1/analytics/productsRequests and success rate per product
GET /v1/analytics/summaryAll-time request totals and success rate
GET /v1/analytics/dailyDaily 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
integer
query
default"30"

Days to include, 1–90. Used by usage, products and daily.

start_date
string
query

YYYY-MM-DD. Optional start for summary.

end_date
string
query

YYYY-MM-DD. Optional end for summary.

product
string
query

For dashboard only. Adds that product's rate limit in rate_limit.product_policy, for example email-finder.


Dashboard

GET /v1/analytics/dashboard

account
object

Balance, plan and your own spending limits.

rate_limit
object

Workspace-wide request counters. Product limits can be lower.

stats
object

today, this_week and this_month, each with these fields.


Usage

GET /v1/analytics/usage?days=7

summary
object

Totals for the period: total_requests, chargeable_requests, chargeable_rate and unique_products.

daily
array

One item per day with date, total_requests, chargeable_requests, unique_products_used and chargeable_rate_percentage.


Products

GET /v1/analytics/products?days=7

products
object

Keyed by product, each with total_requests, successful_requests, failed_requests and success_rate.

daily
array

The same counters per product per day.

Success rate means data was found. Finder products charge on successful finds; Email Validation charges definitive valid and invalid results.


Summary

GET /v1/analytics/summary

total_api_requests
number
All requests in the range
successful_requests
number
Requests that returned data
failed_requests
number
Requests that didn't
success_rate
number
Percent successful
unique_products_used
number
Products used
avg_response_time_ms
number
Average response time
first_request
string
Time of the first request
last_request
string
Time of the most recent request

Daily

GET /v1/analytics/daily?days=7

data
array

One item per day.


Day

GET /v1/analytics/day/{date}

Returns the top 15 products by requests for that day. The rest are grouped as other_products.