{
  "x402Version": 2,
  "id": 5909,
  "slug": "5909",
  "resource": "https://402utils.com/v1/unit-convert",
  "description": "Convert a value between units in the same physical dimension: length, mass, volume, temperature, area, speed, data, energy, pressure, time, angle. Factors are exact SI constants (NIST SP 811) — deterministic, unlike an LLM's guess. Pass ?category=currency to convert ISO 4217 amounts at ECB reference rates instead (informational, not for pricing). Unknown units → 400 with a suggestion.",
  "type": "http",
  "accepts": [
    {
      "scheme": "exact",
      "network": "eip155:8453",
      "payTo": "0xc55A2D530b53CBaD1001e4AfD4720B7E71f9C291",
      "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
      "amount": "1000",
      "maxTimeoutSeconds": 60
    }
  ],
  "outputSchema": {
    "bazaar": {
      "info": {
        "input": {
          "body": {
            "from": "celsius",
            "to": "fahrenheit",
            "value": 100
          },
          "bodyType": "json",
          "method": "POST",
          "type": "http"
        },
        "output": {
          "example": {
            "category": "temperature",
            "from": "celsius",
            "result": 212,
            "to": "fahrenheit",
            "value": 100
          },
          "type": "json"
        }
      },
      "schema": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "properties": {
          "input": {
            "additionalProperties": false,
            "properties": {
              "body": {
                "description": "The value plus source and target units. Query ?category=currency switches to FX.",
                "properties": {
                  "from": {
                    "description": "Source unit (e.g. mile, kg, celsius) or ISO 4217 code for currency.",
                    "type": "string"
                  },
                  "to": {
                    "description": "Target unit (same dimension as `from`).",
                    "type": "string"
                  },
                  "value": {
                    "description": "The amount to convert.",
                    "type": "number"
                  }
                },
                "required": [
                  "value",
                  "from",
                  "to"
                ],
                "type": "object"
              },
              "bodyType": {
                "enum": [
                  "json",
                  "form-data",
                  "text"
                ],
                "type": "string"
              },
              "method": {
                "enum": [
                  "POST"
                ],
                "type": "string"
              },
              "type": {
                "const": "http",
                "type": "string"
              }
            },
            "required": [
              "type",
              "method",
              "bodyType",
              "body"
            ],
            "type": "object"
          },
          "output": {
            "properties": {
              "example": {
                "properties": {
                  "category": {
                    "description": "The detected dimension (or \"currency\").",
                    "type": "string"
                  },
                  "date": {
                    "description": "Present for currency: the effective ECB business day.",
                    "type": "string"
                  },
                  "from": {
                    "type": "string"
                  },
                  "rate": {
                    "description": "Present for currency: units of `to` per unit of `from`.",
                    "type": "number"
                  },
                  "result": {
                    "description": "The converted value.",
                    "type": "number"
                  },
                  "source": {
                    "description": "Present for currency: \"ECB\".",
                    "type": "string"
                  },
                  "to": {
                    "type": "string"
                  },
                  "value": {
                    "type": "number"
                  }
                },
                "required": [
                  "value",
                  "from",
                  "to",
                  "category",
                  "result"
                ],
                "type": "object"
              },
              "type": {
                "type": "string"
              }
            },
            "required": [
              "type"
            ],
            "type": "object"
          }
        },
        "required": [
          "input"
        ],
        "type": "object"
      }
    }
  },
  "tags": [
    "bazaar"
  ],
  "sourceHost": "402utils.com",
  "lastUpdated": "2026-08-24T00:46:13.053Z",
  "quality": {
    "calls30d": 1,
    "uniquePayers30d": 1,
    "lastCalledAt": "2026-08-24T00:46:11.494Z"
  },
  "liveness": {},
  "verified": false,
  "featured": false,
  "provider": {
    "host": "402utils.com",
    "manifest_name": "402utils.com",
    "source": "cdp-mirror",
    "source_manifest_url": "https://api.cdp.coinbase.com/platform/v2/x402/discovery/resources",
    "submitted_at": "2026-09-18T22:00:31.484Z"
  }
}