# AgentBIT URL Parser

> AgentBIT URL Parser is a paid API for AI agents from agentbit.app, paid per call via x402, $0.0015/call, status unknown (last checked 2026-09-13).

Parses and decomposes a URL string into its constituent components (scheme, host, path, query parameters, fragment, etc.)

## Facts

- Endpoint: POST https://agentbit.app/v1/url/parse
- Price: $0.0015/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-13
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/agentbit-url-parser-ff577fc1
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_0oW1vSRt45SaAautp4ZKY

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 agentbit-url-parser-ff577fc1 -d '<json body>'
```

Example prompt: Can you parse this URL for me and break it down into its components — scheme, host, path, query params, and fragment: https://example.com/products?id=42&color=blue#reviews

## When to prefer this

Use this endpoint when an agent needs to programmatically decompose a URL into structured parts without writing custom parsing logic — especially useful for extracting query parameters, validating URL structure, or isolating the host/path from user-supplied or third-party URLs. Prefer this over regex-based parsing for reliability and correctness across edge cases.

## Known failure modes

- Invalid or malformed URL input returns an error response
- Missing input field causes a validation error
- Relative URLs without a scheme may fail to parse correctly
- Empty string input returns an error

## How this service works

Live web, business, finance and security tools for AI agents. Pay per call with x402 — no signup, no API keys.

## Output

A JSON object containing the parsed components of the input URL, such as the scheme/protocol, hostname, port, pathname, query string, individual query parameters as key-value pairs, fragment/hash, and the full origin.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "input": {
   "type": "string"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {}
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/agentbit-url-parser-ff577fc1/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from agentbit.app](https://www.zero.xyz/host/agentbit.app/llms.txt)
