Skip to content
Fourohtwo

api.duoleads.com/v1/code/url

Parse and canonicalise a URL, and extract its registrable domain using the Public Suffix List — the part an agent needs to decide whether two URLs belong to the same owner. Returns scheme, host, port, path, decoded query parameters and fragment, the public suffix, the registrable domain (eTLD+1), the subdomain, whether the suffix is an ICANN or a private entry, plus a canonical form with default p

BaseAnswering
GEThttps://api.duoleads.com/v1/code/url

Uptime100% of 1 check in 30 days

30 days agoToday

Try it

Pays from your browser wallet in USDC on Base or USDG on Robinhood Chain, whichever the endpoint takes. The provider is paid directly; failed calls aren't refunded by Fourohtwo.

The response shows up here.

Call it from an agent

import { createPayer } from "fourohtwo";

// One agent key pays USDC on Base or USDG on Robinhood Chain,
// inside the spending rules you set on Fourohtwo.
const pay = createPayer({ privateKey: process.env.AGENT_KEY });
const res = await pay("https://api.duoleads.com/v1/code/url?url=https%3A%2F%2Fa.b.example.co.uk%3A443%2Fx%2F..%2Fy%3Fq%3D1%26q%3D2%23f");
console.log(await res.json());

Example input

{
  "url": "https://a.b.example.co.uk:443/x/../y?q=1&q=2#f"
}

More from Duo Data Utilities