# Delx Commerce Host-Port Split

> Delx Commerce Host-Port Split is a paid API for AI agents from commerce.delx.ai, paid per call via x402, $0.001/call, status unknown (last checked 2026-10-02).

Parses a host string into its constituent hostname and port components, returning the split result with schema metadata.

## Facts

- Endpoint: POST https://commerce.delx.ai/api/v1/x402/host-port-split?utm_source=zero.xyz
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-02
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/delx-commerce-host-port-split-b0e5b1ca
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_-yxMsZAF29f5uuKWlxJ6s

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

Example prompt: Can you split the host string 'api.delx.ai:443' into just the hostname and port number for me?

## When to prefer this

Choose this endpoint when you need a lightweight, pay-per-call utility to reliably split host strings that may or may not include port numbers, especially in agent workflows where no signup or API key management is desired and micro-payments via x402/USDC are acceptable.

## Known failure modes

- Malformed or empty host string may return ok: false or unexpected parsed values
- If no port is present, port may default to a standard value and has_port will be false
- Network or payment failure could result in a 402 payment required error if USDC payment is not properly attached

## How this service works

Pay-per-result APIs for agents. No signup. Exact price. Verifiable delivery. USDC on Base + Solana via x402.

## Output

Returns a JSON object with ok (boolean success flag), host (the extracted hostname without port), port (integer port number), schema identifier string, and has_port (boolean indicating whether an explicit port was present in the input).

## 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-commerce-host-port-split-b0e5b1ca/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from commerce.delx.ai](https://www.zero.xyz/host/commerce.delx.ai/llms.txt)
