{"uid":"cap_aaNkGr2OUYeZtg4Bq285R","slug":"vextorium-semver-compare-4c6eda7f","name":"Vextorium Semver Compare","description":"232 pay-per-call data APIs for AI agents: official statistics and economy (ECB, Fed, Eurostat, World Bank, SEC, BOE, INE), crypto prices and sentiment, Spanish public data, compliance (sanctions, VAT, IBAN, LEI), science, weather, web and developer tools and local AI text tools. Pay in USDC via x402.","url":"https://api.vextorium.com/v1/semver-compare?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"range":{"type":"string","description":"npm-style range (optional)"},"versions":{"type":"array","items":{"type":"string"},"description":"Versions (1-500)"}}},"responseSchema":{"type":"json","example":{"range":{"best":"1.10.0","pass":["1.2.3","1.10.0"],"range":"^1.2.0"},"sorted":["1.2.3-beta.2","1.2.3"],"largest":"2.0.0","smallest":"1.2.3-beta.2","stablecoins":["1.2.3","1.10.0"]}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.003","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.003/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.003","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.003","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_TNehIlTM3XqxeWkdOCuxs","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.003","costPer":"request","priority":0,"asset":"EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Sorts a list of Semantic Versioning 2.0 version strings, identifies the highest and lowest, computes bump type between two versions, and filters versions matching an npm-style range with the best match.","exampleAgentPrompt":"Sort these semver versions and tell me the highest, lowest, stable ones, and which ones satisfy the ^1.2.0 range: 1.2.3-beta.2, 1.2.3, 1.10.0, 2.0.0.","exampleUseCases":[{"title":"Find latest stable release in list","prompt":"I have these package versions: 2.1.0-alpha.1, 2.0.5, 1.9.8, 2.1.0-beta.3, 2.0.0 — sort them and tell me which is the highest stable release."},{"title":"Filter versions satisfying npm range","prompt":"Which of these versions pass the range >=1.5.0 <2.0.0? Here's my list: 1.4.9, 1.5.0, 1.7.3, 1.9.9-rc.1, 2.0.0, 2.1.0. Also give me the best match."},{"title":"Identify pre-release vs stable versions","prompt":"Can you sort these semver strings and separate the stable versions from the pre-releases? The list is: 3.0.0-beta.1, 2.9.9, 3.0.0, 2.8.0-alpha.2, 2.8.0."}],"resultDescription":"Returns a JSON object with: sorted array of all versions (ascending), the largest version string, the smallest version string, an array of stable (non-pre-release) versions, and if a range was provided, the range string, the array of versions that satisfy it, and the single best matching version.","failureModes":["Empty or missing versions array returns an error","Invalid semver strings (e.g. 'v1.a.b') may be rejected or cause unexpected ordering","Malformed npm range syntax returns an error or no matches","Providing more than 500 versions exceeds the limit","Pre-release ordering edge cases may differ from client-side semver libraries"],"whenToPreferThis":"Use this endpoint when you need server-side semver sorting, filtering, or range matching without bundling a semver library — especially useful in agent pipelines that need to determine the latest compatible release from a list of versions, or validate which versions satisfy a given dependency constraint. Ideal for CI/CD automation, dependency resolution, and release management workflows.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-19T12:46:00.564Z","isFirstParty":false,"canonicalSlug":"vextorium-semver-compare-4c6eda7f"}