Skip to content
Fourohtwo

api.duoleads.com/v1/code/semver

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.

BaseAnswering
GEThttps://api.duoleads.com/v1/code/semver

Uptime100% of 5 checks in 30 days

30 days agoToday

Try it

Pays from your browser wallet in USDC on Base or USDG on Robinhood Chain, whichever the endpoint takes. The provider is paid directly; failed calls aren't refunded by Fourohtwo.

The response shows up here.

Call it from an agent

// npm install fourohtwo
import { createPayer } from "fourohtwo";

// One agent key pays USDC on Base or USDG on Robinhood Chain, inside your spending rules.
const pay = createPayer({ privateKey: process.env.AGENT_KEY, maxPerCallUsd: "0.05" });
const res = await pay("https://api.duoleads.com/v1/code/semver?version=1.2.3-rc.1%2Bbuild.5");
console.log(await res.json());

Example input

{
  "version": "1.2.3-rc.1+build.5"
}

More from Duo Data UtilitiesProvider status

api.duoleads.com/v1/code/semver by Duo Data Utilities · x402 API | Fourohtwo