API
Usage
GET /v1/usage returns how many credits you used, per day or per API key, for any window within the last 90 days. It is free and needs a key with the account:read scope. It counts the checks on both hosts, https://api.email-validation.org and the EU endpoint https://api-eu.email-validation.org (EU data residency).
The reference page for GET /v1/usage lists every field and every error and shows the request in seven languages beside the response.
Request
| Parameter | Description |
|---|---|
from | First day, YYYY-MM-DD in UTC, no earlier than 89 days before today (90 days, today included). Defaults to that first allowed day, whatever to is. |
to | Last day, YYYY-MM-DD in UTC, within the same window. Defaults to today. |
group_by | day (default) or key. |
curl
# the last 90 days by default; add from=YYYY-MM-DD and to=YYYY-MM-DD for a shorter range
curl "https://api.email-validation.org/v1/usage?group_by=day" \
-H "Authorization: Bearer $EV_API_KEY"PowerShell
# Windows PowerShell 5.1 and PowerShell 7 (in 5.1, curl is a short name for another command).
$headers = @{ Authorization = "Bearer $env:EV_API_KEY" }
Invoke-RestMethod -Uri 'https://api.email-validation.org/v1/usage?group_by=day' -Headers $headers -TimeoutSec 10 | ConvertTo-Json -Depth 5JavaScript
// the last 7 days (UTC); without from and to you get the last 90 days
const from = new Date(Date.now() - 6 * 86_400_000).toISOString().slice(0, 10);
const params = new URLSearchParams({ from, group_by: 'key' });
const res = await fetch(`https://api.email-validation.org/v1/usage?${params}`, {
headers: { Authorization: `Bearer ${process.env.EV_API_KEY}` },
});
const usage = await res.json().catch(() => ({ error: { code: `HTTP ${res.status}`, message: 'not JSON' } }));
if (!res.ok || usage.error) throw new Error(`${usage.error.code}: ${usage.error.message}`);
for (const item of usage.items) console.log(item.key_id, item.credits_used);Python
import os
from datetime import datetime, timedelta, timezone
import requests # pip install requests
# the last 7 days (UTC); without from and to you get the last 90 days
start = (datetime.now(timezone.utc).date() - timedelta(days=6)).isoformat()
resp = requests.get(
"https://api.email-validation.org/v1/usage",
params={"from": start, "group_by": "day"},
headers={"Authorization": f"Bearer {os.environ['EV_API_KEY']}"},
timeout=10,
)
resp.raise_for_status()
for day in resp.json()["items"]:
print(day["date"], day["credits_used"])Response
An example for two days with group_by=day. Its dates only illustrate the shape: in your own request, from and to fall within the last 90 days.
{
"from": "2026-10-19",
"to": "2026-10-20",
"group_by": "day",
"totals": {
"credits_used": 1212,
"by_status": {
"valid": 1040,
"invalid": 121,
"catch_all": 42,
"unknown": 31,
"disposable": 9
}
},
"items": [
{
"date": "2026-10-19",
"credits_used": 640,
"by_status": {
"valid": 552,
"invalid": 61,
"catch_all": 22,
"unknown": 17,
"disposable": 5
}
},
{
"date": "2026-10-20",
"credits_used": 572,
"by_status": {
"valid": 488,
"invalid": 60,
"catch_all": 20,
"unknown": 14,
"disposable": 4
}
}
]
}With group_by=key, each item has a key_id, the key's name and last4 instead of a date, and no status split. Key ids identify keys in the dashboard; the API never returns the keys themselves. Items count only credits spent through an API key. Bulk jobs and dashboard checks are not tied to a key. totals always covers the whole account, as with group_by=day, so it can be larger than the sum of the items.
Exact and approximate numbers
- Credit totals (
credits_usedper day or per key, andtotals.credits_used) come from the credit ledger and are exact. The day items andtotalsinclude API, MCP, dashboard and bulk usage; a key's item counts only the credits spent through that key. - The split by status (
by_status) is compiled from request records of API, MCP, dashboard and bulk checks. It is approximate and can lag behind by up to an hour.
Use the daily totals for reconciliation and the splits for trends.
Errors
A from or to earlier than 89 days before today (usage covers the last 90 days, today included), a from after to, or a malformed date returns 400 invalid_request; the message names the earliest day you can ask for. Other errors are listed on Errors.