{"uid":"cap_UGPqIFWJrxDBciuf2bZgI","slug":"qty-deterministic-quantity-parser-and-unit-converter-a95e9fd8","name":"Qty — Deterministic Quantity Parser and Unit Converter","description":"Qty converts known units for free and interprets messy quantities, prices, recipes, sizes, and dates in code. It never invents a number.","url":"https://qty.vercel.app/v1/parse?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"],"properties":{"type":{"type":"string","const":"http"},"method":{"enum":["GET","HEAD","DELETE"],"type":"string"},"queryParams":{"type":"object","properties":{"path":{"type":"string"},"price":{"type":"string"}}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object","properties":{"path":{"type":"string"},"price":{"type":"string"},"method":{"type":"string"}}}}}}},"responseSchema":{"type":"json","example":{"see":{"mcp":"/mcp","docs":"/docs","llms":"/llms.txt","x402":"/.well-known/x402.json","openapi":"/openapi.json","llmsFull":"/llms-full.txt","agentCard":"/.well-known/agent-card.json"},"quantities":[{"unit":"cm","label":"height","value":180.34,"reason":null,"siUnit":"m","formula":"5 ft × 0.3048 m + 11 in × 0.0254 m = 1.8034 m; 1.8034 m = 180.34 cm","siValue":1.8034,"warnings":[],"confidence":0.98,"assumptions":["Feet and inches use the international foot (0.3048 m) and the international inch (0.0254 m)."],"definitionId":"length.foot.international"}]}},"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_JKlBVRluKFH4pkQTWxbpj","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 messy natural-language quantity expressions (measurements, prices, recipes, sizes, dates) and converts them to structured, deterministic numeric values with units and SI equivalents.","exampleAgentPrompt":"Can you parse '5 ft 11 in' and give me the equivalent in centimeters, along with the exact formula used and a confidence score?","exampleUseCases":[{"title":"Recipe measurement normalization","prompt":"I have a recipe that calls for '2 heaping tablespoons of flour' — can you convert that to grams so I can scale it precisely?"},{"title":"Height conversion for medical form","prompt":"My height is listed as 5 feet 11 inches on my US driver's license — what is that in centimeters for a European medical form?"},{"title":"Price per unit normalization","prompt":"One store charges $3.49 per pound and another charges $7.89 per kilogram — can you convert both to price per kilogram so I can compare them?"}],"resultDescription":"Returns a JSON object with an array of parsed quantities, each containing the numeric value, label, unit, SI unit, SI value, the formula used to derive the result, confidence score (0–1), any warnings, and the assumptions made during parsing. Also includes links to docs, MCP, OpenAPI spec, and related resources.","failureModes":["Ambiguous unit string with no resolvable interpretation returns low confidence or error","Missing required 'input' parameter causes a 400-level error","Unsupported or invented unit names may return warnings or null results","Highly contextual quantities without enough information may produce low-confidence results with caveats"],"whenToPreferThis":"Choose this endpoint when you need deterministic, traceable quantity parsing with explicit formulas and confidence scores — especially for cooking, pricing, physical measurements, or any context where inventing or hallucinating a number would be harmful. Prefer it over LLM-based conversion when auditability and reproducibility matter, or when inputs are messy natural-language strings that need to be normalized to SI units reliably.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-12T12:40:56.930Z","isFirstParty":false,"canonicalSlug":"qty-deterministic-quantity-parser-and-unit-converter-a95e9fd8"}