# Delx Commerce — URL Shape Validator

> Delx Commerce — URL Shape Validator 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).

Validates whether a given string is a properly shaped URL, returning a boolean validity result.

## Facts

- Endpoint: POST https://commerce.delx.ai/api/v1/x402/is-url-shape?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-url-shape-validator-0d9d4a9d
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_dfqu9-E4e7aNYN4hsVGT4

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-url-shape-validator-0d9d4a9d -d '<json body>'
```

Example prompt: Can you check if 'https://api.delx.ai/x' is a properly shaped URL — does it pass URL format validation?

## When to prefer this

Choose this endpoint when you need a lightweight, pay-per-use URL format check with no signup overhead, verifiable delivery on-chain, and a simple true/false validity result. Ideal for agents that occasionally need to sanitize or validate URL inputs without embedding a full URL-parsing library or setting up a subscription API account.

## Known failure modes

- Missing or empty `url` field in request body returns an error
- Malformed request body (non-JSON) may return a 400 error
- Payment failure via x402 protocol prevents call from completing
- Network timeouts if the Delx Commerce infrastructure is unavailable

## 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 original URL string, a boolean `valid` field indicating whether it conforms to expected URL shape, and a schema identifier (`delx/util-is-url-shape/v1`) for result verification.

## Request schema (JSON Schema)

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

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "url": "https://api.delx.ai/x",
  "valid": true,
  "schema": "delx/util-is-url-shape/v1"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/delx-commerce-url-shape-validator-0d9d4a9d/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)
