Tld Info
by 2s in Developer tools
TLD registry intelligence and public-suffix analysis. Mode 1 (tld=io): IANA root-zone metadata — type (generic / country-code / sponsored), managing organization, unicode form for IDN TLDs. Mode 2 (domain=shop.example.co.uk): full Public Suffix List algorithm — the effective public suffix (co.uk), the registrable domain (example.co.uk), the subdomain part, the matched PSL rule, and whether the suffix is ICANN (registry) or private (corporate, e.g. github.io / s3.amazonaws.com) — plus the root-zone metadata for its TLD. Correctly handles wildcard and exception rules and IDN/punycode input. Use for cookie scoping, per-registrant rate limiting, URL dedup, and abuse/phishing analysis. Data: IANA root zone + Mozilla PSL, refreshed weekly.
GET https://2s.io/api/tld/info
Last 30 days
- Uptime
- 100%
- Response time
- 156 ms typical, 156 ms slowest 5%
- Last check
- 26 min ago
- Next check
- in 7 min
How to call it
# See the payment challenge (nothing is charged)
curl -i -X GET "https://2s.io/api/tld/info?domain=shop.example.co.uk"import { wrapFetchWithPayment } from "@x402/fetch";
import { x402Client } from "@x402/core/client";
import { ExactEvmScheme } from "@x402/evm/exact/client";
import { privateKeyToAccount } from "viem/accounts";
const client = new x402Client().register(
"eip155:8453",
new ExactEvmScheme(privateKeyToAccount(process.env.AGENT_KEY)),
);
const pay = wrapFetchWithPayment(fetch, client);
// Not sure it's safe to pay? Preflight it first for $0.005:
// GET https://toolvet.app/api/v1/check?url=https%3A%2F%2F2s.io%2Fapi%2Ftld%2Finfo
const res = await pay("https://2s.io/api/tld/info?domain=shop.example.co.uk");
console.log(await res.json());Example input
{
"domain": "shop.example.co.uk"
}Security scan
- No findings. We scan names, descriptions and tool definitions for hidden instructions and other prompt-injection patterns.
Recent checks
| When | Result | HTTP | Time | Price |
|---|---|---|---|---|
| 26 min ago | Passed | 402 | 258 ms | $0.0025 |
| 4 h ago | Passed | 402 | 156 ms | $0.0025 |
| 9 h ago | Passed | 402 | 155 ms | $0.0025 |