# AgentKit Unit Converter (datetime family)

> AgentKit Unit Converter (datetime family) 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 between units within a supported family (e.g. length, weight, temperature, storage, currency) using a pay-per-call x402 API.

## Facts

- Endpoint: POST https://api.firstmention.uk/s/agentkit/datetime?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-datetime-family-76f5aa2c
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_U4tLLb1medv4imPRW-bp1

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-datetime-family-76f5aa2c -d '<json body>'
```

Example prompt: Convert 100 kilometers to miles and round the result to 4 decimal places.

## When to prefer this

Choose this endpoint when you need programmatic, pay-per-call unit conversion with precise decimal rounding, support for physical quantity families (length, weight, temperature, storage, currency), or when converting a batch list of values. Prefer it over hardcoded conversion logic when accuracy and family-awareness (getting all equivalents) matter, and when operating in an x402-enabled payment context.

## Known failure modes

- Unsupported unit pair returns an error (incompatible or unknown units)
- Missing required fields (value, from) result in a validation error
- Incompatible unit families (e.g. converting km to kg) return a domain error
- Payment failure via x402 results in HTTP 402 before the conversion is performed
- Passing non-numeric values causes a type validation failure

## 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, unit family, input value, and the converted result rounded to the specified decimal places. Example: {to: 'mi', from: 'km', round: 6, value: 100, family: 'length', result: 62.137119}.

## 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-datetime-family-76f5aa2c/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)
