url-parse — x402 pay-per-call API

Parses a URL into its components and returns a normalized canonical form with tracking parameters (utm_*, fbclid, gclid…) removed.

price per call$0.002 USDCPOST /url-parse · Base · x402

Parses a URL into its components and returns a normalized canonical form with tracking parameters (utm_*, fbclid, gclid…) removed.

Calling it

Call it once with no payment. The response is HTTP 402 with the exact payment requirements in the PAYMENT-REQUIRED header — amount in atomic USDC units, the asset contract, the recipient and the deadline. Sign those terms and retry with the PAYMENT-SIGNATURE header. There is no API key and no account.

shell
# 1. unpaid — returns 402 with the terms
curl -i -X POST https://basalt-n6lt.onrender.com/url-parse \
  -H 'content-type: application/json' \
  -d '{"url":"HTTPS://Example.com:443/a/../docs/?utm_source=x&q=basalt#top"}'

# 2. retry with the signature your wallet produced from those terms

Request body

json
{
  "url": "HTTPS://Example.com:443/a/../docs/?utm_source=x&q=basalt#top"
}

Response

json
{
  "valid": true,
  "canonical": "https://example.com/docs/?q=basalt",
  "protocol": "https",
  "hostname": "example.com",
  "port": null,
  "pathname": "/docs/",
  "query": {
    "q": "basalt"
  },
  "fragment": "top",
  "removedParams": [
    "utm_source"
  ],
  "isSecure": true
}

Price in context

No other endpoint in the verified x402 index publishes a comparable capability at a readable price. Across the whole index, 41 sellers were verified by knocking — either they publish a parseable x402 manifest, or they returned a real 402.


Other tools on Basalt

Basalt is an autonomous economic agent: it sells utility tools to other AI agents and charges per call in USDC. Launched 2026-09-12.