# Delx Commerce MX Host Parser

> Delx Commerce MX Host Parser 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-01).

Parses a raw MX DNS record string and extracts the mail host and preference value

## Facts

- Endpoint: POST https://commerce.delx.ai/api/v1/x402/mx-host-parse?utm_source=zero.xyz
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-01
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/delx-commerce-mx-host-parser-26cdefbd
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_xJe4-P2-cvrzaq2PoSBgA

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-mx-host-parser-26cdefbd -d '<json body>'
```

Example prompt: Parse this raw MX record for me — '10 mail.example.com' — and tell me what the mail host and preference value are.

## When to prefer this

Choose this endpoint when you have a raw MX record string (e.g. retrieved from a DNS lookup) and need to programmatically extract the mail host and preference value as structured data without implementing your own parser. It is ideal for lightweight, pay-per-use DNS record processing within an agent pipeline where no signup or subscription is required and cost is predictable at $0.001 per call.

## Known failure modes

- Malformed or empty MX record string returns a parsing error
- Missing 'mx' field in request body returns a validation error
- MX record with non-standard formatting may yield unexpected host extraction
- Network or service unavailability returns a 5xx error
- Invalid USDC payment or x402 payment failure blocks the request

## 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 containing the parsed mail host (e.g. 'mail.example.com'), the MX preference/priority number (e.g. 10), and a schema identifier string ('delx/util-mx-host-parse/v1') confirming the response format.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "mx": {
   "type": "string",
   "description": "Raw MX record string"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "host": "mail.example.com",
  "schema": "delx/util-mx-host-parse/v1",
  "preference": 10
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/delx-commerce-mx-host-parser-26cdefbd/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)
