Skip to content
Fourohtwo

URL parser, parse a URL

agent-data-tools.revmesh2074.workers.dev/url/parse

URL parser, parse a URL. Split a URL into protocol, host, port, path, query parameters (as an object), hash and origin, and report whether the host is an IP address. Use to read query parameters or check a link's host.

BasePolygonArbitrumSolanaAnswering
GEThttps://agent-data-tools.revmesh2074.workers.dev/url/parse

Uptime100% of 4 checks 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

// npm install fourohtwo
import { createPayer } from "fourohtwo";

// One agent key pays USDC on Base or USDG on Robinhood Chain, inside your spending rules.
const pay = createPayer({ privateKey: process.env.AGENT_KEY, maxPerCallUsd: "0.05" });
const res = await pay("https://agent-data-tools.revmesh2074.workers.dev/url/parse?url=https%3A%2F%2Fexample.com%3A8080%2Fa%2Fb%3Fx%3D1%26y%3D2%23top");
console.log(await res.json());

Example input

{
  "url": "https://example.com:8080/a/b?x=1&y=2#top"
}