{"uid":"cap_ZShE4xFCIX_B_cRaqCZuj","slug":"qty-compare-prices-3159186c","name":"Qty Compare Prices","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/compare-prices?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"},"comparison":{"baseUnit":"L","currency":"GBP","cheaperIndex":1}}},"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_3G8l6gnsIt-5Ihtj9KtGu","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":"Compares two or more prices by normalising them to a common base unit and identifies which is cheapest per unit","exampleAgentPrompt":"Which is better value: a 2-litre bottle of olive oil for £8.50, or a 750ml bottle for £3.20? Compare the price per litre and tell me which one is cheaper.","exampleUseCases":[{"title":"Grocery unit price comparison","prompt":"I'm at the supermarket — a 400g tin of chickpeas costs 89p and a 800g tin costs £1.65. Which one is cheaper per gram?"},{"title":"Recipe ingredient bulk buy check","prompt":"Is it cheaper to buy 3 × 500ml bottles of soy sauce at £1.20 each, or one 2L bottle for £4.50? Give me the price per litre for both."},{"title":"Fuel or liquid cost benchmarking","prompt":"Compare these two fuel prices for me: 147.9p per litre at one station versus £62 for 40 litres at another — which is the better rate?"}],"resultDescription":"A JSON object containing the normalised base unit used for comparison (e.g. 'L', 'kg'), the currency detected, and a cheaperIndex indicating which of the supplied prices is the best value per base unit. Also includes links to docs and related endpoints.","failureModes":["Unparseable price string (ambiguous currency or malformed number) — returns an error or null comparison","Unit mismatch where units cannot be reconciled (e.g. comparing volume to weight) — returns an error","Missing required 'price' query parameter — returns 400-level error","Ambiguous quantity with no deterministic interpretation — service refuses to invent a number and returns an error"],"whenToPreferThis":"Use this endpoint when you need a deterministic, reliable unit-price comparison across two or more items with different pack sizes or units. Prefer it over LLM reasoning or custom code when accuracy is critical and you cannot risk an invented or hallucinated number. Ideal for grocery, retail, recipe, and procurement scenarios where 'best value' must be calculated from real quantities.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-12T12:35:08.387Z","isFirstParty":false,"canonicalSlug":"qty-compare-prices-3159186c"}