Unit Converter API docs

Convert values between units of length, mass, volume, area, speed, temperature, digital storage and time. Pure, precise, and deterministic.

Authentication

All Unit Converter API requests authenticate via two headers. Get your API key from your RapidAPI dashboard after subscribing on the Basic (free) tier or higher.

X-RapidAPI-Key: YOUR_API_KEY
X-RapidAPI-Host: unit-converter-by-helix-api.p.rapidapi.com

Base URL

https://unit-converter-by-helix-api.p.rapidapi.com

Endpoints

GET
/convert

Convert a value between two units

GET
/units

List supported units (optionally by category)

Code Examples

Python

import requests

url = "https://unit-converter-by-helix-api.p.rapidapi.com/convert"
headers = {
    "X-RapidAPI-Key": "YOUR_API_KEY",
    "X-RapidAPI-Host": "unit-converter-by-helix-api.p.rapidapi.com",
}

response = requests.get(url, headers=headers)
print(response.json())

JavaScript

const response = await fetch(
  "https://unit-converter-by-helix-api.p.rapidapi.com/convert",
  {
    method: "GET",
    headers: {
      "X-RapidAPI-Key": "YOUR_API_KEY",
      "X-RapidAPI-Host": "unit-converter-by-helix-api.p.rapidapi.com"
    }
  }
);
const data = await response.json();

cURL

curl -X GET "https://unit-converter-by-helix-api.p.rapidapi.com/convert" \
  -H "X-RapidAPI-Key: YOUR_API_KEY" \
  -H "X-RapidAPI-Host: unit-converter-by-helix-api.p.rapidapi.com"

Response Format

All endpoints return JSON in this consistent envelope:

{
  "status": "ok",
  "data": { /* endpoint-specific payload */ },
  "meta": {
    "cached": false,
    "latency_ms": 142,
    "request_id": "req_abc123"
  },
  "timestamp": "2026-05-21T12:00:00Z"
}

Error Codes

HTTPCodeMeaning
400BAD_REQUESTMissing or invalid parameter
401UNAUTHORIZEDInvalid or missing API key
403FORBIDDENYour plan doesn't include this endpoint
429RATE_LIMIT_EXCEEDEDToo many requests — back off and retry
500INTERNAL_ERRORSomething went wrong on our side
503UPSTREAM_UNAVAILABLEA third-party data source is down

Common Use Cases

Recipe & cooking apps
Engineering tools
Health & fitness
E-commerce internationalization
Educational platforms
3D printing dimension converter
Nutrition label unit conversion
Scientific lab measurement tool
Construction material calculator
Fuel economy converter
Fabric and textile measurement tool
Agricultural land area converter
Medical dosage calculator
Shipping weight and volume converter
HVAC BTU calculator
Photography exposure converter
Brewing recipe unit scaler
Network bandwidth converter
Astronomy distance unit converter
Electrical unit converter

Related APIs

Ready to build with Unit Converter API?

Get API Key on RapidAPI

Start building with real APIs today

Free tier on every API, a live demo on every page, and a guide for each. No credit card to explore.

Helix-API Newsletter

Get new API launches, integration guides, and code examples in your inbox.