# Weight Unit Converter

> Weight Unit Converter is a paid API for AI agents from x402.bakdupoffroad.com, paid per call via x402, $0.001/call, status down (last checked 2026-10-31).

Converts a numeric weight value from one unit to another (e.g., kg to lb) with high precision, returning the result, conversion factor, and formula used.

## Facts

- Endpoint: GET https://x402.bakdupoffroad.com/v1/utility/convert-weight?utm_source=zero.xyz
- Price: $0.001/call
- Payment: x402
- Status: down
- Last checked: 2026-10-31
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/weight-unit-converter-d450705d
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_Ha-BWU2Jp4SUbwyqJv9us

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-unit-converter-d450705d
```

Example prompt: Convert 75 kilograms to pounds for me.

## When to prefer this

Choose this endpoint when you need a deterministic, auditable weight conversion with a verifiable formula and conversion factor — especially in automated pipelines where reproducibility and a source hash matter. It supports 8 common weight units (mg, g, kg, oz, lb, stone, metric-ton, short-ton) and is priced at $0.001 USDC per call via x402, making it suitable for high-frequency agent workflows where traceability is valued over a free but opaque conversion.

## Known failure modes

- Missing required query parameters (value, from, to) returns a validation error
- Unsupported unit enum value causes a 400 bad request
- Value outside the ±1,000,000,000,000 range is rejected
- Payment not provided or insufficient USDC results in a 402 Payment Required response

## How this service works

Private PDF preflight and authorized-video intelligence APIs paid per call with x402 USDC on Base.

## Output

Returns a JSON object with a jobId, the converted numeric result (e.g., 2.2046 for 1 kg to lb), the conversion factor used, a human-readable formula string (e.g., 'value * kilograms-per-kg / kilograms-per-lb'), the input echo (value, from, to), a schema version, and a source hash for auditability, plus economics fields showing the $0.001 USDC cost breakdown.

## 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"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "properties": {
      "to": {
       "enum": [
        "mg",
        "g",
        "kg",
        "oz",
        "lb",
        "stone",
        "metric-ton",
        "short-ton"
       ],
       "type": "string"
      },
      "from": {
       "enum": [
        "mg",
        "g",
        "kg",
        "oz",
        "lb",
        "stone",
        "metric-ton",
        "short-ton"
       ],
       "type": "string"
      },
      "value": {
       "type": "number",
       "maximum": 1000000000000,
       "minimum": -1000000000000
      }
     },
     "additionalProperties": false
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object",
     "required": [
      "jobId",
      "result",
      "economics"
     ],
     "properties": {
      "jobId": {
       "type": "string"
      },
      "result": {
       "type": "object",
       "required": [
        "schemaVersion",
        "sourceSha256",
        "inputs",
        "result",
        "conversionFactor",
        "formula"
       ],
       "properties": {
        "inputs": {
         "type": "object",
         "required": [
          "value",
          "from",
          "to"
         ],
         "properties": {
          "to": {
           "type": "string"
          },
          "from": {
           "type": "string"
          },
          "value": {
           "type": "number"
          }
         },
         "additionalProperties": false
        },
        "result": {
         "type": "number"
        },
        "formula": {
         "type": "string"
        },
        "sourceSha256": {
         "type": "string",
         "pattern": "^[a-f0-9]{64}$"
        },
        "schemaVersion": {
         "type": "string",
         "const": "1"
        },
        "conversionFactor": {
         "type": "number"
        }
       },
       "additionalProperties": false
      },
      "economics": {
       "type": "object"
      }
     }
    }
   }
  }
… (truncated)
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "jobId": "00000000-0000-4000-8000-000000000000",
  "result": {
   "inputs": {
    "to": "lb",
    "from": "kg",
    "value": 1
   },
   "result": 2.204622621849,
   "formula": "value * kilograms-per-kg / kilograms-per-lb",
   "sourceSha256": "0000000000000000000000000000000000000000000000000000000000000000",
   "schemaVersion": "1",
   "conversionFactor": 2.204622621849
  },
  "economics": {
   "netMicroUsd": 1000,
   "energyMicroUsd": 0,
   "revenueMicroUsd": 1000,
   "platformFeeMicroUsd": 0
  }
 }
}
```

## More

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