# Agent Data Tools: URL Parser

> Agent Data Tools: URL Parser is a paid API for AI agents from agent-data-tools.revmesh2074.workers.dev, paid per call via x402, $0.01/call, status unknown (last checked 2026-10-30).

Parses a URL string into its structured components including protocol, host, path, port, query parameters, hash, and origin

## Facts

- Endpoint: GET https://agent-data-tools.revmesh2074.workers.dev/url/parse?utm_source=zero.xyz
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-30
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/agent-data-tools-url-parser-a3845468
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_TUelQdNgCO7v_-yJk2EDE

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 agent-data-tools-url-parser-a3845468
```

Example prompt: Can you parse this URL for me — https://example.com:8080/a/b?x=1&y=2#top — and tell me its protocol, host, path, query params, and hash?

## When to prefer this

Use this endpoint when you need a reliable, structured decomposition of a URL into its constituent parts (protocol, host, path, query, hash, port, origin) without writing custom parsing code. Ideal for AI agents that need to inspect, route, or manipulate URLs programmatically. At $0.001 per call with no API key required and no charge on failure, it is suitable for lightweight utility calls in automated pipelines.

## Known failure modes

- Missing or empty 'url' query parameter returns an error
- Malformed or unparseable URL string may return an error or empty fields
- Network timeout on the Cloudflare Worker edge
- Payment failure via x402 results in no charge and no response

## How this service works

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.

## Output

A JSON object containing the parsed URL components: protocol (e.g. 'https:'), host (e.g. 'example.com'), port (e.g. '8080'), path (e.g. '/a/b'), query (object of key-value pairs), hash (e.g. '#top'), origin (e.g. 'https://example.com:8080'), and isIp (boolean indicating if the host is an IP address).

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "required": [
  "url"
 ],
 "properties": {
  "url": {
   "type": "string",
   "description": "The URL to parse"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "hash": {
   "type": "string"
  },
  "host": {
   "type": "string"
  },
  "isIp": {
   "type": "boolean"
  },
  "path": {
   "type": "string"
  },
  "port": {
   "type": "string"
  },
  "query": {
   "type": "object",
   "properties": {
    "x": {
     "type": "string"
    },
    "y": {
     "type": "string"
    }
   }
  },
  "origin": {
   "type": "string"
  },
  "protocol": {
   "type": "string"
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/agent-data-tools-url-parser-a3845468/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from agent-data-tools.revmesh2074.workers.dev](https://www.zero.xyz/host/agent-data-tools.revmesh2074.workers.dev/llms.txt)
