{"success":true,"data":{"value":100,"from":"km","to":"mi","category":"length","result":62.13711922373339,"formatted":"62.1371 mi"},"meta":{"disclaimer":"Conversion results are calculated from standard mathematical constants. Always verify safety-critical conversions independently.","cached":false}}
curl --location --request GET 'https://zylalabs.com/api/13008/global+unit+converter+api/26090/convert+a+value?value=100&from=km&to=mi&category=length&precision=4&locale=en-US' --header 'Authorization: Bearer YOUR_API_KEY'
{"success":true,"data":{"value":1,"from":"m","category":"length","conversions":[{"to":"mm","result":1000,"formatted":"1,000.0000 mm"},{"to":"cm","result":100,"formatted":"100.0000 cm"},{"to":"km","result":0.001,"formatted":"0.0010 km"},{"to":"in","result":39.37007874015748,"formatted":"39.3701 in"},{"to":"ft","result":3.280839895013123,"formatted":"3.2808 ft"},{"to":"yd","result":1.0936132983377078,"formatted":"1.0936 yd"},{"to":"mi","result":0.0006213711922373339,"formatted":"0.0006 mi"},{"to":"nmi","result":0.0005399568034557236,"formatted":"0.0005 nmi"}]},"meta":{"disclaimer":"Conversion results are calculated from standard mathematical constants. Always verify safety-critical conversions independently.","cached":false}}
curl --location --request GET 'https://zylalabs.com/api/13008/global+unit+converter+api/26091/convert+to+all+units?value=1&from=m&category=length&precision=2&locale=de-DE' --header 'Authorization: Bearer YOUR_API_KEY'
{"success":true,"data":{"input":"5ft 11in","parsed":[{"value":5,"unit":"ft"},{"value":11,"unit":"in"}],"category":"length","to":"cm","result":180.33999999999997,"formatted":"180.3400 cm"},"meta":{"disclaimer":"Conversion results are calculated from standard mathematical constants. Always verify safety-critical conversions independently.","cached":false}}
curl --location --request GET 'https://zylalabs.com/api/13008/global+unit+converter+api/26092/parse+and+convert?input=5ft 11in&to=cm' --header 'Authorization: Bearer YOUR_API_KEY'
{"success":true,"data":{"results":[{"error":false,"value":100,"from":"km","to":"mi","category":"length","result":62.13711922373339,"formatted":"62.14 mi"},{"error":false,"value":0,"from":"C","to":"F","category":"temperature","result":32,"formatted":"32.00 F"},{"error":false,"value":1,"from":"GB","to":"MB","category":"data_storage","result":1000,"formatted":"1,000.00 MB"}],"summary":{"total":3,"successful":3,"failed":0}},"meta":{"disclaimer":"Conversion results are calculated from standard mathematical constants. Always verify safety-critical conversions independently.","cached":false}}
curl --location --request POST 'https://zylalabs.com/api/13008/global+unit+converter+api/26093/batch+convert' --header 'Authorization: Bearer YOUR_API_KEY'
--data-raw '{
"conversions": [
{ "value": 100, "from": "km", "to": "mi" },
{ "value": 0, "from": "C", "to": "F" },
{ "value": 1, "from": "GB", "to": "MB" }
],
"precision": 2
}'
{"success":true,"data":{"value":0.005,"unit":"m","category":"length","humanized_unit":"mm","result":5,"formatted":"5.0000 mm","humanized":true},"meta":{"disclaimer":"Conversion results are calculated from standard mathematical constants. Always verify safety-critical conversions independently.","cached":false}}
curl --location --request GET 'https://zylalabs.com/api/13008/global+unit+converter+api/26094/humanize+a+value?value=0.005&unit=m' --header 'Authorization: Bearer YOUR_API_KEY'
{"success":true,"data":{"value":1,"from":"cup","to":"g","ingredient":"flour","density_g_per_ml":0.53,"result":125.39164,"formatted":"125.3916 g","approximate":true,"note":"Densities are averages and vary by ingredient, brand, and packing."},"meta":{"disclaimer":"Conversion results are calculated from standard mathematical constants. Always verify safety-critical conversions independently.","cached":false}}
curl --location --request GET 'https://zylalabs.com/api/13008/global+unit+converter+api/26095/cooking+volume+to+mass?from=cup&to=g&ingredient=flour&value=1' --header 'Authorization: Bearer YOUR_API_KEY'
{"success":true,"data":{"ingredients":[{"name":"All-Purpose Flour","aliases":["flour","ap flour","plain flour"],"density_g_per_ml":0.53,"category":"flour"},{"name":"Bread Flour","aliases":["bread flour","strong flour"],"density_g_per_ml":0.54,"category":"flour"},{"name":"Whole Wheat Flour","aliases":["whole wheat flour","wholemeal flour"],"density_g_per_ml":0.6,"category":"flour"},{"name":"Cake Flour","aliases":["cake flour","soft flour"],"density_g_per_ml":0.48,"category":"flour"},{"name":"Granulated Sugar","aliases":["sugar","white sugar"],"density_g_per_ml":0.85,"category":"sugar"},{"name":"Brown Sugar","aliases":["brown sugar","packed brown sugar"],"density_g_per_ml":0.93,"category":"sugar"},{"name":"Powdered Sugar","aliases":["powdered sugar","icing sugar","confectioners sugar"],"density_g_per_ml":0.56,"category":"sugar"},{"name":"Butter","aliases":["butter","unsalted butter"],"density_g_per_ml":0.959,"category":"fat"},{"name":"Water","aliases":["water","tap water"],"density_g_per_ml":1,"category":"liquid"},{"name":"Milk","aliases":["milk","whole milk"],"density_g_per_ml":1.03,"category":"dairy"},{"name":"Heavy Cream","aliases":["heavy cream","whipping cream"],"density_g_per_ml":1.01,"category":"dairy"},{"name":"Honey","aliases":["honey","raw honey"],"density_g_per_ml":1.42,"category":"sweetener"},{"name":"Vegetable Oil","aliases":["vegetable oil","cooking oil"],"density_g_per_ml":0.92,"category":"fat"},{"name":"Olive Oil","aliases":["olive oil","extra virgin olive oil"],"density_g_per_ml":0.91,"category":"fat"},{"name":"Rice","aliases":["rice","white rice","uncooked rice"],"density_g_per_ml":0.78,"category":"grain"},{"name":"Salt","aliases":["salt","table salt","fine salt"],"density_g_per_ml":1.2,"category":"seasoning"},{"name":"Cocoa Powder","aliases":["cocoa powder","cocoa","unsweetened cocoa"],"density_g_per_ml":0.51,"category":"baking"},{"name":"Baking Soda","aliases":["baking soda","bicarbonate of soda"],"density_g_per_ml":0.93,"category":"leavening"},{"name":"Baking Powder","aliases":["baking powder","double-acting baking powder"],"density_g_per_ml":0.81,"category":"leavening"},{"name":"Cornstarch","aliases":["cornstarch","corn starch","cornflour"],"density_g_per_ml":0.51,"category":"starch"},{"name":"Rolled Oats","aliases":["oats","rolled oats","old fashioned oats"],"density_g_per_ml":0.38,"category":"grain"},{"name":"Peanut Butter","aliases":["peanut butter","creamy peanut butter"],"density_g_per_ml":1.09,"category":"spread"},{"name":"Maple Syrup","aliases":["maple syrup","pure maple syrup"],"density_g_per_ml":1.32,"category":"sweetener"},{"name":"Yogurt","aliases":["yogurt","yoghurt","plain yogurt"],"density_g_per_ml":1.03,"category":"dairy"},{"name":"Sour Cream","aliases":["sour cream","soured cream"],"density_g_per_ml":0.96,"category":"dairy"},{"name":"Breadcrumbs","aliases":["breadcrumbs","bread crumbs","dried breadcrumbs"],"density_g_per_ml":0.46,"category":"baking"},{"name":"Parmesan Cheese","aliases":["parmesan","parmesan cheese","grated parmesan"],"density_g_per_ml":0.42,"category":"dairy"},{"name":"Chocolate Chips","aliases":["chocolate chips","choc chips"],"density_g_per_ml":0.72,"category":"baking"}]},"meta":{"disclaimer":"Conversion results are calculated from standard mathematical constants. Always verify safety-critical conversions independently.","cached":false}}
curl --location --request GET 'https://zylalabs.com/api/13008/global+unit+converter+api/26096/list+ingredients' --header 'Authorization: Bearer YOUR_API_KEY'
{"success":true,"data":{"categories":[{"category":"length","units":[{"symbol":"mm","name":"Millimeter","aliases":["millimeter","millimetre","millimeters","millimetres"]},{"symbol":"cm","name":"Centimeter","aliases":["centimeter","centimetre","centimeters","centimetres"]},{"symbol":"m","name":"Meter","aliases":["meter","metre","meters","metres"]},{"symbol":"km","name":"Kilometer","aliases":["kilometer","kilometre","kilometers","kilometres"]},{"symbol":"in","name":"Inch","aliases":["inch","inches","\""]},{"symbol":"ft","name":"Foot","aliases":["foot","feet","'"]},{"symbol":"yd","name":"Yard","aliases":["yard","yards"]},{"symbol":"mi","name":"Mile","aliases":["mile","miles"]},{"symbol":"nmi","name":"Nautical Mile","aliases":["nautical mile","nautical miles"]}]},{"category":"mass","units":[{"symbol":"mg","name":"Milligram","aliases":["milligram","milligrams"]},{"symbol":"g","name":"Gram","aliases":["gram","grams","gramme","grammes"]},{"symbol":"kg","name":"Kilogram","aliases":["kilogram","kilograms","kilo","kilos"]},{"symbol":"t","name":"Tonne","aliases":["tonne","tonnes","metric ton","metric tons"]},{"symbol":"oz","name":"Ounce","aliases":["ounce","ounces"]},{"symbol":"lb","name":"Pound","aliases":["pound","pounds","lbs"]},{"symbol":"st","name":"Stone","aliases":["stone","stones"]},{"symbol":"ton","name":"US Ton","aliases":["us ton","us tons","short ton","short tons"]}]},{"category":"temperature","units":[{"symbol":"C","name":"Celsius","aliases":["celsius","degc","°c"]},{"symbol":"F","name":"Fahrenheit","aliases":["fahrenheit","degf","°f"]},{"symbol":"K","name":"Kelvin","aliases":["kelvin","degk","°k"]},{"symbol":"R","name":"Rankine","aliases":["rankine","degr","°r"]}]},{"category":"volume","units":[{"symbol":"ml","name":"Milliliter","aliases":["milliliter","millilitre","milliliters","millilitres"]},{"symbol":"l","name":"Liter","aliases":["liter","litre","liters","litres"]},{"symbol":"m3","name":"Cubic Meter","aliases":["cubic meter","cubic metre","cubic meters","m^3"]},{"symbol":"tsp","name":"Teaspoon","aliases":["teaspoon","teaspoons"]},{"symbol":"tbsp","name":"Tablespoon","aliases":["tablespoon","tablespoons"]},{"symbol":"fl_oz_us","name":"US Fluid Ounce","aliases":["fl_oz","fl oz","floz","fluid ounce","us fluid ounce"]},{"symbol":"fl_oz_uk","name":"UK Fluid Ounce","aliases":["imperial fluid ounce","uk fluid ounce","imperial fl oz"]},{"symbol":"cup_us","name":"US Cup","aliases":["cup","cups","us cup"]},{"symbol":"cup_metric","name":"Metric Cup","aliases":["metric cup","metric cups"]},{"symbol":"pt_us","name":"US Pint","aliases":["pt","pint","pints","us pint"]},{"symbol":"pt_uk","name":"UK Pint","aliases":["imperial pint","uk pint"]},{"symbol":"qt_us","name":"US Quart","aliases":["qt","quart","quarts","us quart"]},{"symbol":"qt_uk","name":"UK Quart","aliases":["imperial quart","uk quart"]},{"symbol":"gal_us","name":"US Gallon","aliases":["gal","gallon","gallons","us gallon"]},{"symbol":"gal_uk","name":"UK Gallon","aliases":["imperial gallon","uk gallon"]}]},{"category":"speed","units":[{"symbol":"m/s","name":"Meters per Second","aliases":["meters per second","metres per second","mps"]},{"symbol":"km/h","name":"Kilometers per Hour","aliases":["kilometers per hour","kmh","kph"]},{"symbol":"mph","name":"Miles per Hour","aliases":["miles per hour","mi/h"]},{"symbol":"knot","name":"Knot","aliases":["knots","nautical mph"]},{"symbol":"ft/s","name":"Feet per Second","aliases":["feet per second","fps"]}]},{"category":"area","units":[{"symbol":"mm2","name":"Square Millimeter","aliases":["square millimeter","square millimetre","mm^2"]},{"symbol":"cm2","name":"Square Centimeter","aliases":["square centimeter","square centimetre","cm^2"]},{"symbol":"m2","name":"Square Meter","aliases":["square meter","square metre","m^2"]},{"symbol":"km2","name":"Square Kilometer","aliases":["square kilometer","square kilometre","km^2"]},{"symbol":"in2","name":"Square Inch","aliases":["square inch","square inches","in^2"]},{"symbol":"ft2","name":"Square Foot","aliases":["square foot","square feet","ft^2"]},{"symbol":"yd2","name":"Square Yard","aliases":["square yard","square yards","yd^2"]},{"symbol":"ac","name":"Acre","aliases":["acre","acres"]},{"symbol":"ha","name":"Hectare","aliases":["hectare","hectares"]}]},{"category":"energy","units":[{"symbol":"J","name":"Joule","aliases":["joule","joules"]},{"symbol":"kJ","name":"Kilojoule","aliases":["kilojoule","kilojoules"]},{"symbol":"cal","name":"Calorie","aliases":["calorie","calories","small calorie"]},{"symbol":"kcal","name":"Kilocalorie","aliases":["kilocalorie","kilocalories","food calorie"]},{"symbol":"Wh","name":"Watt Hour","aliases":["watt hour","watt-hour","watthour"]},{"symbol":"kWh","name":"Kilowatt Hour","aliases":["kilowatt hour","kilowatt-hour","kwh"]},{"symbol":"BTU","name":"British Thermal Unit","aliases":["btu","british thermal unit","british thermal units"]},{"symbol":"eV","name":"Electronvolt","aliases":["electronvolt","electron volt","ev"]}]},{"category":"pressure","units":[{"symbol":"Pa","name":"Pascal","aliases":["pascal","pascals"]},{"symbol":"kPa","name":"Kilopascal","aliases":["kilopascal","kilopascals"]},{"symbol":"MPa","name":"Megapascal","aliases":["megapascal","megapascals"]},{"symbol":"bar","name":"Bar","aliases":["bars","metric bar"]},{"symbol":"psi","name":"Pounds per Square Inch","aliases":["pound per square inch","pounds per square inch","lbf/in2"]},{"symbol":"atm","name":"Atmosphere","aliases":["atmosphere","atmospheres","standard atmosphere"]},{"symbol":"mmHg","name":"Millimeters of Mercury","aliases":["millimeters of mercury","millimetres of mercury","torr"]},{"symbol":"inHg","name":"Inches of Mercury","aliases":["inches of mercury","in hg"]}]},{"category":"data_storage","units":[{"symbol":"bit","name":"Bit","aliases":["bits","binary digit"]},{"symbol":"B","name":"Byte","aliases":["byte","bytes"]},{"symbol":"KB","name":"Kilobyte","aliases":["kilobyte","kilobytes"]},{"symbol":"MB","name":"Megabyte","aliases":["megabyte","megabytes"]},{"symbol":"GB","name":"Gigabyte","aliases":["gigabyte","gigabytes"]},{"symbol":"TB","name":"Terabyte","aliases":["terabyte","terabytes"]},{"symbol":"PB","name":"Petabyte","aliases":["petabyte","petabytes"]},{"symbol":"KiB","name":"Kibibyte","aliases":["kibibyte","kibibytes"]},{"symbol":"MiB","name":"Mebibyte","aliases":["mebibyte","mebibytes"]},{"symbol":"GiB","name":"Gibibyte","aliases":["gibibyte","gibibytes"]},{"symbol":"TiB","name":"Tebibyte","aliases":["tebibyte","tebibytes"]}]},{"category":"fuel_efficiency","units":[{"symbol":"mpg_us","name":"US Miles per Gallon","aliases":["mpg","us mpg","miles per gallon"]},{"symbol":"mpg_uk","name":"UK Miles per Gallon","aliases":["uk mpg","imperial mpg"]},{"symbol":"L/100km","name":"Liters per 100 Kilometers","aliases":["l/100km","liters per 100km","litres per 100km"]},{"symbol":"km/L","name":"Kilometers per Liter","aliases":["km/l","kilometers per liter","kilometres per litre"]}]},{"category":"time","units":[{"symbol":"ns","name":"Nanosecond","aliases":["nanosecond","nanoseconds"]},{"symbol":"us","name":"Microsecond","aliases":["microsecond","microseconds"]},{"symbol":"ms","name":"Millisecond","aliases":["millisecond","milliseconds"]},{"symbol":"s","name":"Second","aliases":["second","seconds","sec"]},{"symbol":"min","name":"Minute","aliases":["minute","minutes"]},{"symbol":"h","name":"Hour","aliases":["hour","hours","hr"]},{"symbol":"day","name":"Day","aliases":["days","d"]},{"symbol":"week","name":"Week","aliases":["weeks","wk"]},{"symbol":"month","name":"Month","aliases":["months","mo"]},{"symbol":"year","name":"Year","aliases":["years","yr"]}]},{"category":"angle","units":[{"symbol":"deg","name":"Degree","aliases":["degree","degrees","°"]},{"symbol":"rad","name":"Radian","aliases":["radian","radians"]},{"symbol":"grad","name":"Gradian","aliases":["gradian","gradians","gon"]},{"symbol":"arcmin","name":"Arcminute","aliases":["arcminute","arcminutes","minute of arc"]},{"symbol":"arcsec","name":"Arcsecond","aliases":["arcsecond","arcseconds","second of arc"]},{"symbol":"turn","name":"Turn","aliases":["turns","revolution","revolutions"]}]},{"category":"frequency","units":[{"symbol":"Hz","name":"Hertz","aliases":["hertz","hz"]},{"symbol":"kHz","name":"Kilohertz","aliases":["kilohertz","khz"]},{"symbol":"MHz","name":"Megahertz","aliases":["megahertz","mhz"]},{"symbol":"GHz","name":"Gigahertz","aliases":["gigahertz","ghz"]},{"symbol":"THz","name":"Terahertz","aliases":["terahertz","thz"]},{"symbol":"rpm","name":"Revolutions per Minute","aliases":["revolutions per minute","rev/min"]}]},{"category":"power","units":[{"symbol":"W","name":"Watt","aliases":["watt","watts"]},{"symbol":"kW","name":"Kilowatt","aliases":["kilowatt","kilowatts"]},{"symbol":"MW","name":"Megawatt","aliases":["megawatt","megawatts"]},{"symbol":"hp","name":"Horsepower","aliases":["horsepower","mechanical horsepower"]},{"symbol":"PS","name":"Metric Horsepower","aliases":["metric horsepower","ps","pferdestarke"]},{"symbol":"BTU/h","name":"BTU per Hour","aliases":["btu/h","btu per hour","british thermal units per hour"]}]},{"category":"force","units":[{"symbol":"N","name":"Newton","aliases":["newton","newtons"]},{"symbol":"kN","name":"Kilonewton","aliases":["kilonewton","kilonewtons"]},{"symbol":"lbf","name":"Pound-Force","aliases":["pound-force","pound force","poundforce"]},{"symbol":"kgf","name":"Kilogram-Force","aliases":["kilogram-force","kilogram force"]},{"symbol":"dyn","name":"Dyne","aliases":["dyne","dynes"]}]},{"category":"data_rate","units":[{"symbol":"bps","name":"Bits per Second","aliases":["bit/s","bits per second"]},{"symbol":"Kbps","name":"Kilobits per Second","aliases":["kbps","kilobits per second"]},{"symbol":"Mbps","name":"Megabits per Second","aliases":["mbps","megabits per second"]},{"symbol":"Gbps","name":"Gigabits per Second","aliases":["gbps","gigabits per second"]},{"symbol":"Tbps","name":"Terabits per Second","aliases":["tbps","terabits per second"]},{"symbol":"KB/s"}]}]},"_note":"Response truncated for documentation purposes"}
curl --location --request GET 'https://zylalabs.com/api/13008/global+unit+converter+api/26097/list+all+units' --header 'Authorization: Bearer YOUR_API_KEY'
{"success":true,"data":{"category":"temperature","units":[{"symbol":"C","name":"Celsius","aliases":["celsius","degc","°c"]},{"symbol":"F","name":"Fahrenheit","aliases":["fahrenheit","degf","°f"]},{"symbol":"K","name":"Kelvin","aliases":["kelvin","degk","°k"]},{"symbol":"R","name":"Rankine","aliases":["rankine","degr","°r"]}]},"meta":{"disclaimer":"Conversion results are calculated from standard mathematical constants. Always verify safety-critical conversions independently.","cached":false}}
curl --location --request GET 'https://zylalabs.com/api/13008/global+unit+converter+api/26098/list+units+by+category&category=Required' --header 'Authorization: Bearer YOUR_API_KEY'
{"success":true,"data":{"query":"meter","results":[{"symbol":"mm","name":"Millimeter","category":"length"},{"symbol":"cm","name":"Centimeter","category":"length"},{"symbol":"m","name":"Meter","category":"length"},{"symbol":"km","name":"Kilometer","category":"length"},{"symbol":"m3","name":"Cubic Meter","category":"volume"},{"symbol":"m/s","name":"Meters per Second","category":"speed"},{"symbol":"km/h","name":"Kilometers per Hour","category":"speed"},{"symbol":"mm2","name":"Square Millimeter","category":"area"},{"symbol":"cm2","name":"Square Centimeter","category":"area"},{"symbol":"m2","name":"Square Meter","category":"area"},{"symbol":"km2","name":"Square Kilometer","category":"area"},{"symbol":"mmHg","name":"Millimeters of Mercury","category":"pressure"},{"symbol":"L/100km","name":"Liters per 100 Kilometers","category":"fuel_efficiency"},{"symbol":"km/L","name":"Kilometers per Liter","category":"fuel_efficiency"},{"symbol":"kg/m3","name":"Kilograms per Cubic Meter","category":"density"},{"symbol":"g/cm3","name":"Grams per Cubic Centimeter","category":"density"},{"symbol":"N·m","name":"Newton Meter","category":"torque"},{"symbol":"kN·m","name":"Kilonewton Meter","category":"torque"},{"symbol":"kgf·m","name":"Kilogram-Force Meter","category":"torque"},{"symbol":"m3/s","name":"Cubic Meters per Second","category":"flow_rate"}]},"meta":{"disclaimer":"Conversion results are calculated from standard mathematical constants. Always verify safety-critical conversions independently.","cached":false}}
curl --location --request GET 'https://zylalabs.com/api/13008/global+unit+converter+api/26099/search+units?q=meter' --header 'Authorization: Bearer YOUR_API_KEY'
{"success":true,"data":{"categories":[{"category":"length","display_name":"Length","unit_count":9},{"category":"mass","display_name":"Mass","unit_count":8},{"category":"temperature","display_name":"Temperature","unit_count":4},{"category":"volume","display_name":"Volume","unit_count":15},{"category":"speed","display_name":"Speed","unit_count":5},{"category":"area","display_name":"Area","unit_count":9},{"category":"energy","display_name":"Energy","unit_count":8},{"category":"pressure","display_name":"Pressure","unit_count":8},{"category":"data_storage","display_name":"Data Storage","unit_count":11},{"category":"fuel_efficiency","display_name":"Fuel Efficiency","unit_count":4},{"category":"time","display_name":"Time","unit_count":10},{"category":"angle","display_name":"Angle","unit_count":6},{"category":"frequency","display_name":"Frequency","unit_count":6},{"category":"power","display_name":"Power","unit_count":6},{"category":"force","display_name":"Force","unit_count":5},{"category":"data_rate","display_name":"Data Rate","unit_count":8},{"category":"density","display_name":"Density","unit_count":5},{"category":"torque","display_name":"Torque","unit_count":5},{"category":"flow_rate","display_name":"Flow Rate","unit_count":6}]},"meta":{"disclaimer":"Conversion results are calculated from standard mathematical constants. Always verify safety-critical conversions independently.","cached":false}}
curl --location --request GET 'https://zylalabs.com/api/13008/global+unit+converter+api/26100/list+categories' --header 'Authorization: Bearer YOUR_API_KEY'
{"uptime":431467.947423891,"version":"1.0.0","total_unit_count":138,"category_count":19,"ingredient_count":28,"endpoint_count":13,"features":{"convert":true,"convert_all":true,"convert_parse":true,"convert_batch":true,"humanize":true,"cooking":true,"unit_search":true,"openapi_spec":true,"cors":true}}
curl --location --request GET 'https://zylalabs.com/api/13008/global+unit+converter+api/26101/health+check' --header 'Authorization: Bearer YOUR_API_KEY'
After signing up, every developer is assigned a personal API access key, a unique combination of letters and digits provided to access to our API endpoint. To authenticate with the Global Unit Converter API simply include your bearer token in the Authorization header.
| Header | Description |
|---|---|
Authorization
|
Required
Should be Bearer access_key. See "Your API Access Key" above when you are subscribed.
|
No long-term commitment. Upgrade, downgrade, or cancel anytime. Free Trial includes up to 50 requests.
(Save 2 months with annual billing 🎉)
Trusted by leading companies
The Global Unit Converter API converts values between units across 19 categories: length, mass, temperature, volume, speed, area, energy, pressure, data storage, fuel efficiency, time, angle, frequency, power, force, data rate, density, torque, and flow rate — 138 units in total.
It detects the category automatically from the unit you pass, so you never have to specify it. Every conversion returns both a raw result at full floating-point precision and a human-readable formatted string, with caller-controlled decimal precision and locale-aware number formatting (so the same value can render as 62.14 or 62,14 depending on the locale).
Beyond single conversions, the API does the things developers usually have to build by hand:
- Convert to all units: express a value in every other unit of its category in one call, ideal for building converter UIs without a request per unit.
- Compound measurement parsing: parse human-typed input like 5'11", 3 lb 4 oz, and 2h 30min, including feet and inches shorthand, and convert the total.
- Batch conversion: convert up to 50 unit pairs in a single request, with failed items flagged inline so one bad pair never aborts the batch.
- Readable-unit humanizer: express a value in the most readable unit of its category, so 0.005 m becomes 5 mm and 90 minutes becomes 1.5 hours.
- Cooking conversions: convert between volume and mass for common ingredients using average densities, so 1 cup of flour becomes about 125 grams.
- Unit discovery and fuzzy search: list every unit, category, and ingredient, and search units by symbol, name, or alias for autocomplete fields.
The API correctly distinguishes US and imperial units, providing both variants for gallon, quart, pint, and fluid ounce, so conversions are regionally accurate rather than silently wrong.
It is fully stateless — there is no database and no external data at runtime. Every conversion factor is a fixed mathematical constant, so responses are fast, deterministic, and never go out of date. The API is CORS-enabled for direct browser use and returns a consistent JSON envelope on every response, with clear, machine-readable error codes.
No. The category is detected automatically from the unit you pass, so a request like from=km&to=mi just works. You only need the optional category parameter in the rare case where a unit name could belong to more than one category, and even then the unit set is built to avoid those collisions, so in practice you'll almost never need it.
Result is the raw conversion at full floating-point precision — use it for your own calculations. formatted is a display-ready string rounded to the precision you request (default 4 decimals) and formatted for the locale you request (default en-US). Changing precision or locale only affects formatted; result always stays at full precision.
You can convert between any two units within the same category — kilometres to miles, Celsius to Fahrenheit, gigabytes to mebibytes. Conversions across different categories are not valid and return an error, since there is no meaningful conversion between, say, a distance and a weight. The cooking endpoint is the one deliberate exception, converting between volume and mass for specific ingredients using their density.
Gallons, quarts, pints, and fluid ounces differ between the US and imperial (UK) systems, so both are provided with explicit names like gal_us and gal_uk. If you pass a bare unit like gal, pt, or cup, it resolves to the US variant. To force imperial, use the explicit UK symbol.
Cooking conversions use average densities for each ingredient and are explicitly flagged as approximate in every response. Real densities vary by brand, sifting, and packing, so treat the result as a close estimate suitable for recipes rather than a precise measurement.
No. The API is fully stateless with no database. The values and units you submit are processed in memory to compute the response and are never stored. Every conversion factor is a fixed mathematical constant, so results are fast, deterministic, and never go out of date.
Yes. The units, categories, and ingredient-listing endpoints return the complete catalogue of everything the API supports, including symbols, names, and aliases. You can build dynamic unit and category pickers directly from these responses without hardcoding any values.
Each endpoint returns JSON data structured with a success flag, data object, and meta information. The data object varies by endpoint; for example, the "Convert a Value" endpoint returns the conversion result, while "List Units" provides unit details grouped by category.
Key fields include "success" (boolean), "data" (contains conversion results or lists), and "meta" (provides additional info like disclaimers). For conversion endpoints, "result" and "formatted" fields show the raw and human-readable outputs, respectively.
Parameters vary by endpoint. For "Convert a Value," you need "from" and "to" units. The "Batch Convert" endpoint accepts an array of unit pairs. Optional parameters include "precision" for decimal control and "locale" for formatting.
The response data is organized into three main sections: "success" indicates if the request was successful, "data" contains the relevant output (like conversion results or lists), and "meta" provides additional context, such as disclaimers or caching status.
Each endpoint provides specific information: "Convert a Value" gives conversion results, "List Units" details available units, "Parse and Convert" interprets compound measurements, and "Cooking Volume to Mass" offers ingredient-specific conversions.
Users can customize requests by specifying parameters like "from," "to," "precision," and "locale." For batch conversions, users can submit multiple unit pairs in a single request, allowing for efficient processing of conversions.
Typical use cases include building unit converter applications, integrating measurement conversions in e-commerce platforms, developing educational tools for teaching measurements, and creating recipe applications that require ingredient conversions.
Data accuracy is maintained through fixed mathematical constants for conversions, ensuring consistent results. The API is stateless, meaning it does not rely on external data sources, and every conversion is calculated independently, providing reliable outputs.
To obtain your API key, first sign in to your account and navigate to the API you want to use. From the API's Pricing section, choose a plan and complete the subscription process. Once subscribed, return to the API page and you will see your API Access Key displayed at the top of the documentation page. You can use this key to authenticate your requests.
You can’t switch APIs during the free trial. If you subscribe to a different API, your trial will end and the new subscription will start as a paid plan.
The free trial lasts for 7 days and allows you to make up to 50 API requests.
No, the free trial is available only once, so we recommend using it on the API that interests you the most. Most of our APIs offer a free trial, but some may not include this option.
Yes. If the API offers a free trial, you will see a "Free 7-Day Trial" option in its Pricing section. The trial lasts for 7 days and allows up to 50 API requests, enabling you to evaluate the API before subscribing to a paid plan.
Zyla API Hub is like a big store for APIs, where you can find thousands of them all in one place. We also offer dedicated support and real-time monitoring of all APIs. Once you sign up, you can pick and choose which APIs you want to use. Just remember, each API needs its own subscription. But if you subscribe to multiple ones, you'll use the same key for all of them, making things easier for you.
You can monitor your API usage through the response headers included with every request:
x-zyla-api-calls-monthly-used: Shows the total number of API requests you have used during the current billing period.
x-zyla-api-calls-monthly-remaining: Shows the number of API requests you have remaining for the current billing period.
Yes, you can cancel your subscription at any time. Simply go to the Pricing section of the API you're subscribed to and click the "Unsubscribe" button.
Please note that upgrades, downgrades, and cancellations take effect immediately. Once your subscription is canceled, access to the service will end immediately, regardless of any remaining API calls in your quota.
Please have a look at our Refund Policy: https://zylalabs.com/terms#refund