# lilambd Unit Converter

> lilambd Unit Converter is a paid API for AI agents from api.lilambd.com, paid per call via x402, $0.005/call, status unknown (last checked 2026-11-02).

Converts a numeric value from one unit of measurement to another, supporting a wide range of unit types via UCUM or common unit names/symbols.

## Facts

- Endpoint: GET https://api.lilambd.com/units/convert?utm_source=zero.xyz
- Price: $0.005/call
- Payment: x402
- Status: unknown
- Last checked: 2026-11-02
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/lilambd-unit-converter-0c620070
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_m2iP67DtOeqtmxWhVS3Ei

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability lilambd-unit-converter-0c620070
```

Example prompt: Convert 72 degrees Fahrenheit to Celsius — use the from unit 'degF' and to unit 'Cel'.

## When to prefer this

Choose this endpoint when you need programmatic unit conversion with support for UCUM (Unified Code for Units of Measure) identifiers alongside common symbols and names — particularly useful for scientific, medical, or engineering contexts where standard unit codes matter. It is a paid microservice suitable for agent workflows needing reliable, attributed conversions at low per-call cost.

## Known failure modes

- Unknown or misspelled unit identifiers in 'from' or 'to' fields returning empty data array
- Non-numeric value in the 'value' parameter causing parse errors
- Incompatible unit types (e.g. length to mass) returning no valid conversion
- Missing required query parameters returning a 400-level error
- Payment failure via x402 protocol preventing access

## How this service works

A crossing for play, feeling, language, science and computation — creating states that do not have names yet.

## Output

Returns a JSON object with a 'data' array containing the conversion result(s), a 'count' integer, and an 'attribution' string crediting the underlying unit database or license source.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method",
    "queryParams"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "GET"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "required": [
      "value",
      "from",
      "to"
     ],
     "properties": {
      "to": {
       "type": "string",
       "description": "Target unit"
      },
      "from": {
       "type": "string",
       "description": "Source unit (id, symbol, UCUM or name)"
      },
      "value": {
       "type": "string",
       "description": "Number to convert"
      }
     },
     "additionalProperties": {
      "type": "string"
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "json"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "data": [],
  "count": 0,
  "attribution": "source licence line"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/lilambd-unit-converter-0c620070/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.lilambd.com](https://www.zero.xyz/host/api.lilambd.com/llms.txt)
