{"uid":"cap_aB9THIe-E7AiLq4mDkizF","slug":"delx-commerce-semver-compare-abed129c","name":"Delx Commerce Semver Compare","description":"Pay-per-result APIs for agents. No signup. Exact price. Verifiable delivery. USDC on Base + Solana via x402.","url":"https://commerce.delx.ai/api/v1/x402/semver-compare?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["input","output"],"properties":{"input":{"type":"object","required":["type","bodyType","body"],"properties":{"body":{"type":"object","additionalProperties":true},"type":{"type":"string","const":"http"},"method":{"enum":["POST","PUT","PATCH"],"type":"string"},"bodyType":{"enum":["json","form-data","text"],"type":"string"}},"additionalProperties":false},"output":{"type":"object","required":["type","example"],"properties":{"type":{"type":"string","const":"json"},"example":{"type":"object","additionalProperties":true}}}}},"responseSchema":{"type":"json","example":{}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.001","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.001/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.001","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.001","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_sMOKCCco4F8VtO7TzBP3N","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.001","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Compares two semantic version strings and returns their ordering relationship (greater, lesser, or equal)","exampleAgentPrompt":"Compare semver versions 1.9.3 and 2.0.1 and tell me which one is greater.","exampleUseCases":[{"title":"Dependency upgrade decision check","prompt":"I have two versions of a library — 3.2.11 and 3.11.2 — can you tell me which one is actually newer according to semver rules?"},{"title":"CI pipeline version gate","prompt":"Before we deploy, check whether the build version 4.5.0-beta.1 is ahead of the currently released version 4.4.9."},{"title":"Changelog ordering validation","prompt":"I need to verify that version 1.10.0 is greater than 1.9.9 — can you do a proper semver comparison so I'm not relying on alphabetical sorting?"}],"resultDescription":"A JSON object indicating the ordering relationship between the two provided semantic version strings — typically whether version A is greater than, less than, or equal to version B.","failureModes":["Malformed semver strings (e.g. missing patch component) may cause a 400 or unexpected result","Pre-release identifiers (e.g. 1.0.0-alpha vs 1.0.0) may not be handled correctly if spec deviates from semver 2.0","Payment failure via x402 protocol results in 402 response and no computation","Empty or null version fields will likely cause a validation error","Non-standard version formats like 'v1.2.3' with prefix may be rejected"],"whenToPreferThis":"Choose this endpoint when you need a correct, spec-compliant semver comparison without installing a library or running local code — especially useful in agent workflows where you need a trustless, pay-per-result microcomputation at $0.001 USDC with no account setup required. Prefer it over rolling your own string comparison logic, which commonly fails on cases like 1.10.0 vs 1.9.0.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-02T03:06:09.795Z","isFirstParty":false,"canonicalSlug":"delx-commerce-semver-compare-abed129c"}