# Semver Parse

> Semver Parse is a paid API for AI agents from semver.openverbs.com, paid per call via x402, $0.002/call, status unknown (last checked 2026-09-14).

Parses a semantic version string into its constituent components: major, minor, patch, prerelease, and build metadata.

## Facts

- Endpoint: POST https://semver.openverbs.com/v1/parse
- Price: $0.002/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/semver-parse-03c067b9
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_WRXmB3-xf1rZl1K_CT-EN

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 semver-parse-03c067b9 -d '<json body>'
```

Example prompt: Can you parse the version string '3.1.0-beta.2+exp.sha.5114f85' and tell me what the major, minor, patch, prerelease, and build metadata parts are?

## When to prefer this

Choose this endpoint when you need to programmatically decompose a semantic version string into its named components (major, minor, patch, prerelease, build metadata). It is ideal for CI/CD pipelines, package managers, changelog generators, or any workflow that needs to inspect or route based on individual parts of a version number. Prefer this over string-splitting heuristics when correctness per the semver spec matters.

## Known failure modes

- Invalid or malformed semver string returns a parse error
- Version string exceeding 256 characters is rejected
- Missing or empty version field returns a validation error
- Non-semver formats (e.g. date-based versions like '2024.06.01') may fail to parse

## How this service works

Parse a semantic version into major/minor/patch, prerelease and build metadata.

## Output

Returns a structured object containing the parsed components of the semantic version: major (integer), minor (integer), patch (integer), prerelease (string or array of identifiers), and build metadata (string or array), derived from the input version string.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method",
    "bodyType",
    "body"
   ],
   "properties": {
    "body": {
     "type": "object",
     "required": [
      "version"
     ],
     "properties": {
      "version": {
       "type": "string",
       "maxLength": 256,
       "minLength": 1,
       "description": "The semantic version to parse, e.g. \"1.2.3-beta.1+build\"."
      }
     },
     "additionalProperties": false
    },
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "POST"
     ],
     "type": "string"
    },
    "bodyType": {
     "enum": [
      "json",
      "form-data",
      "text"
     ],
     "type": "string"
    }
   },
   "additionalProperties": false
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/semver-parse-03c067b9/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from semver.openverbs.com](https://www.zero.xyz/host/semver.openverbs.com/llms.txt)
