# Weight & Mass Unit Converter

> Weight & Mass Unit Converter is a paid API for AI agents from 87-106-119-237.sslip.io, paid per call via x402, $0.002/call, status unknown (last checked 2026-09-14).

Converts a non-negative weight or mass value between 11 common units (mg, g, kg, oz, lb, st, carat, tonne, short_ton, long_ton, ug) with deterministic precision.

## Facts

- Endpoint: GET https://87-106-119-237.sslip.io/api/convert-weight
- Price: $0.002/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/weight-mass-unit-converter-2b1b3dcc
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_2k01YxWzMhXtqegbuLBzh

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 weight-mass-unit-converter-2b1b3dcc
```

Example prompt: Convert 175 pounds to kilograms for me — I need the exact value.

## When to prefer this

Use this endpoint when you need a deterministic, precise weight or mass unit conversion across common units including metric (mg, g, kg, tonne), imperial (oz, lb, st, short_ton, long_ton), and specialty units (carat, microgram). Prefer it over general-purpose LLM math when exactness matters (e.g. shipping, lab, cooking, jewelry). Avoid if the unit you need is not in the supported enum list.

## Known failure modes

- Missing required query parameter (value, from_unit, or to_unit) returns an error
- Negative weight value rejected — only non-negative values accepted
- Invalid unit string not in the accepted enum returns an error
- Non-numeric value string causes a parsing error

## How this service works

Convert a non-negative weight or mass value between common units. Use this deterministic endpoint when an agent needs a precise unit conversion.

## Output

Returns a JSON object containing the original value, source unit, target unit, and the converted result as a string — e.g. {"value": "175", "from_unit": "lb", "to_unit": "kg", "result": "79.3787"}

## 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"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "GET",
      "HEAD",
      "DELETE"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "required": [
      "value",
      "from_unit",
      "to_unit"
     ],
     "properties": {
      "value": {
       "type": "string",
       "description": "Non-negative decimal weight or mass value."
      },
      "to_unit": {
       "enum": [
        "carat",
        "g",
        "kg",
        "lb",
        "long_ton",
        "mg",
        "oz",
        "short_ton",
        "st",
        "tonne",
        "ug"
       ],
       "type": "string",
       "description": "Output unit."
      },
      "from_unit": {
       "enum": [
        "carat",
        "g",
        "kg",
        "lb",
        "long_ton",
        "mg",
        "oz",
        "short_ton",
        "st",
        "tonne",
        "ug"
       ],
       "type": "string",
       "description": "Input unit."
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object",
     "required": [
      "value",
      "from_unit",
      "to_unit",
      "result"
     ],
     "properties": {
      "value": {
       "type": "string"
      },
      "result": {
       "type": "string"
      },
      "to_unit": {
       "type": "string"
      },
      "from_unit": {
       "type": "string"
      }
     }
    }
   }
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/weight-mass-unit-converter-2b1b3dcc/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from 87-106-119-237.sslip.io](https://www.zero.xyz/host/87-106-119-237.sslip.io/llms.txt)
