{"uid":"cap_kkQAoVIZfCC8Rfean8uhc","slug":"saylor-innovations-semver-range-e8333711","name":"Saylor Innovations Semver Range","description":"Semver range check - does a version satisfy ^, ~, x-range or || ranges","url":"https://saylorinnovations.com/api/semver/satisfies?utm_source=zero.xyz","method":"GET","headers":{},"bodySchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["input"],"properties":{"input":{"type":"object","required":["type","method","queryParams"],"properties":{"type":{"type":"string","const":"http"},"method":{"enum":["GET"],"type":"string"},"queryParams":{"type":"object","required":["version","range"],"properties":{"range":{"type":"string","description":"required range such as ^1.2.0 or >=2 <3 || 4.x (query)"},"version":{"type":"string","description":"required version (query)"}}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string","const":"json"},"example":{"type":"object","required":["version","range","satisfies"],"properties":{"range":{"type":"string","description":"Range covered by the data"},"version":{"type":"string","description":"Version identifier"},"satisfies":{"type":"boolean"},"scope_note":{"type":"string","description":"What this data covers and what it leaves out"},"prerelease_note":{"type":["null"]},"matched_alternative":{"type":"number","description":"Matched alternative"}},"additionalProperties":true},"description":{"type":"string"}}}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.01","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.01/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_R97QPt353V-pGlMR_NoWX","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.01","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Checks whether a given semantic version string satisfies a specified version range expression (^, ~, x-range, || ranges)","exampleAgentPrompt":"Does version 2.3.1 satisfy the semver range ^2.0.0 || >=3.0.0 <4.0.0?","exampleUseCases":[{"title":"Dependency compatibility check in CI","prompt":"Before I deploy, check whether version 1.4.7 of the library satisfies the range ^1.2.0 — I need to know if it's compatible."},{"title":"Package manager constraint validation","prompt":"My project requires numpy >=1.21 <2.0, and the installed version is 1.23.5. Does that version satisfy the range >=1.21.0 <2.0.0?"},{"title":"Compound range OR condition check","prompt":"Can you tell me if version 4.0.0 satisfies the range ~3.9.0 || >=4.0.0 <5.0.0?"}],"resultDescription":"Returns a JSON object containing the queried version, the range expression, a boolean 'satisfies' field indicating whether the version matches the range, and optionally a 'matched_alternative' number (for || compound ranges) and a 'scope_note' describing coverage.","failureModes":["Missing required 'version' query parameter returns an error","Missing required 'range' query parameter returns an error","Malformed semver version string (e.g. 'abc') may return an error or false","Invalid range syntax may cause a parse error response","Payment not processed returns a 402 status"],"whenToPreferThis":"Use this endpoint when you need a quick, stateless API call to validate semver compatibility without importing a Node.js/npm semver library or running code locally. Ideal for pipelines, agents, or serverless functions that need to check version constraints on-the-fly with no runtime dependency on semver tooling.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-11-20T19:08:54.868Z","isFirstParty":false,"canonicalSlug":"saylor-innovations-semver-range-e8333711"}