# Delx URL Origin

> Delx URL Origin is a paid API for AI agents from api.delx.ai, paid per call via x402, $0.001/call, status unknown (last checked 2026-09-16).

Extracts the scheme://host[:port] origin component from a given URL string without any network access

## Facts

- Endpoint: POST https://api.delx.ai/api/v1/x402/url-origin
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-16
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/delx-url-origin-38f3569a
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_UmXicaHd38YQr180RmL91

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 delx-url-origin-38f3569a -d '<json body>'
```

Example prompt: What's the origin (scheme, host, and port if present) of this URL: https://api.example.com:8080/v1/resource?token=abc123 — just pull it out locally without hitting the network.

## When to prefer this

Choose this endpoint when you need a fast, stateless, zero-network-call origin extraction from a URL string — ideal for agent preflight checks, security policy enforcement, or grouping/normalization tasks where you only need the scheme+host+port tuple. Prefer it over regex-based ad hoc parsing when you need consistent, machine-readable JSON output. It is not appropriate when you need DNS resolution, reachability checks, or full URL decomposition (path, query params).

## Known failure modes

- Malformed or non-parseable URL input returns an error response
- Missing or empty url field returns a validation error
- URLs without explicit ports return no port field or null port
- Relative URLs (no scheme/host) may fail or return partial results

## How this service works

Extract scheme://host[:port] origin from a URL without network access — first-party local utility for agent preflight and proven micro-utils expansion. Returns deterministic machine-readable JSON for $0.001 USDC via x402 on Base. Execution is first-party, local-only, stateless, and memory-only with no paid upstream, no input retention, no web search, no live RPC, and no mediagen. Results are advisory; the caller owns authorization, budgets, and production controls. Sibling of Delx routes that a…

## Output

A deterministic JSON object containing the parsed origin components of the input URL, including scheme, host, optional port, and the assembled origin string (e.g. {"origin": "https://api.example.com:8080", "scheme": "https", "host": "api.example.com", "port": "8080"}). No network calls are made; result is computed purely from the input string.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "url": {
   "type": "string",
   "description": "Input field: url."
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "ok": true,
  "host": "api.delx.ai",
  "port": 443,
  "origin": "https://api.delx.ai:443",
  "schema": "delx/util-url-origin/v1",
  "scheme": "https"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/delx-url-origin-38f3569a/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.delx.ai](https://www.zero.xyz/host/api.delx.ai/llms.txt)
