hesaplayıcı
Menu

Unit Converter Tools: API and MCP

Unit Converter category REST API and MCP reference for 5 tools: input fields, limits, outputs, example requests and real answers. Free, no key.

GET /api/v1/tools?category=units/mcp/units/api/v1/openapi.json

Area Converter

Id
units.area
Version
1.0.0
Access
Free
Tool page
Area Converter
Schema
GET /api/v1/tools/units.area

Input

FieldTypeConstraintsDefaultDescription
value (required)number≥ 0, ≤ 1,000,000,000,000Area
from (required)stringmm2 | cm2 | m2 | a | daa | ha | km2 | in2 | ft2 | yd2 | ac | mi2From
to (required)stringmm2 | cm2 | m2 | a | daa | ha | km2 | in2 | ft2 | yd2 | ac | mi2To

Output

FieldTypeDescription
resultnumberResult
mm2numberSquare millimeter (mm²)
cm2numberSquare centimeter (cm²)
m2numberSquare meter (m²)
anumberAre (a)
daanumberDecare (dönüm) (daa)
hanumberHectare (ha)
km2numberSquare kilometer (km²)
in2numberSquare inch (in²)
ft2numberSquare foot (ft²)
yd2numberSquare yard (yd²)
acnumberAcre (ac)
mi2numberSquare mile (mi²)

Example request

curl -X POST https://hesaplayici.com/api/v1/tools/units.area/execute \
  -H 'Content-Type: application/json' \
  -d '{"input":{"value":1,"from":"daa","to":"m2"},"locale":"en"}'
Example answer
{
  "output": {
    "result": 1000,
    "mm2": 1000000000,
    "cm2": 10000000,
    "m2": 1000,
    "a": 10,
    "daa": 1,
    "ha": 0.1,
    "km2": 0.001,
    "in2": 1550003.10001,
    "ft2": 10763.9104167,
    "yd2": 1195.9900463,
    "ac": 0.247105381467,
    "mi2": 0.000386102158542
  },
  "steps": [
    {
      "id": "factor",
      "formula": "factor = from unit (m²) / to unit (m²)",
      "substitution": "factor = 1,000 / 1",
      "value": 1000
    },
    {
      "id": "result",
      "formula": "result = value × factor",
      "substitution": "result = 1 × 1,000",
      "value": 1000,
      "unit": "m²"
    }
  ],
  "notes": [],
  "meta": {
    "toolVersion": "1.0.0",
    "locale": "en"
  },
  "citation": {
    "url": "https://hesaplayici.com/en/unit-converter/area-conversion-calculator",
    "title": "Area Converter"
  }
}

Length Converter

Id
units.length
Version
1.0.0
Access
Free
Tool page
Length Converter
Schema
GET /api/v1/tools/units.length

Input

FieldTypeConstraintsDefaultDescription
value (required)number≥ 0, ≤ 1,000,000,000,000Length
from (required)stringmm | cm | m | km | in | ft | yd | mi | nmiFrom
to (required)stringmm | cm | m | km | in | ft | yd | mi | nmiTo

Output

FieldTypeDescription
resultnumberResult
mmnumberMillimeter (mm)
cmnumberCentimeter (cm)
mnumberMeter (m)
kmnumberKilometer (km)
innumberInch (in)
ftnumberFoot (ft)
ydnumberYard (yd)
minumberMile (mi)
nminumberNautical mile (nmi)

Example request

curl -X POST https://hesaplayici.com/api/v1/tools/units.length/execute \
  -H 'Content-Type: application/json' \
  -d '{"input":{"value":1,"from":"mi","to":"km"},"locale":"en"}'
Example answer
{
  "output": {
    "result": 1.609344,
    "mm": 1609344,
    "cm": 160934.4,
    "m": 1609.344,
    "km": 1.609344,
    "in": 63360,
    "ft": 5280,
    "yd": 1760,
    "mi": 1,
    "nmi": 0.868976241901
  },
  "steps": [
    {
      "id": "factor",
      "formula": "factor = from unit (m) / to unit (m)",
      "substitution": "factor = 1,609.344 / 1,000",
      "value": 1.609344
    },
    {
      "id": "result",
      "formula": "result = value × factor",
      "substitution": "result = 1 × 1.609344",
      "value": 1.609344,
      "unit": "km"
    }
  ],
  "notes": [],
  "meta": {
    "toolVersion": "1.0.0",
    "locale": "en"
  },
  "citation": {
    "url": "https://hesaplayici.com/en/unit-converter/length-conversion-calculator",
    "title": "Length Converter"
  }
}

Temperature Converter

Id
units.temperature
Version
1.0.0
Access
Free
Tool page
Temperature Converter
Schema
GET /api/v1/tools/units.temperature

Input

FieldTypeConstraintsDefaultDescription
value (required)number≥ -1,000, ≤ 1,000,000,000Temperature
from (required)stringcelsius | fahrenheit | kelvinFrom
to (required)stringcelsius | fahrenheit | kelvinTo

Output

FieldTypeDescription
resultnumberResult
celsiusnumberCelsius (°C)
fahrenheitnumberFahrenheit (°F)
kelvinnumberKelvin (K)

Example request

curl -X POST https://hesaplayici.com/api/v1/tools/units.temperature/execute \
  -H 'Content-Type: application/json' \
  -d '{"input":{"value":37,"from":"celsius","to":"fahrenheit"},"locale":"en"}'
Example answer
{
  "output": {
    "result": 98.6,
    "celsius": 37,
    "fahrenheit": 98.6,
    "kelvin": 310.15
  },
  "steps": [
    {
      "id": "result",
      "formula": "°F = °C × 9/5 + 32",
      "substitution": "°F = 37 × 9/5 + 32",
      "value": 98.6,
      "unit": "°F"
    },
    {
      "id": "kelvin",
      "formula": "K = °C + 273.15",
      "substitution": "K = 37 + 273.15",
      "value": 310.15,
      "unit": "K"
    }
  ],
  "notes": [],
  "meta": {
    "toolVersion": "1.0.0",
    "locale": "en"
  },
  "citation": {
    "url": "https://hesaplayici.com/en/unit-converter/temperature-conversion-calculator",
    "title": "Temperature Converter"
  }
}

Volume Converter

Id
units.volume
Version
1.0.0
Access
Free
Tool page
Volume Converter
Schema
GET /api/v1/tools/units.volume

Input

FieldTypeConstraintsDefaultDescription
value (required)number≥ 0, ≤ 1,000,000,000,000Volume
from (required)stringml | cm3 | l | m3 | in3 | ft3 | yd3 | usFlOz | usCup | usPt | usQt | usGal | bbl | ukFlOz | ukPt | ukGalFrom
to (required)stringml | cm3 | l | m3 | in3 | ft3 | yd3 | usFlOz | usCup | usPt | usQt | usGal | bbl | ukFlOz | ukPt | ukGalTo

Output

FieldTypeDescription
resultnumberResult
mlnumberMilliliter (mL)
cm3numberCubic centimeter (cm³)
lnumberLiter (L)
m3numberCubic meter (m³)
in3numberCubic inch (in³)
ft3numberCubic foot (ft³)
yd3numberCubic yard (yd³)
usFlOznumberUS fluid ounce (US fl oz)
usCupnumberUS cup (US cup)
usPtnumberUS pint (US pt)
usQtnumberUS quart (US qt)
usGalnumberUS gallon (US gal)
bblnumberOil barrel (bbl)
ukFlOznumberImperial fluid ounce (UK fl oz)
ukPtnumberImperial pint (UK pt)
ukGalnumberImperial gallon (UK gal)

Example request

curl -X POST https://hesaplayici.com/api/v1/tools/units.volume/execute \
  -H 'Content-Type: application/json' \
  -d '{"input":{"value":1,"from":"usGal","to":"l"},"locale":"en"}'
Example answer
{
  "output": {
    "result": 3.785411784,
    "ml": 3785.411784,
    "cm3": 3785.411784,
    "l": 3.785411784,
    "m3": 0.003785411784,
    "in3": 231,
    "ft3": 0.133680555556,
    "yd3": 0.00495113168724,
    "usFlOz": 128,
    "usCup": 16,
    "usPt": 8,
    "usQt": 4,
    "usGal": 1,
    "bbl": 0.0238095238095,
    "ukFlOz": 133.227869541,
    "ukPt": 6.66139347703,
    "ukGal": 0.832674184629
  },
  "steps": [
    {
      "id": "factor",
      "formula": "factor = from unit (L) / to unit (L)",
      "substitution": "factor = 3.785411784 / 1",
      "value": 3.785411784
    },
    {
      "id": "result",
      "formula": "result = value × factor",
      "substitution": "result = 1 × 3.785411784",
      "value": 3.785411784,
      "unit": "L"
    }
  ],
  "notes": [],
  "meta": {
    "toolVersion": "1.0.0",
    "locale": "en"
  },
  "citation": {
    "url": "https://hesaplayici.com/en/unit-converter/volume-conversion-calculator",
    "title": "Volume Converter"
  }
}

Weight Converter

Id
units.weight
Version
1.0.0
Access
Free
Tool page
Weight Converter
Schema
GET /api/v1/tools/units.weight

Input

FieldTypeConstraintsDefaultDescription
value (required)number≥ 0, ≤ 1,000,000,000,000Weight
from (required)stringmg | g | kg | t | oz | lb | stFrom
to (required)stringmg | g | kg | t | oz | lb | stTo

Output

FieldTypeDescription
resultnumberResult
mgnumberMilligram (mg)
gnumberGram (g)
kgnumberKilogram (kg)
tnumberMetric ton (tonne) (t)
oznumberOunce (oz)
lbnumberPound (lb)
stnumberStone (st)

Example request

curl -X POST https://hesaplayici.com/api/v1/tools/units.weight/execute \
  -H 'Content-Type: application/json' \
  -d '{"input":{"value":1,"from":"lb","to":"kg"},"locale":"en"}'
Example answer
{
  "output": {
    "result": 0.45359237,
    "mg": 453592.37,
    "g": 453.59237,
    "kg": 0.45359237,
    "t": 0.00045359237,
    "oz": 16,
    "lb": 1,
    "st": 0.0714285714286
  },
  "steps": [
    {
      "id": "factor",
      "formula": "factor = from unit (g) / to unit (g)",
      "substitution": "factor = 453.59237 / 1,000",
      "value": 0.45359237
    },
    {
      "id": "result",
      "formula": "result = value × factor",
      "substitution": "result = 1 × 0.45359237",
      "value": 0.45359237,
      "unit": "kg"
    }
  ],
  "notes": [],
  "meta": {
    "toolVersion": "1.0.0",
    "locale": "en"
  },
  "citation": {
    "url": "https://hesaplayici.com/en/unit-converter/weight-conversion-calculator",
    "title": "Weight Converter"
  }
}