Unit Conversion API

Programmatic access to 200+ unit conversions. Free, fast, and easy to use.

Getting Started

The unitconvt.com API provides a simple REST interface for unit conversions.

Base URL: https://unitconvt.com/api

Endpoints

GET /api/convert

Convert a value between two units.

Query Parameters:

  • fromUnit (required) — Source unit slug (e.g., meter, kilogram)
  • toUnit (required) — Target unit slug (e.g., foot, pound)
  • value (required) — Number to convert (e.g., 100)

Example Request:

GET /api/convert?fromUnit=meter&toUnit=foot&value=100

Example Response:

{
  "fromUnit": "meter",
  "toUnit": "foot",
  "value": 100,
  "result": 328.084,
  "formula": "100 m × 3.28084 = 328.084 ft"
}

GET /api/categories

List all conversion categories.

Example Response:

{
  "categories": [
    { "id": 1, "slug": "length", "name": "Length", "icon": "ruler" },
    { "id": 2, "slug": "weight", "name": "Weight", "icon": "weight" },
    ...
  ]
}

GET /api/categories/:slug/units

List all units in a specific category.

Path Parameters:

  • slug — Category slug (e.g., length, temperature)

Example Response:

{
  "category": "length",
  "units": [
    { "id": 1, "slug": "meter", "name": "Meter", "symbol": "m", "factor": 1 },
    { "id": 2, "slug": "foot", "name": "Foot", "symbol": "ft", "factor": 0.3048 },
    ...
  ]
}

Available Units

Browse all available unit conversions by category:

Rate Limits

Free Tier (Public API)

  • 100 requests per 15 minutes per IP address
  • Health check endpoint (/health) is not rate limited
  • Rate limit headers included in all responses

Authentication: No API key required for public use. All conversions are freely available.

What happens when you exceed the limit? You'll receive a 429 (Too Many Requests) response with the message:Too many requests from this IP, please try again later.

Support

For questions or issues, visit our contact page or review our terms of service.