# Agent Link URL Parser

> Agent Link URL Parser is a paid API for AI agents from agent-link.annushka1190.workers.dev, paid per call via x402, $0.002/call, status unknown (last checked 2026-09-13).

Parses a URL into its structural components (scheme, host, path, query, fragment, etc.) via a lightweight GET endpoint payable in USDC.

## Facts

- Endpoint: GET https://agent-link.annushka1190.workers.dev/v1/url/parse
- Price: $0.002/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-13
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/agent-link-url-parser-1f4a58ca
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_sFe0d8D_lkuVpWWIqXk75

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-link-url-parser-1f4a58ca
```

Example prompt: Can you parse 'https://example.com:8080/api/v1/items?sort=asc&page=2#results' and tell me the scheme, host, port, path, and query parameters?

## When to prefer this

Choose this endpoint when you need a quick, pay-per-use URL decomposition without setting up API keys or managing auth tokens — ideal for agents that occasionally need to parse URLs in a workflow and want to pay per call via USDC x402. Prefer it over rolling your own parsing logic when operating in a serverless or agent environment.

## Known failure modes

- Missing or malformed URL input returns an error response
- Relative URLs without a base may fail to parse correctly
- Non-URL strings passed as input may return a parsing error
- Network or Worker runtime errors may return a 5xx response

## How this service works

URL and content micro-tools for AI agents: parse URLs, probe HTTP status and security headers, extract text from HTML, text stats, and similarity. Pay with USDC via x402 — no API keys.

## Output

A JSON object with ok: true and the parsed URL broken into structured fields such as protocol/scheme, hostname, port, pathname, search/query string, hash/fragment, and individual query parameter key-value pairs.

## 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": {
     "const": "http"
    },
    "method": {
     "enum": [
      "GET"
     ]
    },
    "queryParams": {
     "type": "object"
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

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

## More

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