Credits & Billing
How API usage is measured in credits.
API usage is measured in credits. The rules are simple:
- Every answered lookup costs one credit, a negative answer included (an unregistered domain, a name that does not resolve). Two kinds of lookup cost two: a DNSSEC lookup with
allNameservers=true, and a full SSL scan (full=true). A site report costs 3 credits, because it also runs an SSL, a DNS and a domain lookup. A reverse DNS range costs one credit per address answered. A redirect check costs 1 credit, whether it traces one URL or all four variants of a host. - Cached and live responses cost the same.
- Only a successful answer (HTTP
200) is billed. Errors cost nothing,4xxand5xxalike.
Your balance is the credits you have left. A subscription gets you discounted credits, or you can buy credits as you go:
- Free accounts get 1,000 credits a month (UTC calendar periods), no card required.
- A subscription adds its plan’s credits at the start of each billing period.
- Larger plans cost less per credit.
- Unused plan credits don’t roll over.
- Upgrades take effect immediately: you pay the prorated difference and get the matching share of credits.
- Downgrades apply at the next renewal.
- Buy credits as you go, on any plan: any amount from 1,000, at $2.00 per 1,000.
- Purchased credits never expire.
- Credits that expire soonest are spent first, so purchased credits last.
There’s no overage billing and no spend ceiling to manage — you’re only ever charged for a subscription or credits you chose to buy. See Pricing for the plans and the credit price.
Credit Headers
Every keyed API response that spends credits reports your live credit status in the response headers:
X-Credits-Used: 812
X-Credits-Included: 1000
X-Credits-Remaining: 188
X-Credits-Reset: 2026-08-01T00:00:00.000ZX-Credits-Remaining— your balance after this call.X-Credits-Included— the credits your balance started from: this period’s plan or free credits, plus each purchase that still has credits left.X-Credits-Used— included minus remaining.X-Credits-Reset— when your soonest-expiring credits expire, usually when your plan or free credits renew. Omitted when you only have purchased credits, which never expire.
When Credits Run Out
When your balance reaches zero, requests return HTTP 402 with the standard error envelope until you buy credits, subscribe or upgrade, or your plan or free credits renew.
{
"tool": "dns",
"query": "example.com",
"requestId": "b3e8f1a6-7c2d-4b9e-8f5a-3c6d9e4f2b8c",
"timestamp": "2026-07-15T10:30:00.000Z",
"elapsed": 2,
"cached": false,
"errors": [
{
"code": "out_of_credits",
"message": "Out of credits. Buy credits as you go, or subscribe for discounted credits, at https://dns.tools/account/billing",
"retryable": false
}
],
"results": null
}Watch X-Credits-Remaining as your balance runs down — account holders also get emails at 60% and 80% of their credits used, and when credits run out.