Metric Converter API

API ID 2278

The Metric Converter API provides a simple and efficient method for managing unit conversions.

100% uptime 522 ms avg response

API Documentation

Endpoints

Request

To use this endpoint all you have to do is run it and you will get the different measurements available.

Endpoint ID: 2153
GET https://zylalabs.com/api/2278/metric+converter+api/2153/all+measurements
INPUT PARAMETERS

Free test requests remaining: 3 of 3.

This endpoint does not require any input parameters.

API EXAMPLE RESPONSE
JSON
{"measurements":["acceleration","angle","area","data","density","energy","force","fuelEconomy","illuminance","length","luminance","mass","massFlow","power","pressure","speed","temperature","time","torque","volume","volumeFlow"]}
All Measurements — CODE SNIPPETS

curl --location --request GET 'https://zylalabs.com/api/2278/metric+converter+api/2153/all+measurements' --header 'Authorization: Bearer YOUR_API_KEY' 


    
Request

To use this endpoint, all you have to do is insert in the parameter a measurement.

Endpoint ID: 2154
GET https://zylalabs.com/api/2278/metric+converter+api/2154/all+the+units+of+a+measurement
INPUT PARAMETERS

All the units of a measurement — Endpoint Features

Object Description
measurement Required

Free test requests remaining: 3 of 3.


INPUT PARAMETERS

measurement
API EXAMPLE RESPONSE
JSON
["binary-degrees","clock-positions","compass-points","degrees","diameter-parts","gradians","hexacontades","hour-angles","mils-nato","mils-soviet-union","mils-sweden","minutes","octants","pechus","quadrants","radians","seconds","sectants","sign","turns"]
All the units of a measurement — CODE SNIPPETS

curl --location --request GET 'https://zylalabs.com/api/2278/metric+converter+api/2154/all+the+units+of+a+measurement?measurement=angle' --header 'Authorization: Bearer YOUR_API_KEY' 


    
Request

To use this endpoint all you have to do is insert in the parameter a value, along with 2 units and a measurement.

Endpoint ID: 2160
GET https://zylalabs.com/api/2278/metric+converter+api/2160/obtain+the+conversion+from+one+unit+to+another
INPUT PARAMETERS

Obtain the conversion from one unit to another — Endpoint Features

Object Description
measure Required
value Required
from Required
to Required

Free test requests remaining: 3 of 3.


INPUT PARAMETERS

measure
value
from
to
API EXAMPLE RESPONSE
JSON
{"measure":"length","from":{"abbr":"m","measure":"length","system":"metric","singular":"Meter","plural":"Meters"},"to":{"abbr":"km","measure":"length","system":"metric","singular":"Kilometer","plural":"Kilometers"},"value":1.2,"result":"1.2 km"}
Obtain the conversion from one unit to another — CODE SNIPPETS

curl --location --request GET 'https://zylalabs.com/api/2278/metric+converter+api/2160/obtain+the+conversion+from+one+unit+to+another?measure=length&value=1200&from=m&to=km' --header 'Authorization: Bearer YOUR_API_KEY' 


    
Request

To use this endpoint all you have to do is run it.

Endpoint ID: 2161
GET https://zylalabs.com/api/2278/metric+converter+api/2161/all+measurements+with+unit+details
INPUT PARAMETERS

Free test requests remaining: 3 of 3.

This endpoint does not require any input parameters.

API EXAMPLE RESPONSE
JSON
[{"name":"acceleration","measurements":[{"abbr":"g-force","measure":"acceleration","system":"metric","singular":"g-force","plural":"g-forces"},{"abbr":"m/s2","measure":"acceleration","system":"metric","singular":"Metre per second squared","plural":"Metres per second squared"}]},{"name":"angle","measurements":[{"abbr":"rad","measure":"angle","system":"SI","singular":"radian","plural":"radians"},{"abbr":"deg","measure":"angle","system":"SI","singular":"degree","plural":"degrees"},{"abbr":"grad","measure":"angle","system":"SI","singular":"gradian","plural":"gradians"},{"abbr":"arcmin","measure":"angle","system":"SI","singular":"arcminute","plural":"arcminutes"},{"abbr":"arcsec","measure":"angle","system":"SI","singular":"arcsecond","plural":"arcseconds"}]},{"name":"apparentPower","measurements":[{"abbr":"VA","measure":"apparentPower","system":"SI","singular":"Volt-Ampere","plural":"Volt-Amperes"},{"abbr":"mVA","measure":"apparentPower","system":"SI","singular":"Millivolt-Ampere","plural":"Millivolt-Amperes"},{"abbr":"kVA","measure":"apparentPower","system":"SI","singular":"Kilovolt-Ampere","plural":"Kilovolt-Amperes"},{"abbr":"MVA","measure":"apparentPower","system":"SI","singular":"Megavolt-Ampere","plural":"Megavolt-Amperes"},{"abbr":"GVA","measure":"apparentPower","system":"SI","singular":"Gigavolt-Ampere","plural":"Gigavolt-Amperes"}]},{"name":"area","measurements":[{"abbr":"nm2","measure":"area","system":"metric","singular":"Square Nanometer","plural":"Square Nanometers"},{"abbr":"μm2","measure":"area","system":"metric","singular":"Square Micrometer","plural":"Square Micrometers"},{"abbr":"mm2","measure":"area","system":"metric","singular":"Square Millimeter","plural":"Square Millimeters"},{"abbr":"cm2","measure":"area","system":"metric","singular":"Square Centimeter","plural":"Square Centimeters"},{"abbr":"m2","measure":"area","system":"metric","singular":"Square Meter","plural":"Square Meters"},{"abbr":"ha","measure":"area","system":"metric","singular":"Hectare","plural":"Hectares"},{"abbr":"km2","measure":"area","system":"metric","singular":"Square Kilometer","plural":"Square Kilometers"},{"abbr":"in2","measure":"area","system":"imperial","singular":"Square Inch","plural":"Square Inches"},{"abbr":"yd2","measure":"area","system":"imperial","singular":"Square Yard","plural":"Square Yards"},{"abbr":"ft2","measure":"area","system":"imperial","singular":"Square Foot","plural":"Square Feet"},{"abbr":"ac","measure":"area","system":"imperial","singular":"Acre","plural":"Acres"},{"abbr":"mi2","measure":"area","system":"imperial","singular":"Square Mile","plural":"Square Miles"}]},{"name":"charge","measurements":[{"abbr":"c","measure":"charge","system":"SI","singular":"Coulomb","plural":"Coulombs"},{"abbr":"mC","measure":"charge","system":"SI","singular":"Millicoulomb","plural":"Millicoulombs"},{"abbr":"μC","measure":"charge","system":"SI","singular":"Microcoulomb","plural":"Microcoulombs"},{"abbr":"nC","measure":"charge","system":"SI","singular":"Nanocoulomb","plural":"Nanocoulombs"},{"abbr":"pC","measure":"charge","system":"SI","singular":"Picocoulomb","plural":"Picocoulombs"}]},{"name":"current","measurements":[{"abbr":"A","measure":"current","system":"SI","singular":"Ampere","plural":"Amperes"},{"abbr":"mA","measure":"current","system":"SI","singular":"Milliampere","plural":"Milliamperes"},{"abbr":"kA","measure":"current","system":"SI","singular":"Kiloampere","plural":"Kiloamperes"}]},{"name":"digital","measurements":[{"abbr":"b","measure":"digital","system":"bits","singular":"Bit","plural":"Bits"},{"abbr":"Kb","measure":"digital","system":"bits","singular":"Kilobit","plural":"Kilobits"},{"abbr":"Mb","measure":"digital","system":"bits","singular":"Megabit","plural":"Megabits"},{"abbr":"Gb","measure":"digital","system":"bits","singular":"Gigabit","plural":"Gigabits"},{"abbr":"Tb","measure":"digital","system":"bits","singular":"Terabit","plural":"Terabits"},{"abbr":"B","measure":"digital","system":"bytes","singular":"Byte","plural":"Bytes"},{"abbr":"KB","measure":"digital","system":"bytes","singular":"Kilobyte","plural":"Kilobytes"},{"abbr":"MB","measure":"digital","system":"bytes","singular":"Megabyte","plural":"Megabytes"},{"abbr":"GB","measure":"digital","system":"bytes","singular":"Gigabyte","plural":"Gigabytes"},{"abbr":"TB","measure":"digital","system":"bytes","singular":"Terabyte","plural":"Terabytes"}]},{"name":"each","measurements":[{"abbr":"ea","measure":"each","system":"metric","singular":"Each","plural":"Each"},{"abbr":"dz","measure":"each","system":"metric","singular":"Dozen","plural":"Dozens"}]},{"name":"energy","measurements":[{"abbr":"Wh","measure":"energy","system":"SI","singular":"Watt-hour","plural":"Watt-hours"},{"abbr":"mWh","measure":"energy","system":"SI","singular":"Milliwatt-hour","plural":"Milliwatt-hours"},{"abbr":"kWh","measure":"energy","system":"SI","singular":"Kilowatt-hour","plural":"Kilowatt-hours"},{"abbr":"MWh","measure":"energy","system":"SI","singular":"Megawatt-hour","plural":"Megawatt-hours"},{"abbr":"GWh","measure":"energy","system":"SI","singular":"Gigawatt-hour","plural":"Gigawatt-hours"},{"abbr":"J","measure":"energy","system":"SI","singular":"Joule","plural":"Joules"},{"abbr":"kJ","measure":"energy","system":"SI","singular":"Kilojoule","plural":"Kilojoules"},{"abbr":"MJ","measure":"energy","system":"SI","singular":"Megajoule","plural":"Megajoules"},{"abbr":"GJ","measure":"energy","system":"SI","singular":"Gigajoule","plural":"Gigajoules"}]},{"name":"force","measurements":[{"abbr":"N","measure":"force","system":"SI","singular":"Newton","plural":"Newtons"},{"abbr":"kN","measure":"force","system":"SI","singular":"Kilonewton","plural":"Kilonewtons"},{"abbr":"lbf","measure":"force","system":"SI","singular":"Pound-force","plural":"Pound-forces"}]},{"name":"frequency","measurements":[{"abbr":"mHz","measure":"frequency","system":"SI","singular":"millihertz","plural":"millihertz"},{"abbr":"Hz","measure":"frequency","system":"SI","singular":"hertz","plural":"hertz"},{"abbr":"kHz","measure":"frequency","system":"SI","singular":"kilohertz","plural":"kilohertz"},{"abbr":"MHz","measure":"frequency","system":"SI","singular":"megahertz","plural":"megahertz"},{"abbr":"GHz","measure":"frequency","system":"SI","singular":"gigahertz","plural":"gigahertz"},{"abbr":"THz","measure":"frequency","system":"SI","singular":"terahertz","plural":"terahertz"},{"abbr":"rpm","measure":"frequency","system":"SI","singular":"rotation per minute","plural":"rotations per minute"},{"abbr":"deg/s","measure":"frequency","system":"SI","singular":"degree per second","plural":"degrees per second"},{"abbr":"rad/s","measure":"frequency","system":"SI","singular":"radian per second","plural":"radians per second"}]},{"name":"illuminance","measurements":[{"abbr":"lx","measure":"illuminance","system":"metric","singular":"Lux","plural":"Lux"},{"abbr":"ft-cd","measure":"illuminance","system":"imperial","singular":"Foot-candle","plural":"Foot-candles"}]},{"name":"length","measurements":[{"abbr":"nm","measure":"length","system":"metric","singular":"Nanometer","plural":"Nanometers"},{"abbr":"μm","measure":"length","system":"metric","singular":"Micrometer","plural":"Micrometers"},{"abbr":"mm","measure":"length","system":"metric","singular":"Millimeter","plural":"Millimeters"},{"abbr":"cm","measure":"length","system":"metric","singular":"Centimeter","plural":"Centimeters"},{"abbr":"m","measure":"length","system":"metric","singular":"Meter","plural":"Meters"},{"abbr":"km","measure":"length","system":"metric","singular":"Kilometer","plural":"Kilometers"},{"abbr":"in","measure":"length","system":"imperial","singular":"Inch","plural":"Inches"},{"abbr":"yd","measure":"length","system":"imperial","singular":"Yard","plural":"Yards"},{"abbr":"ft-us","measure":"length","system":"imperial","singular":"US Survey Foot","plural":"US Survey Feet"},{"abbr":"ft","measure":"length","system":"imperial","singular":"Foot","plural":"Feet"},{"abbr":"fathom","measure":"length","system":"imperial","singular":"Fathom","plural":"Fathoms"},{"abbr":"mi","measure":"length","system":"imperial","singular":"Mile","plural":"Miles"},{"abbr":"nMi","measure":"length","system":"imperial","singular":"Nautical Mile","plural":"Nautical Miles"}]},{"name":"mass","measurements":[{"abbr":"mcg","measure":"mass","system":"metric","singular":"Microgram","plural":"Micrograms"},{"abbr":"mg","measure":"mass","system":"metric","singular":"Milligram","plural":"Milligrams"},{"abbr":"g","measure":"mass","system":"metric","singular":"Gram","plural":"Grams"},{"abbr":"kg","measure":"mass","system":"metric","singular":"Kilogram","plural":"Kilograms"},{"abbr":"mt","measure":"mass","system":"metric","singular":"Metric Tonne","plural":"Metric Tonnes"},{"abbr":"oz","measure":"mass","system":"imperial","singular":"Ounce","plural":"Ounces"},{"abbr":"lb","measure":"mass","system":"imperial","singular":"Pound","plural":"Pounds"},{"abbr":"t","measure":"mass","system":"imperial","singular":"Ton","plural":"Tons"}]},{"name":"massFlowRate","measurements":[{"abbr":"kg/s","measure":"massFlowRate","system":"metric","singular":"Kilogram per second","plural":"Kilograms per second"},{"abbr":"kg/h","measure":"massFlowRate","system":"metric","singular":"Kilogram per hour","plural":"Kilograms per hour"},{"abbr":"mt/h","measure":"massFlowRate","system":"metric","singular":"Ton per hour","plural":"Tons per hour"},{"abbr":"lb/s","measure":"massFlowRate","system":"imperial","singular":"Pound per second","plural":"Pounds per second"},{"abbr":"lb/h","measure":"massFlowRate","system":"imperial","singular":"Pound per hour","plural":"Pounds per hour"}]},{"name":"pace","measurements":[{"abbr":"min/km","measure":"pace","system":"metric","singular":"Minute per kilometre","plural":"Minutes per kilometre"},{"abbr":"s/m","measure":"pace","system":"metric","singular":"Second per metre","plural":"Seconds per metre"},{"abbr":"min/mi","measure":"pace","system":"imperial","singular":"Minute per mile"}]},{"_note":"Response truncated for documentation purposes"}]
All Measurements with unit details — CODE SNIPPETS

curl --location --request GET 'https://zylalabs.com/api/2278/metric+converter+api/2161/all+measurements+with+unit+details' --header 'Authorization: Bearer YOUR_API_KEY' 


    

API Access Key & Authentication

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 Metric Converter API simply include your bearer token in the Authorization header.

Headers
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 🎉)

🚀 Enterprise Plan

Starts at
$ 10,000/Year


  • Custom Volume
  • Custom Rate Limit
  • Specialized Customer Support
  • Real-Time API Monitoring

Overview

About the API:  

Users can effortlessly integrate the API into their applications, gaining access to a robust unit converter that accommodates a variety of domains. Whether it is a simple length conversion or a more complex energy conversion, the API provides a complete set of measurements to meet users' diverse needs.

With a wide range of supported measurements, the Metric Converter API fits a wide variety of applications. From acceleration and torque calculation to temperature and data conversion, developers can rely on the API to cover an impressive range of measurement categories. Its versatility makes it an invaluable asset for applications with multifaceted needs.

Integrating the Metric Converter API is a straightforward process for developers. Well-documented API endpoints and intuitive integration guides ensure a seamless experience, allowing developers to quickly access conversion functions. This seamless integration saves time and resources, allowing developers to focus on other critical aspects of their applications.

Accuracy is paramount in unit conversions, and the unit conversion API delivers accurate and reliable results. Users can rely on the API to maintain consistency across all supported measurements, ensuring accurate conversions in all use cases.

The API gives users the freedom to customize the selection of input and output units, tailoring conversions to their specific needs. This flexibility enables applications to deliver personalized user experiences, improving user satisfaction and engagement.

As measurement standards evolve over time, the Metric Converter API is kept up to date with the latest developments. Developers and users can be confident that the API reflects the most current measurement units and values, ensuring accuracy and relevance.

Designed for optimal performance, the Metric Converter API efficiently handles conversion requests, even in high-demand situations. Its optimized performance enables seamless integration into applications without compromising speed and responsiveness.

In conclusion, this API is a valuable tool that simplifies unit conversions for developers and improves the user experience of applications. With a wide range of supported measurements and seamless integration capabilities, developers can quickly equip their applications with a powerful unit converter.

 

What this API receives and what your API provides (input/output)?

It will receive parameters and provide you with a JSON.

 

What are the most common uses cases of this API?

  1. Increased accuracy: Using this API, you can ensure accurate conversions, minimizing the probability of errors and increasing the accuracy of your data.

  2. Increased efficiency: The API streamlines the process, saving valuable time and improving productivity.

  3. Uniformity: With the API's standardized conversion method, you'll enjoy consistent output, mitigating the potential for human error.

  4. Automated workflow: Integrate the API seamlessly into various systems and software to perform automated conversions, optimizing your workflow and increasing efficiency.

  5. Travel and navigation: Travel and navigation applications can use the API to convert distances, speed, making it easier for users to plan routes and estimate travel times.


     

Are there any limitations to your plans?

Besides the number of API calls, there are no other limitations.

Metric Converter API FAQs

There are different plans suits everyone including a free plan for small amount of requests per day, but it’s rate is limit to prevent abuse of the service.

Zyla provides a wide range of integration methods for almost all programming languages. You can use these codes to integrate with your project as you need.

The Metric Converter API provides a simple and efficient method for managing unit conversions.

The response provided by the API is a conversion of the measurements inserted by the user.

Each endpoint returns JSON data. For example, the "GET All Measurements" endpoint provides a list of available measurements, while the "GET Obtain the conversion from one unit to another" endpoint returns the conversion result along with details about the units involved.

Key fields include "measure" (type of measurement), "from" and "to" (details of the units), "value" (input value), and "result" (conversion output). These fields help users understand the conversion context and results.

Parameters vary by endpoint. For instance, the "GET Obtain the conversion" endpoint requires a value, two units, and a measurement type. Users can customize requests by specifying these parameters to get precise conversions.

The response data is structured in JSON format. For example, the "GET All Measurements with unit details" endpoint returns an array of measurement objects, each containing the measurement name and an array of unit details, making it easy to parse and use.

Each endpoint provides specific information: "GET All Measurements" lists measurement types, "GET All the units of a measurement" details units for a specific measurement, and "GET Obtain the conversion" provides conversion results between units.

Users can utilize the returned data by parsing the JSON response to extract relevant fields. For example, after obtaining a conversion result, users can display it in their applications or use it for further calculations, enhancing user experience.

Data accuracy is maintained through regular updates to reflect current measurement standards and values. The API ensures that conversions are consistent and reliable, minimizing errors in user applications.

Typical use cases include travel and navigation apps for distance conversions, scientific applications for energy or temperature conversions, and any software requiring automated unit conversions to enhance user efficiency and accuracy.

General FAQs

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.

Prices are listed in USD (United States Dollar), EUR (Euro), CAD (Canadian Dollar), AUD (Australian Dollar), and GBP (British Pound). We accept all major debit and credit cards. Our payment system uses the latest security technology and is powered by Stripe, one of the world's most reliable payment companies. If you have any trouble paying by card, just contact us at [email protected]

Additionally, if you already have an active subscription in any of these currencies (USD, EUR, CAD, AUD, GBP), that currency will remain for subsequent subscriptions. You can change the currency at any time as long as you don't have any active subscriptions.
The local currency shown on the pricing page is based on the country of your IP address and is provided for reference only. The actual prices are in USD (United States Dollar). When you make a payment, the charge will appear on your card statement in USD, even if you see the equivalent amount in your local currency on our website. This means you cannot pay directly with your local currency.
Occasionally, a bank may decline the charge due to its fraud protection settings. We suggest reaching out to your bank initially to check if they are blocking our charges. Also, you can access the Billing Portal and change the card associated to make the payment. If these does not work and you need further assistance, please contact our team at [email protected]
Prices are determined by a recurring monthly or yearly subscription, depending on the chosen plan.
API calls are deducted from your plan based on successful requests. Each plan comes with a specific number of calls that you can make per month. Only successful calls, indicated by a Status 200 response, will be counted against your total. This ensures that failed or incomplete requests do not impact your monthly quota.
Zyla API Hub works on a recurring monthly subscription system. Your billing cycle will start the day you purchase one of the paid plans, and it will renew the same day of the next month. So be aware to cancel your subscription beforehand if you want to avoid future charges.
To upgrade your current subscription plan, simply go to the pricing page of the API and select the plan you want to upgrade to. The upgrade will be instant, allowing you to immediately enjoy the features of the new plan. Please note that any remaining calls from your previous plan will not be carried over to the new plan, so be aware of this when upgrading. You will be charged the full amount of the new plan.
To check how many API calls you have left for the current month, refer to the 'X-Zyla-API-Calls-Monthly-Remaining' field in the response header. For example, if your plan allows 1,000 requests per month and you've used 100, this field in the response header will indicate 900 remaining calls.

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.

The 'X-Zyla-RateLimit-Reset' header shows the number of seconds until your rate limit resets. This tells you when your request count will start fresh. For example, if it displays 3,600, it means 3,600 seconds are left until the limit resets.

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.

After 7 days, you will be charged the full amount for the plan you were subscribed to during the trial. Therefore, it's important to cancel before the trial period ends. Refund requests for forgetting to cancel on time are not accepted.
When you subscribe to an API free trial, you can make up to 50 API calls. If you wish to make additional API calls beyond this limit, the API will prompt you to perform an "Start Your Paid Plan." You can find the "Start Your Paid Plan" button in your profile under Subscription -> Choose the API you are subscribed to -> Pricing tab.
You can contact us through our chat channel to receive immediate assistance. We are always online from 8 am to 5 pm (EST). If you reach us after that time, we will get back to you as soon as possible. Additionally, you can contact us via email at [email protected]

Please have a look at our Refund Policy: https://zylalabs.com/terms#refund


Related APIs


You might also like