# Delx Commerce — Semantic Version Parts Parser

> Delx Commerce — Semantic Version Parts 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-02).

Parses a semantic version string into its major, minor, and patch components with validity confirmation

## Facts

- Endpoint: POST https://commerce.delx.ai/api/v1/x402/semver-parts?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-semantic-version-parts-parser-82cf4b65
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_eJlU6a3izcw86VrKISBLd

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-semantic-version-parts-parser-82cf4b65 -d '<json body>'
```

Example prompt: Can you parse the version string '2.14.1' and tell me what the major, minor, and patch numbers are?

## When to prefer this

Use this endpoint when you need a fast, cheap, pay-per-call utility to reliably decompose and validate a semantic version string without setting up any authentication or subscription. Ideal for agents automating software release pipelines, dependency checkers, or version compatibility logic that need programmatic access to major/minor/patch components.

## Known failure modes

- Invalid or non-semver version string returns valid=false with null or zero component values
- Missing 'version' field in request body may cause a 400 error
- Versions with pre-release or build metadata suffixes (e.g. '1.0.0-alpha') may affect validity flag
- Payment failure via x402 protocol prevents API 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 with integer fields for major, minor, and patch version numbers, a boolean 'valid' flag indicating whether the input was a well-formed semantic version string, and a schema identifier string.

## Request schema (JSON Schema)

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

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "major": 1,
  "minor": 2,
  "patch": 3,
  "valid": true,
  "schema": "delx/util-semver-parts/v1"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/delx-commerce-semantic-version-parts-parser-82cf4b65/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)
