{"uid":"cap_vyrGj-g9iL1TF9R-QKHGw","slug":"unit-converter-api-fdb3ccad","name":"Unit Converter API","description":"Convert a value between units (length, mass, volume, area, speed, time, data, temperature).","url":"https://unit-converter.pdfextractapi.workers.dev/convert","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":{"required":["value","from","to"],"properties":{"to":{"type":"string","description":"Target unit, must be in the same category as 'from'."},"from":{"type":"string","description":"Source unit, e.g. 'mi', 'kg', 'c', 'gb'."},"value":{"type":"number","description":"The numeric value to convert."}}},"type":{"type":"string","const":"http"},"method":{"enum":["POST"],"type":"string"},"bodyType":{"enum":["json","form-data","text"],"type":"string"}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object"}}}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.005","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"registry","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.005/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.005","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.005","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_29z7Mt6KPX8YECZVHbVsM","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.005","costPer":"request","priority":0,"asset":null,"unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Converts a numeric value from one unit to another across categories including length, mass, volume, area, speed, time, data, and temperature.","exampleAgentPrompt":"Convert 26.2 miles to kilometers for me.","exampleUseCases":[{"title":"Recipe unit conversion for cooking","prompt":"I have a recipe that calls for 250 grams of flour but I only have a cups measurement — can you convert 250 grams to cups?"},{"title":"Data storage size conversion","prompt":"How many gigabytes is 2048 megabytes? I need the exact number."},{"title":"Temperature conversion for travel","prompt":"It's going to be 95 degrees Fahrenheit at my destination — what is that in Celsius so I can tell my family back home?"}],"resultDescription":"Returns the converted numeric value in the target unit, given the source value and unit pair.","failureModes":["Mismatched unit categories (e.g. converting 'kg' to 'km') result in an error since units must belong to the same category","Invalid or unrecognized unit abbreviations cause a bad request error","Non-numeric value input returns a validation error","Missing required fields (value, from, to) result in schema validation failure"],"whenToPreferThis":"Choose this endpoint when you need a fast, cheap, deterministic unit conversion across standard measurement categories (length, mass, volume, area, speed, time, data, temperature) without needing to parse natural language or handle complex compound unit conversions. Ideal for agent pipelines where unit normalization is a discrete step.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-15T06:35:45.616Z","isFirstParty":false}