The tools from a terminal

Every tool answers at https://tools-api.wardterm.com: plain text when you use curl, wget or HTTPie, JSON with ?format=json or the header Accept: application/json. No key and no account.

$ curl https://tools-api.wardterm.com/ip
203.0.113.7
$ curl -s "https://tools-api.wardterm.com/ssl/example.com?format=json" | jq .chain[0].days_left
86

Last reviewed . Free, with no key.

Endpoints

PathWhat it returns
/ipYour public IP address, nothing else. Add -4 or -6 to curl to pick the family.
/ipinfo, /ipinfo/<ip>Location, ASN and provider, reverse DNS and blocklists of your address or another one.
/dns/<name>?type=MX&auth=1DNS records with TTL. Several types with type=A,AAAA. auth=1 also asks the authoritative servers. An IP gives its PTR.
/propagation/<name>?type=A&from=europeThe same record from resolvers in many countries.
/ping/<host>?from=asiaPing from many countries. from is world, europe, americas, asia, oceania, africa or a list of countries.
/traceroute/<host>, /mtr/<host>Traceroute or MTR from a few countries. protocol=TCP&port=443 to get past ICMP filters.
/speed/<url>Response time from many countries, with DNS, connect, TLS, first byte and download.
/headers/<url>Redirect chain, status, size and security headers, from Helsinki.
/page/<url>Full page load in a browser in Helsinki: metrics, waterfall, grade. Waits for the result in plain text.
/ssl/<host>[:port]Certificate, chain, protocol, cipher and OCSP stapling.
/domain/<name>RDAP or WHOIS: registrar, dates, name servers, status.
/available/<name>Whether one domain name is free to register.
/email/<domain>?selector=s1MX, SPF with lookup count, DMARC, DKIM and blocklists.
/all/<host>The key results of everything above that applies.

Formats

Plain text goes to command line clients. Everything else gets JSON. Force one with ?format=text or ?format=json.

Errors

Errors come with an HTTP status and, in JSON, {"error": "code", "message": "..."}. The codes are invalid_target, blocked_target (a private or reserved address), rate_limited, target_limited, probes_exhausted, timeout and upstream_error. A 429 carries Retry-After.

Limits

About 40 requests a minute per address. From a terminal, the tests from other countries (/propagation, /ping, /traceroute, /mtr, /speed), /page and /all allow 5 requests an hour per address. One server is contacted about 10 times an hour at most: the same check within 10 minutes gets the same answer. Scripts that need more should run the commands on each tool page themselves.

Examples

# every certificate that expires within 21 days
for h in example.com example.org; do
  d=$(curl -s "https://tools-api.wardterm.com/ssl/$h?format=json" | jq .chain[0].days_left)
  [ "$d" -lt 21 ] && echo "$h expires in $d days"
done

# is the new MX visible from the authoritative servers?
curl "https://tools-api.wardterm.com/dns/example.com?type=MX&auth=1"

All tools · Acceptable use