API URL
GET /convert
Headers
Code
Content-Type: application/jsonQuery Parameters
Param
Type
Description
value
required
number
Numeric value to convert
from
required
string
Unit to convert from
to
required
string
Unit to convert to
category
optional
string
Measurement category (length weight volume temperature area)
Example GET Request
Code
GET /api/v1/unit-conversion/convert?api_key=YOUR_API_KEY&value=100&from=meters&to=feetSuccessful Response
Status
HTML
200 OKBody
Code
{
"success": true,
"data": {
"original": {
"value": 100,
"unit": "meters",
"category": "length"
},
"converted": {
"value": 328.084,
"unit": "feet",
"category": "length"
},
"conversion_factor": 3.28084,
"precision": 6
},
"meta": {
"correlation_id": "conv_abc123",
"processing_time": "5ms",
"timestamp": "2026-04-06T00:00:00.000Z"
}
}Field
Type
success
boolean
data
object
data.original
object
data.converted
object
data.conversion_factor
number
data.precision
number
meta
object
meta.correlation_id
string
meta.processing_time
string
meta.timestamp
string
error
string
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 typeLast Updated: May 4, 2026