80trust / 100

Url

by Tanod utilpeek in Weather & location

x402 APIPassing, checked 3 h ago

utilpeek (Tanod) URL parsing: parts, IDNA forms and the public-suffix split (bundled PSL snapshot 2025-04-07); the URL is never fetched.

POST https://tanod.dev/v1/url

Last 30 days

All checks passedSome failedAll failedNot checked
Uptime
100%
Response time
273 ms typical, 273 ms slowest 5%
Last check
3 h ago
Next check
any minute now

How to call it

# See the payment challenge (nothing is charged)
curl -i -X POST "https://tanod.dev/v1/url" \
  -H "content-type: application/json" \
  -d '{"url":"https://shop.example.co.uk/a?b=1"}'
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%2Ftanod.dev%2Fv1%2Furl
const res = await pay("https://tanod.dev/v1/url", {
  method: "POST",
  headers: { "content-type": "application/json" },
  body: JSON.stringify({"url":"https://shop.example.co.uk/a?b=1"}),
});
console.log(await res.json());

Example input

{
  "url": "https://shop.example.co.uk/a?b=1"
}

Example output

{
  "domain_label": "example",
  "effective_port": 443,
  "fragment": null,
  "has_password": false,
  "host": "shop.example.co.uk",
  "host_ascii": "shop.example.co.uk",
  "host_scripts": [
    "LATIN"
  ],
  "host_unicode": "shop.example.co.uk",
  "icann_registrable_domain": "example.co.uk",
  "icann_suffix": "co.uk",
  "idna_valid": true,
  "ip_version": null,
  "is_ip": false,
  "known_suffix": true,
  "mixed_script_label": false,
  "normalized": "https://shop.example.co.uk/a?b=1",
  "params": [
    [
      "b",
      "1"
    ]
  ],
  "params_truncated": false,
  "path": "/a",
  "path_segments": [
    "a"
  ],
  "path_segments_truncated": false,
  "port": null,
  "public_suffix": "co.uk",
  "query": "b=1",
  "registrable_domain": "example.co.uk",
  "scheme": "https",
  "scheme_assumed": false,
  "source": {
    "library": "tldextract 5.4.0 (bundled Public Suffix List snapshot) + idna 3.20",
    "license": "BSD-3-Clause (libraries); PSL data MPL-2.0",
    "url": "https://publicsuffix.org/"
  },
  "subdomain": "shop",
  "suffix_is_private": false,
  "username": null
}

Security scan

  • No findings. We scan names, descriptions and tool definitions for hidden instructions and other prompt-injection patterns.

Recent checks

WhenResultHTTPTimePrice
3 h agoPassed402386 ms$0.001
8 h agoPassed402273 ms$0.001