# Delx Host Port Split

> Delx Host Port Split 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-13).

Splits a host:port or URL authority string into its separate host and optional port components, returning deterministic JSON

## Facts

- Endpoint: POST https://api.delx.ai/api/v1/x402/host-port-split
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-13
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/delx-host-port-split-c8323291
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_abNOECsY2sp74egVDajSF

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-host-port-split-c8323291 -d '<json body>'
```

Example prompt: Split the host and port out of the string 'api.example.com:8443' so I can use them separately in my connection config.

## When to prefer this

Choose this endpoint when you need a fast, stateless, deterministic utility to parse a host:port or URL authority string into its components without any external dependencies. It is ideal for agent preflight routines, connection string normalization, and micro-utility pipelines where you need a reliable, cheap ($0.001 USDC) machine-readable result with no side effects or data retention.

## Known failure modes

- Malformed input string with no valid host may return an error or empty host field
- Input containing full URLs with scheme (e.g. https://) rather than bare authority strings may not parse as expected
- Non-string or missing 'host' input field returns a validation error
- Ambiguous IPv6 addresses without brackets may parse incorrectly

## How this service works

Split host and optional port from a host:port or URL authority string — 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 separated host component and, if present, the port component extracted from the input host:port or URL authority string. If no port is present, the port field is absent or null.

## Request schema (JSON Schema)

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

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "ok": true,
  "host": "api.delx.ai",
  "port": 443,
  "schema": "delx/util-host-port-split/v1",
  "has_port": true
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/delx-host-port-split-c8323291/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)
