# Agentkit Unit Converter

> Agentkit Unit Converter is a paid API for AI agents from api.firstmention.uk, paid per call via x402, $0.01/call, status unknown (last checked 2026-10-29).

Converts a numeric value from one unit to another (or returns all equivalents in a family), supporting length, mass, temperature, storage, currency, and more.

## Facts

- Endpoint: POST https://api.firstmention.uk/s/agentkit/extract?utm_source=zero.xyz
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-29
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/agentkit-unit-converter-6109cb8d
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_58e1ZyRt4ftNAKrXj8sQR

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 agentkit-unit-converter-6109cb8d -d '<json body>'
```

Example prompt: Convert 100 kilometers to miles, rounded to 4 decimal places.

## When to prefer this

Use this endpoint when you need fast, pay-per-call unit conversion across common physical, data, or currency units without setting up a local library. Prefer it when the agent needs to convert values on-the-fly in a workflow, especially when already using other firstmention.uk services and paying via x402 USDC micropayments.

## Known failure modes

- Unrecognized unit strings return an error or null result
- Mismatched unit families (e.g. converting km to kg) return an error
- Missing required 'value' or 'from' field causes a validation error
- Providing both 'value' and 'values' may cause ambiguous behavior

## How this service works

Pay-per-call HTTP APIs, paid with x402 in USDC on Base (eip155:8453): agentkit, api-change-check, basedue, basewatch, chainread, check-sanctions, chgwatch, company-facts, composite, edgar, feednews, pageaudit, solcheck, token-dd, txpreflight, walletcheck, webmd, webread, websearch, x402index. Each operation describes its service.

## Output

A JSON object containing the source unit, target unit, the unit family (e.g. 'length', 'temperature'), the input value, and the converted numeric result rounded to the requested decimal places.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "to": {
   "type": "string",
   "description": "Target unit; omit to get all equivalents in the same family"
  },
  "from": {
   "type": "string",
   "description": "Source unit, e.g. km, kg, F, GB, USD, Km"
  },
  "round": {
   "type": "integer",
   "description": "Decimal places (default 6)"
  },
  "value": {
   "type": "number",
   "description": "Amount to convert"
  },
  "values": {
   "type": "array",
   "items": {
    "type": "number"
   },
   "description": "Optional list of values instead of a single value"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "to": "mi",
  "from": "km",
  "round": 6,
  "value": 100,
  "family": "length",
  "result": 62.137119
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/agentkit-unit-converter-6109cb8d/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.firstmention.uk](https://www.zero.xyz/host/api.firstmention.uk/llms.txt)
