South Star

Unit Converter Length Mass Temperature Volume Area Speed API

Free tier included · Tools
Convert between units across 10 categories with bulk and all-unit endpoints.

Unit Converter API converts values between units in 10 categories: length, mass, temperature, volume, area, speed, data, time, energy and pressure.

The service is offline and stateless: all factors are exact SI definitions (NIST SP 811, international foot/pound, ac = 43560 ft², IT BTU, Julian year) and every pair is checked against pint. There are no external calls, no databases and no request logs. Unit symbols are case-insensitive, so `GiB` and `gib` are the same unit.

Honest limits: temperatures (c/f/k) are checked against absolute zero (-273.15 °C) and rejected with 422 when below it. Input `value` must be a finite number (no inf/nan). Unit names and categories are capped at 32 characters. Bulk requests accept up to 100 items. Results are rounded to 6 decimal places for single conversions and 12 significant digits for bulk/all conversions.

Endpoints

MethodPathWhat it does
GET/API metadata: name, version, and links to the interactive docs and health endpoint.
GET/healthLiveness probe; returns status "ok" while the process is up.
GET/categoriesList every supported category and the units of the temperature category.
GET/unitsList the unit symbols registered in a given category. Category names are case-sensitive; unit symbols are not.
GET/convertConvert a value from one unit to another within the same category. Unit symbols are case-insensitive. Temperatures below absolute zero are rejected with 422.
POST/convert/bulkConvert up to 100 values in one call. Body: {"items": [{"value": 10, "from": "km", "to": "mi"}]}. Results are returned in input order, rounded to 12 significant digits.
GET/convert/allConvert a value into every unit of its category at once. Ideal for dashboards and comprehensive displays.

Quick start

curl -X GET "https://unit.p.rapidapi.com/categories" \
  -H "X-RapidAPI-Key: YOUR_RAPIDAPI_KEY" \
  -H "X-RapidAPI-Host: unit.p.rapidapi.com"

FAQ

Does the API make any external network calls?

No. All conversions use exact SI factors embedded in the service. There are no databases, no third-party calls and no request logs.

Can I convert between any two units in a category?

Yes, as long as both units belong to the same category. Use GET /categories and GET /units to look up valid units. Unit symbols are case-insensitive.

How many conversions can I do in one request?

Up to 100 items per POST /convert/bulk call. GET /convert/all converts one value into every unit of its category in a single response.

What happens if I try to convert a temperature below absolute zero?

The API rejects it with HTTP 422 and a validation error. Temperatures are checked against absolute zero (-273.15 °C).

Try Unit Converter Length Mass Temperature Volume Area Speed free

Free tier on every plan. Get an API key and start calling in under a minute.

Open on RapidAPI

Related APIs