Overview
Semver parser and comparator: parse a semantic version into major, minor, patch, prerelease and build parts; compare two versions by precedence including prerelease ordering; or test whether a version satisfies a range expression using caret, tilde, hyphen, x-ranges and comparator sets. Returns the parsed structure, the comparison result and the reason a range did not match.
Protocol
x402
Price
$0.05
Payment Asset
USD Coin
Payment Network
eip155:8453
Category
developer-tools
Provider
duoleads
Indexed
2026-09-29 00:13:45
Health
Status
healthy
Latency (p50)
952ms
Uptime (30d)
98.5%
Reliability Score
89.2/100
Last Checked
2026-10-31 06:57:02
Last Healthy
2026-10-31 06:57:02
Consecutive Failures
0
Output Schema
{
"example": {
"data": {
"build": [
"build",
"5"
],
"canonical": "1.2.3-rc.1+build.5",
"is_prerelease": true,
"major": 1,
"minor": 2,
"patch": 3,
"prerelease": [
"rc",
1
],
"reason": null,
"valid": true
},
"meta": {
"computed_at": "2026-09-28T12:00:00.000Z",
"deterministic": true,
"disclaimer": "Factual output of a deterministic computation over public data. Provided as is, with no warranty of accuracy, completeness or availability. Not investment, financial, legal, tax, medical or any other professional advice, and not a recommendation. Verify before relying on it. Terms: https://api.duoleads.com/terms",
"price_usd": "0.05",
"request_id": "01K6B7Q4ZC8H3F2M9WXR5TYN0D"
},
"ok": true,
"route": "/v1/code/semver",
"version": "1.0.0"
},
"type": "json"
}