Skip to content
Fourohtwo

Convert a value between units in 11 categories

agents.204-168-199-108.sslip.io/v1/util/units

Convert a value between units in 11 categories: length, mass, volume (US + UK), area, speed, time, data size (kB vs KiB, Mbit), pressure, energy (kWh, kcal, BTU), power (hp, kW) and temperature (C, F, K, R). Accepts symbols or names (miles, °F, kilograms, sq ft). One target, a comma list, or all units of the category. Exact factors (NIST/SI); 12 significant digits.

BaseSolanaaws:baseAnswering
GEThttps://agents.204-168-199-108.sslip.io/v1/util/units

Uptime100% of 1 check in 30 days

30 days agoToday

Try it

Pays from your browser wallet in USDC on Base or USDG on Robinhood Chain, whichever the endpoint takes. The provider is paid directly; failed calls aren't refunded by Fourohtwo.

The response shows up here.

Call it from an agent

// npm install fourohtwo
import { createPayer } from "fourohtwo";

// One agent key pays USDC on Base or USDG on Robinhood Chain, inside your spending rules.
const pay = createPayer({ privateKey: process.env.AGENT_KEY, maxPerCallUsd: "0.05" });
const res = await pay("https://agents.204-168-199-108.sslip.io/v1/util/units?from=miles&to=km%2Cm&value=26.2");
console.log(await res.json());

Example input

{
  "from": "miles",
  "to": "km,m",
  "value": "26.2"
}