Documentation

API URL


POST /convert

Headers
Code
Content-Type: application/json
Body Parameters


Example Request

Code
GET /api/v1/unit-conversion/convert?api_key=YOUR_API_KEY&value=100&from=meters&to=feet

Successful Response

Status
HTML
200 OK
Body
Code
{
  "from": "cm",
  "to": "in",
  "value": 100,
  "result": 39.37
}

Error Response

Example
Code
400 INVALID_UNIT – if unit is unknown or unsupported
400 INCOMPATIBLE_UNITS – if units are from different categories
400 INVALID_INPUT – if value is missing or wrong type

Last Updated:  May 4, 2026