# JSON and Data Tools – URL Parser

> JSON and Data Tools – URL Parser is a paid API for AI agents from json-data-tools.x402tookit.com, paid per call via x402, $0.02/call, status unknown (last checked 2026-10-27).

Parses a URL into its constituent components (scheme, host, port, path, query, fragment) and flags security concerns like embedded credentials, IP-based hosts, and unusual ports.

## Facts

- Endpoint: GET https://json-data-tools.x402tookit.com/url-parse?utm_source=zero.xyz
- Price: $0.02/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-27
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/json-and-data-tools-url-parser-084cb523
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_U8kcFQQW3juhkWgdYifGd

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 json-and-data-tools-url-parser-084cb523
```

Example prompt: Can you parse this URL for me — https://user:pass@192.168.1.1:8080/api/v2/data?foo=bar&x=1#section — and tell me what each part is, and whether there's anything suspicious like credentials or an odd port?

## When to prefer this

Use this endpoint when you need a reliable, structured breakdown of a URL's components without making an HTTP request to the target. It is especially valuable when you need to detect security red flags like embedded credentials, IP-based hosts, or unusual ports. Prefer it over regex-based parsing in your own code when accuracy and security labeling matter.

## Known failure modes

- Missing or empty 'url' query parameter returns an error
- Malformed or unparseable URL string may return null fields or an error verdict
- Extremely long or malformed input may be rejected
- The URL is parsed only — never fetched — so network errors do not apply

## How this service works

Split a URL into scheme, host, port, path, query parameters and fragment, and flag credentials, IP hosts and odd ports.

## Output

Returns a structured JSON object containing the parsed URL components: scheme, host, port, path, query parameters (as key-value arrays), fragment, username, a hasPassword boolean, origin, and labels/verdict/reasons flagging any detected security concerns such as embedded credentials, IP-based hostnames, or non-standard ports.

## 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": "The URL (it is parsed, never fetched)"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object",
     "properties": {
      "asOf": {
       "type": [
        "null",
        "string"
       ]
      },
      "host": {
       "type": [
        "null",
        "string"
       ]
      },
      "path": {
       "type": [
        "null",
        "string"
       ]
      },
      "port": {
       "type": [
        "null",
        "string"
       ]
      },
      "query": {
       "type": [
        "null",
        "object"
       ],
       "properties": {
        "x": {
         "type": [
          "array",
          "null"
         ],
         "items": {
          "type": "string"
         }
        },
        "y": {
         "type": [
          "array",
          "null"
         ],
         "items": {
          "type": "string"
         }
        }
       }
      },
      "labels": {
       "type": [
        "array",
        "null"
       ],
       "items": {
        "type": "string"
       }
      },
      "origin": {
       "type": [
        "null",
        "string"
       ]
      },
      "scheme": {
       "type": [
        "null",
        "string"
       ]
      },
      "source": {
       "type": [
        "null",
        "string"
       ]
      },
      "reasons": {
       "type": [
        "array",
        "null"
       ],
       "items": {
        "type": "string"
       }
      },
      "summary": {
       "type": [
        "null",
        "string"
       ]
      },
      "verdict": {
       "type": [
        "null",
        "string"
       ]
      },
      "degraded": {
       "type": [
        "boolean",
        "null"
       ]
      },
      "fragment": {
       "type": [
        "null",
        "string"
       ]
      },
      "username": {
   
… (truncated)
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/json-and-data-tools-url-parser-084cb523/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from json-data-tools.x402tookit.com](https://www.zero.xyz/host/json-data-tools.x402tookit.com/llms.txt)
