Convert UCUM units API
Convert a numeric value between a small bundled UCUM / alias unit subset (length, mass, volume, time, temperature). Incommensurable units return converted=null.
The Convert UCUM units operation is part of the Phone GTIN ISBN Validator API on BRAINIAC.software. Convert a numeric value between a small bundled UCUM / alias unit subset (length, mass, volume, time, temperature). Incommensurable units return converted=null. It is exposed as POST /api/v1/identifiers/unit-ucum-convert and priced at $0.02 USDC on Base. Payment uses the x402 exact scheme: an unpaid call returns HTTP 402 with payment requirements; after paying the exact USDC amount, retry the same request with a payment-signature header and Idempotency-Key. No account and no API key are required. Data sources for this product: libphonenumber-js bundled ITU/E.164 metadata GS1 check digit algorithm ISBN/ISSN check digit rules EU EORI structural rules UCUM common unit factors (subset) US Census 2026 Gazetteer ZCTA national file (vendored) Limitations: These endpoints validate format, checksums, heuristics, and published tables only. They do not prove a number, product code, or EORI is issued, assigned, or reachable. ZCTA points are Census interior points, not street addresses. ISO 3166 subdivisions, MIC, and ISO 20022 code sets from issue #81 are not in this slice. Outputs are compliance prechecks, drafts, or data lookups for human review. They are not official determinations, legal advice, identity confirmation, or certified filings. Related operations in this group include Validate a phone number to E.164, Validate a GTIN check digit, Validate ISBN or ISSN check digits, Validate EORI number format. Open the group documentation for the full request schema, field notes, and response examples before integrating.
/api/v1/identifiers/unit-ucum-convertExample request
curl -i -X POST "https://www.brainiac.software/api/v1/identifiers/unit-ucum-convert" \
-H 'content-type: application/json' \
-H 'Idempotency-Key: <fresh-64-character-random-hex-key>' \
--data-binary @- <<'JSON'
{
"value": 100,
"from": "cm",
"to": "[in_i]"
}
JSONAn unpaid probe returns HTTP 402 with x402 payment requirements. After paying the exact USDC amount on Base, retry the identical request with a payment-signature header.
FAQ
- Do I need an API key? No. Pay the listed USDC amount with x402.
- What network? Base (eip155:8453), USDC.
- Is this an official determination? No. Results are for human review against the cited sources.
Related operations
- Validate a phone number to E.164 — $0.02 USDC
- Validate a GTIN check digit — $0.01 USDC
- Validate ISBN or ISSN check digits — $0.01 USDC
- Validate EORI number format — $0.01 USDC