# Delx SemVer Parts

> Delx SemVer Parts is a paid API for AI agents from api.delx.ai, paid per call via x402, $0.001/call, status unknown (last checked 2026-09-16).

Parses a semantic version string into its constituent major, minor, and patch components, returning validity and numeric parts.

## Facts

- Endpoint: POST https://api.delx.ai/api/v1/x402/semver-parts
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-16
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/delx-semver-parts-80cd74dd
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_3t7Lb99e0HOjpBSTbfIXL

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-semver-parts-80cd74dd -d '<json body>'
```

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

## When to prefer this

Choose this endpoint when an agent needs to quickly decompose a version string into numeric parts for comparison or routing logic without bundling a full semver library. Ideal for lightweight agentic pipelines where installing or calling a language-specific semver parser is impractical. Prefer this over regex-based ad-hoc parsing when correctness and a structured validity flag matter.

## Known failure modes

- Non-semver input (e.g. '1.0' or 'v2') may return valid:false with null or zero component values
- Omitting the 'version' field returns a validation error
- Pre-release or build metadata suffixes (e.g. '1.0.0-alpha+001') may not parse correctly depending on strict semver compliance
- Network or payment failure returns a 402 or 5xx error with no parsed output

## How this service works

Parse major.minor.patch from a semver string. Call when you compare agent dependency versions without a full parser. Returns valid, major, minor, patch for $0.001 USDC via x402 on Base. No network, no keys, no retention; first-party local JSON only. Results are advisory; the caller owns budgets, auth, and production controls.

## Output

Returns a JSON object with a 'valid' boolean indicating whether the input is a well-formed semver string, plus integer fields 'major', 'minor', and 'patch' containing the parsed version components.

## 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-semver-parts-80cd74dd/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.delx.ai](https://www.zero.xyz/host/api.delx.ai/llms.txt)
