GET https://api.lusha.com/v3/account/usage
Example request
Example response
This is a significant shape change from the pre-V3 endpoint, which returned only a flat
usage object keyed by credit type. If you have code that reads response.usage.bulkCredits, update it to read response.credits, response.rateLimits, response.plan, and response.pricing instead.Use cases
- Monitor consumption - track
credits.usedover time to understand which workflows burn through credits fastest. - Avoid plan limit interruptions - check
credits.remainingbefore starting a large prospecting or enrichment job, and split or defer the job if it’s running low. - Track rate-limit headroom - check
rateLimitsbefore a batch run instead of guessing, or in addition to reading thex-rate-limit-*response headers documented in Rate Limiting. - Support billing reconciliation - pull
planandpricingat the end of a billing period to cross-check against your invoice. - Price out a workflow before running it - look up the relevant key in
pricingto estimate the credit cost of a batch job before you run it.
Recommendations for production use
- Poll on a schedule, not per request - Fetch usage once per hour or at the start of each pipeline run rather than after every individual API call. This keeps you well within the 5 requests/minute rate limit.
- Set a low-credit alert threshold - When
credits.remainingdrops below a threshold meaningful to your workflow (for example, 10% ofcredits.total), trigger an alert or pause automated jobs to avoid unexpected failures. - Log usage before large batch jobs - Record
credits.remainingbefore and after a large batch run to confirm expected credit consumption and catch any anomalies early.
API reference
GET /v3/account/usage
Full field-by-field reference, error codes, and example response.