{"uid":"cap_LwvDMaU2MmdzR1u7WoMom","slug":"qty-batch-unit-conversion-quantity-parsing-0a43d5e0","name":"Qty Batch Unit Conversion & Quantity Parsing","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/batch?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"},"results":[{"ok":true,"index":0,"quantities":[]},{"ok":false,"error":{"code":"unparsed"},"index":1}]}},"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_zPmci1BwUhy5F6cy-1e5a","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":"Batch-converts units and parses messy quantities, prices, recipe amounts, sizes, and dates deterministically without inventing numbers","exampleAgentPrompt":"I have a bunch of mixed quantity strings like '2.5 kg', '$4.99/lb', '3 cups flour', and '500ml' — can you parse and normalize all of them into canonical numeric values and units in one batch call?","exampleUseCases":[{"title":"Recipe ingredient normalization","prompt":"I'm building a recipe app and need to normalize these ingredient amounts — '1 cup', '250 grams', '2 tablespoons', and '3 oz' — into consistent metric units all at once."},{"title":"Product size parsing from listings","prompt":"I have a bunch of product descriptions with sizes like '10\" x 5\" x 3\"', '1.5L', and '500cc' scraped from a marketplace — can you parse all of them into structured dimensions in one go?"},{"title":"Price string interpretation","prompt":"Can you parse these price strings for me: '$3.49/lb', '€12 per kg', and '¥500 per 100g' — I need the numeric values and units separated so I can compare them."}],"resultDescription":"Returns a JSON array of results, one per input item. Each result includes an ok flag, the item index, and either a quantities array with parsed numeric values and canonical units, or an error object with a code (e.g. 'unparsed') if the input could not be interpreted. Also includes a see map with links to docs, MCP, OpenAPI, and agent card.","failureModes":["Input string is too ambiguous or malformed — returns ok:false with error code 'unparsed'","Missing required 'input' field returns a validation error","Unknown or unsupported unit type may result in unparsed error","Batch items with mixed parseable and unparseable entries return mixed ok/error per index"],"whenToPreferThis":"Choose this endpoint when you need deterministic, non-hallucinated unit conversion or quantity parsing across multiple values in a single call. Ideal for agents processing recipe ingredients, product dimensions, price strings, or any heterogeneous quantity data where accuracy and reliability matter more than generative interpretation. Prefer over LLM-based quantity extraction when you cannot afford invented numbers.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-12T12:38:08.689Z","isFirstParty":false,"canonicalSlug":"qty-batch-unit-conversion-quantity-parsing-0a43d5e0"}