Heuristic:7onez Cti expert WhoisXML DRS Balance Distinction
| Knowledge Sources | |
|---|---|
| Domains | OSINT, API_Management, Debugging |
| Last Updated | 2026-10-28 14:00 GMT |
Overview
Whois History and Reverse WHOIS bill to the Domain Research Suite (DRS) balance, not the WHOIS API balance — a key with WHOIS credits but zero DRS returns 200 for current WHOIS and 403 for both paid endpoints.
Description
WhoisXML API has separate credit balances for different product lines. A single API key (`WHOISXML_API_KEY`) can have WHOIS API credits (used for current WHOIS lookups) and Domain Research Suite (DRS) credits (used for Whois History and Reverse WHOIS). The 403 this produces is a quota error, not an auth error — the key is valid, it just has no DRS credits.
The `whois_enrich.py` module's `_explain_403()` function diagnoses this: it reads the account balance endpoint (`user.whoisxmlapi.com/service/account-balance`) to check whether DRS credits are zero. If so, it returns a message explaining that the key is VALID but DRS credits = 0, with a link to purchase more. This prevents the analyst from concluding the key is bad and discarding it.
Usage
Use this heuristic when:
- Whois History or Reverse WHOIS returns 403: Check the DRS balance first — the key may be valid with zero DRS credits. Do not "fix" it by assuming a bad key.
- Current WHOIS works but history/reverse doesn't: This is the signature symptom. The key has WHOIS API credits (current WHOIS returns 200) but zero DRS credits (history and reverse return 403).
- Budgeting API spend: DRS credits are consumed by Whois History and Reverse WHOIS calls. Plan the budget separately from WHOIS API credits.
The Insight (Rule of Thumb)
- Action: Do NOT discard a WhoisXML key that 403s on History/Reverse — check the DRS balance first.
- Value: Current WHOIS → WHOIS API balance. History + Reverse WHOIS → DRS balance. A 403 on History/Reverse with 200 on Current = zero DRS credits, not a bad key.
- Trade-off: DRS credits cost more than WHOIS API credits. Budget for the split.
- Diagnosis tool: `whois_enrich._explain_403()` reads the balance endpoint and tells you which product is exhausted.
Reasoning
WhoisXML's product pricing is split across two credit pools. A team that purchased only WHOIS API credits gets current WHOIS working fine, but every Whois History and Reverse WHOIS call returns 403 — which reads identically to an expired or invalid key. Without the balance check, the analyst would conclude the key is bad and either discard it or file a support ticket. The `_explain_403()` function makes the diagnosis automatic: it reads the balance, sees DRS credits = 0, and returns a message naming the product and linking to the purchase page. This turns a confusing 403 into an actionable budget note.