{"uid":"cap_by6EVgkSa7pZRKU_DqQjC","slug":"semver-tools-api-79777da8","name":"Semver Tools API","description":"Parse a semantic version, compare two versions, test a version against a range (^, ~, >=, <, exact), and compute the next major/minor/patch bump.","url":"https://api.24klabs.ai/api/semver-tools","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"op":{"type":"string"},"range":{"type":"string"},"version":{"type":"string"}}},"responseSchema":{"type":"json","example":{"satisfies":true}},"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_Pa9DCgk9J1qUnv9LqWDUx","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":"Parse, compare, range-test, and bump semantic versions (major/minor/patch) with support for caret, tilde, and comparison range operators.","exampleAgentPrompt":"Check if version 1.5.3 satisfies the range ^1.4.0, and also tell me what the next minor bump would be.","exampleUseCases":[{"title":"Validate dependency compatibility in CI","prompt":"Does version 2.3.1 satisfy the range >=2.0.0 <3.0.0? I need to know before merging this pull request."},{"title":"Automate release version bump","prompt":"We just shipped a bug fix — what's the next patch version after 4.2.7?"},{"title":"Compare two package versions","prompt":"Which is newer, 1.10.0 or 1.9.5? I need to know which one to install."}],"resultDescription":"Returns parsed version components (major, minor, patch, prerelease, build), comparison results (e.g. which version is greater), a boolean indicating whether the version satisfies the given range, and the computed next version string for the requested bump type.","failureModes":["Invalid semver string returns a parse error","Malformed range expression (e.g. unsupported operators) returns a validation error","Missing required fields in the request body returns a 400 error","Non-semver version strings (e.g. date-based versions) may fail parsing"],"whenToPreferThis":"Use this endpoint when you need programmatic semver parsing, comparison, or bumping without importing a library — especially useful in serverless agents, no-code pipelines, or environments where npm/semver packages are unavailable. Prefer it over manual string parsing when range operators (^, ~, >=, <) must be evaluated correctly.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-13T19:00:05.843Z","isFirstParty":false}