Skip to Content
Domain API

Batch Domain Lookups1 Credit / item

Look up to 1000 domains in one call, and read their results as a run.

POST
/v1/domain/batch

Up to 1000 items in one call, each answered as its single call would answer it. Send the shared parameters beside the list. Every call creates a run and answers 202 with it at once: items already in the result cache are answered in it, and the rest show as pending. Read it at /v1/runs/{id} while its status is queued or running; each read shows the items finished so far. It ends completed, or failed when the run could not finish, which bills nothing. GET /v1/runs lists your runs. Each answered item (HTTP 200) costs 1 credit; failed items are not billed. The call reserves the cost of every item and is charged for the items answered when the run completes. See Batch Runs for the whole flow.

Authorization

See Authentication for details.

headerX-API-Key<token>

Provide your API key in an HTTP request header.

Request Body

application/json
  1. body
domains*array<>

The domains to look up, 1000 at most. Each is answered as /v1/domain?domain= would answer it, and billed only when answered

Items1 <= items <= 1000
verbose?boolean

Return extra detail: totalElapsed, retries and params, plus each errors entry's detail when the lookup fails. For domain, each result also has source (the protocol, server and time the record came from), redacted (the fields a server redacted), provenance (whether each part of the record came from the registry or the registrar) discrepancies (where the two disagree) and attempts (every server asked, with what it said and how long it took).

Defaultfalse
redacted?boolean

Return the values a registry or registrar redacted as it sent them ("REDACTED FOR PRIVACY", a privacy service's name). By default they are null, and a contact left with nothing but its handle is null

Defaultfalse

Response Body

The run: queued, or completed already when every item was in the result cache. Read it by id

application/json
  1. response
id*string

The run ID, which names its tool: read it back at /v1/runs/{id}

tool*"domain"

The tool the run belongs to

Value in"domain"
endpoint*string

The endpoint that created it

status*string

queued or running until every item has an outcome, then completed. failed means the run itself could not finish and nothing was billed

Value in"queued""running""completed""failed"
createdAt*string
completedAt*|

When every item had an outcome; null until then

items*integer

How many items were sent

answered*|

How many items were answered (HTTP 200), the ones billed; null until completed

credits*|

What the run cost: answered items times the per-item price; null until completed

results*array<>|

One entry per item, in the order sent: the outcome of each finished item, the rest pending. Null for a failed run

errors*array<>

Why the run itself failed; empty otherwise. Each failed item has its own errors

Errors

See Errors for the response format.

invalid_request
A parameter is missing or not valid, or is not one this endpoint takes.
400
invalid_query
The query is not a domain name that can be looked up.
400
authentication_failed
No API key was sent, or it could not be checked.
401
invalid_api_key
The API key is not valid.
401
api_key_expired
The API key has expired.
401
out_of_credits
The account has no credits left.
402
forbidden
The caller may not use this tool.
403
unsupported_tld
No WHOIS or RDAP server is known for the TLD.
422
rate_limited
The caller is over its rate limit; retry after the Retry-After header.
429
internal_error
An internal error on our side.
500
upstream_timeout
A WHOIS or RDAP server did not answer in time.
503
upstream_unreachable
A WHOIS or RDAP server could not be reached, or the proxy failed.
503
registry_throttled
A WHOIS or RDAP server is refusing requests for now.
503
upstream_invalid
The servers answered, but nothing usable came of it: empty, malformed or too little to tell.
503
Example Request
curl -X POST 'https://api.dns.tools/v1/domain/batch' \  -H 'Content-Type: application/json' \  -d '{  "domains": [    "example.com",    "google.com",    "unregistered-name-4821.com"  ]}'
Example Response
{  "id": "run_domain_01m8sgqc548k6pb044g8rvk45z",  "tool": "domain",  "endpoint": "batch",  "status": "completed",  "createdAt": "2026-12-01T19:18:54.107Z",  "completedAt": "2026-12-01T19:18:55.036Z",  "items": 3,  "answered": 3,  "credits": 3,  "results": [    {      "query": "example.com",      "pending": false,      "cached": true,      "errors": [],      "result": {        "tech": null,        "admin": null,        "dnssec": true,        "billing": null,        "reseller": null,        "reserved": false,        "available": false,        "eppStatus": [          "clientDeleteProhibited",          "clientTransferProhibited",          "clientUpdateProhibited"        ],        "registrar": {          "fax": null,          "url": null,          "city": null,          "name": "RESERVED-Internet Assigned Numbers Authority",          "email": null,          "phone": null,          "state": null,          "faxExt": null,          "ianaId": 376,          "address": null,          "phoneExt": null,          "abuseEmail": null,          "abusePhone": null,          "postalCode": null,          "countryCode": null        },        "domainName": "example.com",        "registrant": null,        "nameservers": [          "elliott.ns.cloudflare.com",          "hera.ns.cloudflare.com"        ],        "updatedDate": "2026-08-14T08:01:43Z",        "creationDate": "1995-08-14T04:00:00Z",        "expirationDate": "2027-08-13T04:00:00Z",        "unmappedStatus": [],        "domainNameUnicode": null,        "registryExpirationDate": "2027-08-13T04:00:00Z"      },      "status": 200    },    {      "query": "google.com",      "pending": false,      "cached": true,      "errors": [],      "result": {        "tech": {          "id": null,          "fax": null,          "org": null,          "url": "https://domains.markmonitor.com/whois/contact/google.com",          "city": null,          "name": null,          "email": null,          "phone": null,          "state": null,          "faxExt": null,          "address": null,          "phoneExt": null,          "postalCode": null,          "countryCode": null        },        "admin": null,        "dnssec": false,        "billing": null,        "reseller": null,        "reserved": false,        "available": false,        "eppStatus": [          "clientDeleteProhibited",          "clientTransferProhibited",          "clientUpdateProhibited",          "serverDeleteProhibited",          "serverTransferProhibited",          "serverUpdateProhibited"        ],        "registrar": {          "fax": null,          "url": "https://www.markmonitor.com/contact-us/",          "city": "Meridian",          "name": "Markmonitor Inc.",          "email": null,          "phone": null,          "state": "ID",          "faxExt": null,          "ianaId": 292,          "address": [            "3540 E Longwing Ln"          ],          "phoneExt": null,          "abuseEmail": null,          "abusePhone": "+1.2086851750",          "postalCode": "83646",          "countryCode": "US"        },        "domainName": "google.com",        "registrant": {          "id": null,          "fax": null,          "org": null,          "url": "https://domains.markmonitor.com/whois/contact/google.com",          "city": null,          "name": null,          "email": null,          "phone": null,          "state": "CA",          "faxExt": null,          "address": null,          "phoneExt": null,          "postalCode": null,          "countryCode": "US"        },        "nameservers": [          "ns1.google.com",          "ns2.google.com",          "ns3.google.com",          "ns4.google.com"        ],        "updatedDate": "2024-08-02T02:17:33Z",        "creationDate": "1997-09-15T04:00:00Z",        "expirationDate": "2028-09-14T07:00:00Z",        "unmappedStatus": [],        "domainNameUnicode": null,        "registryExpirationDate": "2028-09-14T04:00:00Z"      },      "status": 200    },    {      "query": "unregistered-name-4821.com",      "pending": false,      "cached": true,      "errors": [],      "result": {        "tech": null,        "admin": null,        "dnssec": null,        "billing": null,        "reseller": null,        "reserved": false,        "available": true,        "eppStatus": [],        "registrar": null,        "domainName": "unregistered-name-4821.com",        "registrant": null,        "nameservers": [],        "updatedDate": null,        "creationDate": null,        "expirationDate": null,        "unmappedStatus": [],        "domainNameUnicode": null,        "registryExpirationDate": null      },      "status": 200    }  ],  "errors": []}