← Back to discover
httpcdp
2s
Convert a value between units of measure: mass (g, kg, mg, lb, oz, t, st), length (m, km, cm, mm, in, ft, yd, mi), volume (l, ml, m3, gal, gal-imp, qt, pt, cup, floz, tbsp, tsp), area (m2, km2, ft2, acre, ha), and temperature (C, F, K). Units are matched case-insensitively with common aliases (kg/kilogram/kgs). Returns {value, from, to, dimension, result}. Exact factors — the ground-truth answer a CPG/ETL pipeline needs instead of an LLM approximating conversions. Cross-dimension conversions (kg→m) return 400.
Resource URL
https://2s.io/api/convert/unit
Payment options
exactBase (8453)
$0.001 USDC
Max amount
- Pay to
- 0x2b6D4988Db4723E6908Db86Ab2b8dFBc51FC32C5
- Timeout
- 60s
exactSolana
$0.001 USDC
Max amount
- Pay to
- TW6ntaGzvj63ZgPjszd4FCGmVTGfzv1MAYZbjYcyWhn
- Timeout
- 60s
Tags
public-recordsidentifiersai-agentsus-gov-datax402
For agents
Prompt snippet for AI agents
Find and pay for this x402 resource: URL: https://2s.io/api/convert/unit Type: http Sources: cdp