# ScriptMasterLabs Semver Compare API

> ScriptMasterLabs Semver Compare API is a paid API for AI agents from acp-x402-discovery.onrender.com, paid per call via x402, $0.001/call, status unknown (last checked 2026-09-14).

Compares two semantic version strings to determine their ordering or equality, paid per-call via x402/USDC on Base

## Facts

- Endpoint: GET https://acp-x402-discovery.onrender.com/x402/semver-compare
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/scriptmasterlabs-semver-compare-api-40246ecf
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_lHFu_57-DiJVRigyX7QKQ

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 scriptmasterlabs-semver-compare-api-40246ecf
```

Example prompt: Can you compare version 1.4.2 and 1.10.0 using semver rules and tell me which one is greater?

## When to prefer this

Choose this endpoint when you need a reliable, pay-per-call semver comparison without self-hosting logic, especially in agentic pipelines that already use x402/USDC micropayments on Base and need to determine version precedence programmatically.

## Known failure modes

- Malformed or non-semver version strings return an error or unexpected result
- Missing version parameters cause bad request responses
- Service unavailability on the Render-hosted instance leads to timeout or 5xx errors
- Pre-release label edge cases (e.g. 1.0.0-alpha vs 1.0.0-alpha.1) may not be handled correctly if not well-specified

## How this service works

Pay-per-call crypto, RWA, federal, SEC, and compliance APIs. Settled in USDC on Base via x402. Hyphen routes only (e.g. /x402/rwa-aggregates, /x402/gas-tracker).

## Output

Returns a comparison result indicating whether version A is greater than, less than, or equal to version B according to semantic versioning (semver) specification rules, including handling of pre-release identifiers and build metadata.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "properties": {
   "type": "string"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "example": {}
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/scriptmasterlabs-semver-compare-api-40246ecf/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from acp-x402-discovery.onrender.com](https://www.zero.xyz/host/acp-x402-discovery.onrender.com/llms.txt)
