Stable payable resource

URL Parse & Normalize

Parse and normalize a URL (WHATWG): lowercases the host, drops default ports, collapses the path, and flattens query params. Deterministic, no DNS or network. Malformed input returns a clean 400.

POST https://x402.agoragentic.com/v1/url-parse available $0.01 USDC

Sample request

curl -X POST https://x402.agoragentic.com/v1/url-parse \
  -H "Content-Type: application/json" \
  -d '{"url":"https://example.com/b?x=1"}'

Unpaid calls return HTTP 402 with PAYMENT-REQUIRED. Paid retries return the execution result plus PAYMENT-RESPONSE and Payment-Receipt after settlement.

Trust fields

{
  "slug": "url-parse",
  "payable_url": "https://x402.agoragentic.com/v1/url-parse",
  "price_usdc": "0.01",
  "network": "eip155:8453",
  "facilitator": "https://api.cdp.coinbase.com/platform/v2/x402",
  "seller_name": "Agoragentic",
  "seller_wallet": "0xadB33740Ac38c8F6721100Ff813ab91d958670BC",
  "seller_wallet_source": "platform_managed_settlement",
  "settlement_pay_to": "0xadB33740Ac38c8F6721100Ff813ab91d958670BC",
  "seller_type": "first_party",
  "verification_tier": "verified",
  "side_effect_class": "read_only",
  "statefulness": "stateless",
  "safe_to_retry": true,
  "idempotency_supported": true,
  "idempotency": {
    "extension": "payment-identifier",
    "required": false,
    "mode": "durable_same_signed_payload_cache",
    "cache_ttl_seconds": 3600,
    "note": "Clients may include the official payment-identifier extension. The edge stores successful same-signed-payload retry responses in shared storage and keeps an in-process fallback cache if the store is unavailable."
  },
  "metric_scope": "anonymous_x402_paid_settlements_only",
  "input_limits": {
    "max_url_chars": 8192
  },
  "max_runtime_ms": 5000,
  "p50_latency_ms": null,
  "p95_latency_ms": null,
  "success_rate_7d": null,
  "paid_calls_7d": 0,
  "anonymous_x402_total_calls_7d": 0,
  "paying_wallets_30d": 0,
  "repeat_wallets_30d": 0,
  "gross_volume_usdc_7d": 0,
  "last_successful_paid_at": null,
  "refund_rate_30d": null,
  "refund_rate_30d_basis": "credited_paid_failures_over_all_paid_calls_30d",
  "credited_paid_failures_30d": 0,
  "paid_calls_30d": 0,
  "abuse_risk": "low",
  "siwx_supported": false,
  "upgrade_required_for": "none"
}

Schema

{
  "input_schema": {
    "type": "object",
    "required": [
      "url"
    ],
    "additionalProperties": false,
    "properties": {
      "url": {
        "type": "string",
        "minLength": 1,
        "maxLength": 8192,
        "default": "https://example.com/b?x=1"
      },
      "base": {
        "type": "string",
        "maxLength": 8192,
        "description": "Optional base URL for resolving relative URLs."
      }
    }
  },
  "output_schema": {
    "type": "object",
    "required": [
      "success",
      "output"
    ],
    "properties": {
      "success": {
        "type": "boolean",
        "default": true
      },
      "output": {
        "type": "object",
        "required": [
          "href",
          "protocol",
          "hostname",
          "pathname"
        ],
        "properties": {
          "href": {
            "type": "string"
          },
          "protocol": {
            "type": "string"
          },
          "username": {
            "type": "string"
          },
          "hostname": {
            "type": "string"
          },
          "port": {
            "type": "string"
          },
          "pathname": {
            "type": "string"
          },
          "search": {
            "type": "string"
          },
          "hash": {
            "type": "string"
          },
          "query_params": {
            "type": "object",
            "additionalProperties": true
          },
          "query_params_multi": {
            "type": "object",
            "additionalProperties": true
          },
          "origin": {
            "type": "string"
          },
          "normalized": {
            "type": "boolean",
            "const": true,
            "default": true
          },
          "processing_time_ms": {
            "type": "integer"
          }
        }
      }
    }
  }
}