# Mat Web & Data Toolkit – Unit Converter

> Mat Web & Data Toolkit – Unit Converter is a paid API for AI agents from automatom.matt-d59.workers.dev, paid per call via x402, $0.01/call, status unknown (last checked 2026-10-18).

Converts a numeric value between units of measurement (e.g. miles to kilometers) and returns the result with category metadata as JSON.

## Facts

- Endpoint: GET https://automatom.matt-d59.workers.dev/convert?utm_source=zero.xyz
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-18
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/mat-web-data-toolkit-unit-converter-4154f88f
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_zpjrYnxztdG-Jybbu0aHs

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 mat-web-data-toolkit-unit-converter-4154f88f
```

Example prompt: Convert 10 miles to kilometers for me and give me the result as a number.

## When to prefer this

Use this endpoint when you need a quick, programmatic unit conversion with structured JSON output — especially useful when building agents or workflows that need to normalize measurements across different systems (imperial vs metric) without relying on a general-purpose LLM calculation that might hallucinate. Prefer this over a web-scraping call for simple numeric conversions.

## Known failure modes

- Unsupported unit pair returns an error or empty result
- Missing required query parameters (value, from, to) cause a 400-style error
- Incompatible unit categories (e.g. converting miles to kilograms) may return an error
- Non-numeric value input causes a parse error
- Payment failure or insufficient USDC balance blocks the request

## How this service works

Fetches a public web page and returns its title, meta description, outbound links and readable plain text as JSON.

## Output

A JSON object containing the original value, source unit, target unit, the converted numeric result, and the measurement category (e.g. 'length', 'weight'). Example: {"to":"km","from":"mi","value":10,"result":16.09344,"category":"length"}.

## 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",
     "required": [
      "value",
      "from",
      "to"
     ],
     "properties": {
      "to": {
       "type": "string"
      },
      "from": {
       "type": "string"
      },
      "value": {
       "type": "string"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "to": "km",
  "from": "mi",
  "value": 10,
  "result": 16.09344,
  "category": "length"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/mat-web-data-toolkit-unit-converter-4154f88f/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from automatom.matt-d59.workers.dev](https://www.zero.xyz/host/automatom.matt-d59.workers.dev/llms.txt)
