# Delx Commerce — Domain From URL

> Delx Commerce — Domain From URL 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).

Extracts the host/domain from a given URL string locally without fetching the destination

## Facts

- Endpoint: POST https://commerce.delx.ai/api/v1/x402/domain-from-url?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-domain-from-url-96bf992f
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_JiEfTO55v_foVQKOTmjMp

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-domain-from-url-96bf992f -d '<json body>'
```

Example prompt: What is the domain of this URL: https://www.shop.example.com/products/shoes?color=red — just give me the host part.

## When to prefer this

Choose this endpoint when you need a lightweight, pay-per-call, no-signup URL parsing service that runs locally without fetching the destination — ideal for agents that need to extract domains at high volume without managing subscriptions. Useful when privacy matters since the destination URL is never fetched or validated externally.

## Known failure modes

- Invalid or malformed URL returns an error; no domain can be extracted
- Missing or non-URI 'url' field in request body results in a validation error
- Payment failure via x402 protocol prevents the call from completing

## 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 extracted 'host' field (e.g. 'example.com') and a 'schema' field identifying the response format as 'delx/domain-from-url/v1'. No network request is made to the destination URL.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "url": {
   "type": "string",
   "format": "uri",
   "description": "URL to parse locally. Delx never fetches or validates the destination."
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "host": "example.com",
  "schema": "delx/domain-from-url/v1"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/delx-commerce-domain-from-url-96bf992f/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)
