Next Whois provides a simple REST API for programmatic WHOIS/RDAP lookups and dynamic OG image generation. All endpoints are publicly accessible and require no authentication.
Quick Navigation
When the administrator enables API Key verification, all public APIs (WHOIS, DNS, SSL, IP lookup) require a valid API Key in the request, otherwise HTTP 401 is returned.
Passing Methods
Request Header (recommended)
URL Query Parameter (fallback)
Permission Scopes
| Scope Value | Covered APIs |
|---|---|
| api | WHOIS/RDAP, DNS records, SSL certificate, IP/ASN lookup |
| subscription | Domain expiry subscription reminder APIs |
| all | All API features |
Error Responses
| HTTP Status | Reason |
|---|---|
| 401 | No API Key provided |
| 403 | Key invalid, disabled, expired or insufficient permissions |
Unified lookup endpoint supporting domain WHOIS/RDAP, IPv4, IPv6, ASN (autonomous system), and CIDR subnet — auto-detects input format and routes to the appropriate protocol.
Parameters
Query Types · Example Requests
Domain (WHOIS / RDAP preferred)
IPv4 Address
IPv6 Address
ASN (Autonomous System Number)
CIDR Subnet
Success Response — Domain Lookup
Success Response — IP / ASN Lookup
Error Response
Notes
- Domain lookup prefers RDAP protocol, falls back to WHOIS on failure; the source field indicates the protocol used
- Cache hit: cached: true, time: 0; cache TTL: s-maxage=3600
- IP / ASN / CIDR queries are routed via IANA RDAP bootstrap to the corresponding regional registry (ARIN / RIPE / APNIC etc.)
- Rate limiting: max 40 requests per IP per minute; exceeding returns HTTP 429
Query any DNS records in parallel via four DoH resolvers (Google, Cloudflare, Quad9, AdGuard), returning deduplicated merged results and per-resolver latency.
Parameters
Example Request
Success Response
Notes
- No caching (Cache-Control: no-store), data fetched in real time
- TXT records return raw values; parse SPF / DMARC / DKIM / BIMI yourself
- Record not found: found: false, flat: []
- Single resolver timeout: 7s, four run in parallel, overall usually completes in 1–2s
Dedicated TXT record query, using four standard DNS resolvers (Google, Cloudflare, Quad9, OpenDNS) in parallel — ideal for verifying SPF, DMARC, DKIM and other email security configurations.
Parameters
Example Request
Success Response
Error Response / Not found
Differences from /api/dns/records?type=TXT
| Feature | /api/dns/txt | /api/dns/records?type=TXT |
|---|---|---|
| Resolution Protocol | Standard DNS (UDP/TCP) | DoH (HTTPS-encapsulated) |
| Resolvers | 8.8.8.8 / 1.1.1.1 / 9.9.9.9 / 208.67.222.222 | Google / Cloudflare / Quad9 / AdGuard DoH |
| Use Case | Email security verification (SPF/DMARC/DKIM) | General DNS record queries, supports more types |
Connects directly to the target host (default port 443), performs a TLS handshake and returns SSL certificate details: validity period, issuer, SAN list, certificate chain, cipher suites, and days remaining.
Parameters
Example Request
Success Response
Error Response
Notes
- Certificate chain includes complete intermediate CA info from server to root CA
- Connection timeout: 10s; unreachable hosts return ok: false + error field
Queries IP geolocation, ASN, ISP, organization, and routing information for IPv4/IPv6 addresses or ASN numbers.
Parameters
Example Request
Success Response
Notes
- Geolocation data from MaxMind GeoLite2, ASN data from routeviews
- ASN query returns all prefixes announced by the AS
- Private IP addresses and reserved ranges return limited information
- Cache TTL: s-maxage=86400 (24h)
Generate a dynamic Open Graph image with WHOIS details. Internally queries /api/lookup and renders a card-style summary. Returns a PNG image.
Parameters
Example Request
Preview
/api/og?query=google.com
Query ICP filing records for Chinese mainland websites and apps. Supports domain lookup, app/mini-program filing, and blacklist queries.
Parameters
Query Type Reference
| type | Description | Parameter |
|---|---|---|
| web | Website | Normal Filing |
| app | APP | Normal Filing |
| mapp | Mini Program | Normal Filing |
| kapp | Quick App | Normal Filing |
| bweb | Illegal Website | Blacklist |
| bapp | Illegal APP | Blacklist |
| bmapp | Illegal Mini Program | Blacklist |
| bkapp | Illegal Quick App | Blacklist |
Example Request
Domain (WHOIS / RDAP preferred)
Domain name or ICP number to query
Unit name
Illegal APP
Success Response
Response Fields
| Parameter | Description |
|---|---|
| total / pages | Total records / total pages |
| domain | Filed domain |
| domainId | Domain ID |
| limitAccess | Whether access is restricted |
| mainLicence | ICP mainLicence |
| serviceLicence | ICP serviceLicence |
| natureName | Unit type (company / institution / individual etc.) |
| unitName | Unit name |
| updateRecordTime | Approval date |
| contentTypeName | Service pre-approval items / content type |
| mainUnitAddress | Main address |
| serviceName | Service name (APP, mini-program, or quick app name) |
| version | Service version |
| blackListLevel | Threat level (only for violation types; value 2 = no current violation) |
Notes
- ICP data from MIIT (Ministry of Industry and Information Technology) official API
- Blacklist queries (types starting with b) require special permissions
- Results are paginated; use the page parameter to fetch additional pages
| API Endpoint | Rate Limit Rule | Cache |
|---|---|---|
| /api/lookup | 40 req/IP/min (sliding window) | s-maxage=3600 |
| /api/dns/records | 60 req/IP/min | no-store |
| /api/dns/txt | 60 req/IP/min | no-store |
| /api/ssl/cert | 20 req/IP/min | no-store |
| /api/ip/lookup | 30 req/IP/min | no-store |
| /api/icp/query | Unlimited | no-store |
| /api/og | Unlimited | s-maxage=86400 |
When /api/lookup hits cache: cached: true and time: 0. Exceeding limit returns HTTP 429 with X-RateLimit-Limit / Remaining / Reset headers.
X.RW v3.35 · GitHub