You can use this API to do ANY to ANY unit of measure conversions or integrate a specific conversion into your application.
You can query the Quantities endpoint at runtime to select a quantity to do a conversion for:
GET https://unit-converter2.p.rapidapi.com/Quantities
Donโt forget to add the x-rapidapi-host: unit-converter2.p.rapidapi.com header and your x-rapidapi-key header
Once you selected a quantity you can list the available units of measure for that quantity:
GET https://unit-converter2.p.rapidapi.com/Quantities/{quantity}/Units
substituting {quantity}
with the desired quantity and adding the x-rapidapi-host and x-rapidapi-key headers.
Then you are ready to do the actual conversion:
GET https://unit-converter2.p.rapidapi.com/Quantities/{quantity}?from={from}&to={to}&value={value}
where {quantity}
is the desired quantity, {from}
is the unit of measure to convert from, {to}
is the unit of measure to convert to and {value}
is the value you want to convert.
Again add the x-rapidapi-host and x-rapidapi-key headers.
Different pricing plans are available to suit your use case. All plans are limited to max. 1 request per second. If you require a higher request rate, please reach out so we can provide a customized plan.
If you are missing quantities or units or if you have any suggestions on extending the API, please reach out through the โContactโ button on the About page.