# DataVault URL Parser

> DataVault URL Parser is a paid API for AI agents from zetdatavault.vercel.app, paid per call via x402, $0.01/call, status unknown (last checked 2026-09-14).

Parses and extracts structured components from a given URL string

## Facts

- Endpoint: POST https://zetdatavault.vercel.app/api/url-parse
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/datavault-url-parser-261b2c79
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_sWtK5J0KzBOMTEUh4ueEA

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 datavault-url-parser-261b2c79 -d '<json body>'
```

Example prompt: Can you parse this URL for me — https://shop.example.com/products?category=shoes&sort=price — and tell me the hostname, path, and all the query parameters?

## When to prefer this

Use this endpoint when you need to programmatically decompose a URL into its constituent parts (scheme, host, path, query string, fragment) without writing custom parsing logic. Useful in agentic workflows that receive raw URLs and need to extract hostnames, query parameters, or paths for downstream processing.

## Known failure modes

- Missing or empty URL field returns validation error
- Malformed URL string may result in parsing failure or incomplete components
- Non-string input type may cause schema validation rejection
- Network or server errors may return 5xx with no data object

## How this service works

54 endpoints spanning local tools, live data feeds, and AI-powered text processing. Pay-per-call with USDC on Base.

## Output

Returns a structured data object containing the parsed components of the input URL, such as protocol, hostname, port, pathname, query parameters, and hash fragment, along with a success boolean indicating whether parsing succeeded.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "required": [
  "url"
 ],
 "properties": {
  "url": {
   "type": "string"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "data": {
   "type": "object"
  },
  "success": {
   "type": "boolean"
  }
 }
}
```

## More

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