Check Domains
check_domainsCheck up to 25 domain names for availability and price in one call, returning separate lists of checked, invalid, and unresolved domains.
Instructions
Check up to 25 domains for availability and price in ONE call. Prefer this over calling check_domain in a loop whenever you have more than one name: Porkbun chunks availability checks per registry, so a batch is materially less work than the same names individually, and it draws on a separate budget of 200 domains per 60 seconds (counted per domain, not per call) rather than the single check's 10 per 10 seconds.
Read all three result lists — they mean different things. domains is keyed by domain name and each value has the same shape as check_domain's response. invalid holds entries that are not checkable at all (not a domain, unsupported TLD); one bad entry does NOT fail the call, so the other names still come back answered. unresolved holds domains the registry did not answer for — these are neither available nor taken, and reporting them as unavailable would be wrong. Retry those.
Duplicates are removed before the budget is charged. More than 25 names returns BULK_CHECK_TOO_MANY and checks nothing, rather than silently truncating, so split longer lists yourself. Synchronous, no polling — 25 mixed TLDs answers in roughly three seconds. One exception to watch: a few registries accept only a few domains per command and .de accepts exactly one, so a batch heavy in those TLDs returns BULK_CHECK_TOO_SLOW without checking anything. Group .de names into their own small calls.
RATE_LIMIT_EXCEEDED with reason: SUSTAINED_BULK_CHECKING means the account has been checking at scanning volume (hundreds of names an hour, few registrations) and is held to 50 names per 5 minutes for a day. Do not retry in a loop: check only names the user might actually buy, wait retryAfter, or tell the user support can raise the limit for a legitimate high-volume use.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| domains | Yes | Fully qualified domain names to check, e.g. [`example.com`, `example.net`]. Max 25; duplicates are ignored. |