Skip to content
D1
EN

API

API documentation

Integrate DN01 tool checks with Bearer-authenticated POST requests to relative /api paths on the same host.

Register & get a token

Base URL & paths

Call endpoints on your site origin with relative paths — no separate API subdomain.

POST /api/tools/whois
POST /api/tools/dns/all
POST /api/tools/dns/query
…

Authentication

Create an account, issue a token, and whitelist the IP of your server or cron job.

  • Authorization: Bearer <your_token>
  • Requests from IPs not on your allowlist receive HTTP 403.
Register & get a token

Tool endpoints

All endpoints accept POST with Content-Type: application/json.

POSTPathSample JSON body
POST

/api/tools/whois

WHOIS lookup

{
  "domain": "example.com"
}
POST

/api/tools/dns/all

DNS — all records

{
  "domain": "example.com"
}
POST

/api/tools/dns/query

DIG — single record

{
  "domain": "example.com",
  "type": "A"
}
POST

/api/tools/headers

HTTP headers

{
  "url": "https://example.com"
}
POST

/api/tools/ssl

SSL certificate

{
  "host": "example.com"
}
POST

/api/tools/punycode

Punycode converter

{
  "input": "пример.рф"
}
POST

/api/tools/base64

Base64 encoder/decoder

{
  "input": "hello",
  "mode": "auto"
}
POST

/api/tools/ipcalc

IP subnet calculator

{
  "input": "192.168.1.0/24"
}
POST

/api/tools/blacklist

Blacklist / reputation

{
  "input": "example.com"
}
POST

/api/tools/bin

BIN lookup

{
  "input": "424242"
}
POST

/api/tools/passwords/generate

Password generator

{
  "length": 16,
  "numbers": true,
  "symbols": true
}

Example request

Replace the masked token with a real key from the registration dashboard.

cURL
curl -X POST https://dn01.ink/api/tools/whois \
  -H 'Authorization: Bearer dn01_y************re' \
  -H 'Content-Type: application/json' \
  -d '{"domain":"example.com"}'