{"uid":"cap_WRXmB3-xf1rZl1K_CT-EN","slug":"semver-parse-03c067b9","name":"Semver Parse","description":"Parse a semantic version into major/minor/patch, prerelease and build metadata.","url":"https://semver.openverbs.com/v1/parse","method":"POST","headers":{},"bodySchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["input"],"properties":{"input":{"type":"object","required":["type","method","bodyType","body"],"properties":{"body":{"type":"object","required":["version"],"properties":{"version":{"type":"string","maxLength":256,"minLength":1,"description":"The semantic version to parse, e.g. \"1.2.3-beta.1+build\"."}},"additionalProperties":false},"type":{"type":"string","const":"http"},"method":{"enum":["POST"],"type":"string"},"bodyType":{"enum":["json","form-data","text"],"type":"string"}},"additionalProperties":false}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.002","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.002/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.002","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.002","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_WUytVb1Lp3IQBJB0ubUfa","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.002","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Parses a semantic version string into its constituent components: major, minor, patch, prerelease, and build metadata.","exampleAgentPrompt":"Can you parse the version string '3.1.0-beta.2+exp.sha.5114f85' and tell me what the major, minor, patch, prerelease, and build metadata parts are?","exampleUseCases":[{"title":"CI pipeline version inspection","prompt":"I need to know the major, minor, and patch numbers from the release tag '2.5.0-rc.1+build.42' so I can decide whether to trigger a major-version deployment step."},{"title":"Changelog generator preprocessing","prompt":"Parse '1.14.3-alpha.1' into its semver components so I can generate the right section header in the changelog."},{"title":"Package compatibility check","prompt":"Break down the version string '0.9.11-pre.3+nightly.20240601' into its parts — I need to check whether the prerelease tag is present before publishing to the registry."}],"resultDescription":"Returns a structured object containing the parsed components of the semantic version: major (integer), minor (integer), patch (integer), prerelease (string or array of identifiers), and build metadata (string or array), derived from the input version string.","failureModes":["Invalid or malformed semver string returns a parse error","Version string exceeding 256 characters is rejected","Missing or empty version field returns a validation error","Non-semver formats (e.g. date-based versions like '2024.06.01') may fail to parse"],"whenToPreferThis":"Choose this endpoint when you need to programmatically decompose a semantic version string into its named components (major, minor, patch, prerelease, build metadata). It is ideal for CI/CD pipelines, package managers, changelog generators, or any workflow that needs to inspect or route based on individual parts of a version number. Prefer this over string-splitting heuristics when correctness per the semver spec matters.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-14T12:34:21.850Z","isFirstParty":false}