# FastX402 Lab URL Inspector

> FastX402 Lab URL Inspector is a paid API for AI agents from fastx402.tools, paid per call via x402, $0.001/call, status unknown (last checked 2026-10-17).

Parses an absolute URL using the WHATWG URL standard and returns its normalized form, ASCII and Unicode hostname, port, path, decoded query parameters, and fragment.

## Facts

- Endpoint: GET https://fastx402.tools/url-inspect?utm_source=zero.xyz
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-17
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/fastx402-lab-url-inspector-61431096
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_hrI3SmwOnEfvy0Fm2KBOk

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability fastx402-lab-url-inspector-61431096
```

Example prompt: Can you parse this URL for me — https://xn--mnih-0ra.example.com/b/?q=1&q=2&x=%20y#Top — and break it down into its hostname (both ASCII and Unicode), path, query params, and fragment?

## When to prefer this

Use this endpoint when you need WHATWG-compliant URL parsing that matches browser behavior exactly, especially for internationalized domain names (IDN/punycode), multi-value query parameters, or percent-encoded characters. Prefer it over custom regex parsing when normalization consistency and standards compliance matter, or when you need both ASCII and Unicode hostname representations.

## Known failure modes

- Malformed or relative URL input returns an error — only absolute URLs with a scheme are accepted
- Missing required 'url' query parameter results in a validation error
- Non-HTTP/HTTPS schemes may parse differently or fail depending on WHATWG support
- Extremely long URLs may be rejected or truncated

## How this service works

146 pay-per-call tools for AI agents, from $0.001 per request in USDC on Base or Solana with x402. No account, no API key.

## Output

A JSON object containing: href (fully normalized URL), protocol, origin, hostname (ASCII/punycode), hostname_unicode (human-readable Unicode form), port (null if default), path, query (object mapping parameter names to arrays or string values, with percent-encoding decoded), fragment (anchor text), and is_ip (boolean indicating if the host is an IP address).

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "GET"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "required": [
      "url"
     ],
     "properties": {
      "url": {
       "type": "string",
       "description": "Absolute URL"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object",
     "properties": {
      "href": {
       "type": "string"
      },
      "path": {
       "type": "string"
      },
      "port": {
       "type": "null"
      },
      "is_ip": {
       "type": "boolean"
      },
      "query": {
       "type": "object",
       "properties": {
        "q": {
         "type": "array",
         "items": {
          "type": "string"
         }
        },
        "x": {
         "type": "string"
        }
       }
      },
      "origin": {
       "type": "string"
      },
      "fragment": {
       "type": "string"
      },
      "hostname": {
       "type": "string"
      },
      "protocol": {
       "type": "string"
      },
      "hostname_unicode": {
       "type": "string"
      }
     }
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "href": "https://xn--mnih-0ra.example.com/b/?q=1&q=2&x=%20y#Top",
  "path": "/b/",
  "port": null,
  "is_ip": false,
  "query": {
   "q": [
    "1",
    "2"
   ],
   "x": " y"
  },
  "origin": "https://xn--mnih-0ra.example.com",
  "fragment": "Top",
  "hostname": "xn--mnih-0ra.example.com",
  "protocol": "https",
  "hostname_unicode": "münih.example.com"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/fastx402-lab-url-inspector-61431096/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from fastx402.tools](https://www.zero.xyz/host/fastx402.tools/llms.txt)
