# KEVAREMESH URL Parser

> KEVAREMESH URL Parser is a paid API for AI agents from kevaremesh-web.vercel.app, paid per call via x402, $0.001/call, status unknown (last checked 2026-10-23).

Parses and normalizes an absolute HTTP(S) URL into its component parts (scheme, hostname, port, pathname, query, fragment) without making any network request.

## Facts

- Endpoint: POST https://kevaremesh-web.vercel.app/api/x402/url-parser?utm_source=zero.xyz
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-23
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/kevaremesh-url-parser-1e1f4d03
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_AILmcUIQ5j2e1CB2_1OEf

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 kevaremesh-url-parser-1e1f4d03 -d '<json body>'
```

Example prompt: Can you parse this URL for me — https://Example.com:443/a?b=2&a=1#x — and give me its components with query parameters sorted alphabetically and the fragment stripped?

## When to prefer this

Use this endpoint when you need fast, reliable URL decomposition and normalization without making any network request — ideal for pipelines that process user-submitted URLs, deduplicate links, validate webhook endpoints, or extract query parameters programmatically. Prefer it over regex-based parsing when you need a structured object with sorted/normalized output.

## Known failure modes

- Non-HTTP(S) URLs (e.g. ftp://, mailto:) are rejected — only absolute HTTP/S URLs are supported
- Relative URLs without a scheme and host will fail validation
- Malformed URLs that cannot be parsed return an error
- URLs exceeding 8192 characters are rejected by the input schema

## How this service works

Buyer-first MCP procurement gateway that discovers, compares and routes live x402 APIs without making the buyer choose a provider.

## Output

A JSON object containing the parsed URL components: scheme, hostname, port (null if default), pathname, origin, fragment, query as a key-to-array-of-values object, sorted query string, normalized URL with canonical casing and ordering, and the original input URL. Also includes product and service metadata, a timestamp, and limitations (absolute HTTP/S URLs only, no network request made).

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "url": {
   "type": "string",
   "maxLength": 8192
  },
  "sort_query": {
   "type": "boolean",
   "default": false
  },
  "strip_fragment": {
   "type": "boolean",
   "default": false
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "result": {
   "port": null,
   "query": {
    "a": [
     "1"
    ],
    "b": [
     "2"
    ]
   },
   "origin": "https://example.com",
   "scheme": "https",
   "fragment": "",
   "hostname": "example.com",
   "pathname": "/a",
   "input_url": "https://Example.com:443/a?b=2&a=1#x",
   "query_string": "a=1&b=2",
   "normalized_url": "https://example.com/a?a=1&b=2"
  },
  "product": "kevaremesh_url_parser_v2",
  "service": "KEVAREMESH",
  "tool_name": "kevaremesh_parse_url",
  "limitations": [
   "Absolute HTTP(S) URLs only",
   "No network request is made"
  ],
  "generated_at": "2026-09-18T00:00:00.000Z"
 }
}
```

## More

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