Unit by UN/ECE common code
API · /unitcodes-api
Units of Measure Codes API
The UN/ECE Recommendation 20 unit-of-measure codes — the codes used to identify units of measure in trade documents, invoices and EDI messages — as an API. The reference a customs, ERP or e-invoicing system needs. Each unit (for example KGM = kilogram, MTR = metre, LTR = litre, C62 = one/each, TNE = tonne, MTK = square metre) carries a 2–3 character common code, a name, the unit symbol, a description and a status (active or deprecated). Look a code up, reverse-look-up the code(s) for a symbol (kg → KGM), search by name or symbol, or list every code filtered by status. This is the unit-of-measure CODE register — distinct from unit-api, which performs unit-conversion maths. Served from memory — always fast.
API health
healthy- Uptime
- 100.00%
- Server probes · 24h
- Avg latency
- 86 ms
- Server probes · 24h
- Subscribers
- 3,879
- active
- Total calls
- 95
- last 7 days
Pricing
Pick a tier — billed monthly, cancel anytime.
Free
Free
- 13,000 calls / month
- 3 requests / second
- Hard cap (429 above quota, no overage)
- 13k calls/month
- 3 req/sec
- All endpoints
- No credit card
Starter
€6.00 /month
- 150,000 calls / month
- 10 requests / second
- Hard cap (429 above quota, no overage)
- 150k calls/month
- 10 req/sec
- Email support
Pro
€16.00 /month
- 800,000 calls / month
- 25 requests / second
- Hard cap (429 above quota, no overage)
- 800k calls/month
- 25 req/sec
- Priority support
Mega
€38.00 /month
- 4,000,000 calls / month
- 60 requests / second
- Hard cap (429 above quota, no overage)
- 4M calls/month
- 60 req/sec
- Dedicated SLA
Built by
Related APIs
Other APIs with overlapping tags.
Data Transfer API
Data-transfer and bandwidth maths as an API, computed locally and deterministically. The time endpoint computes how long a file takes to transfer at a given bandwidth, time = file bits ÷ (rate × (1 − overhead)), accepting sizes in B, KB, MB, GB, TB or the binary KiB/MiB/GiB and rates in bps, Kbps, Mbps, Gbps or bytes-per-second (MB/s), with an optional protocol-overhead allowance, and returns the time in seconds, minutes, hours and a human-readable form. The bandwidth endpoint works backwards: the bandwidth needed to move a file within a target time, in bps, Mbps, Gbps and MB/s. The convert endpoint converts a data size between decimal (1 MB = 1,000,000 bytes) and binary (MiB = 1,048,576) units, or a data rate between bit-rates and byte-rates. Everything is computed locally and deterministically, so it is instant and private. Ideal for networking, cloud, backup and streaming app developers, download-time and capacity-planning tools, and dev dashboards. Pure local computation — no key, no third-party service, instant. Live, nothing stored. 3 endpoints. This is transfer time and bandwidth; for media encoding bitrate use a bitrate API.
api.oanor.com/transfer-api
Cooking API
Recipe and kitchen conversions as an API. Convert between volume units (teaspoon, tablespoon, cup, fl-oz, ml, litre, pint, quart, gallon) and between mass units (gram, kilogram, ounce, pound) — and, crucially, between volume and mass for a specific ingredient using its density, so 1 cup of all-purpose flour ≈ 125 g, 1 cup of granulated sugar ≈ 200 g and 1 cup of water ≈ 237 g. 30 common ingredients are built in (flours, sugars, butter, oils, honey, rice, oats, cocoa, cornstarch and more), each with its grams-per-cup. Perfect for recipe apps, scaling and "metric vs cups" conversion, shopping lists and meal-prep tools. Pure local computation — no key, no third-party service, instant. Live, nothing stored. 3 endpoints. Distinct from general physical unit conversion, which has no ingredient densities.
api.oanor.com/cooking-api
Bytes API
Humanize, parse and convert byte sizes. Turn a raw byte count into a human-readable string (1610612736 → 1.5 GiB or 1.61 GB), parse a human size back into bytes ("1.5 GiB", "2GB", "500 kB" → the exact integer), and convert an amount between any two units. Handles both the IEC binary units (KiB, MiB, GiB, TiB — powers of 1024) and the SI decimal units (kB, MB, GB, TB — powers of 1000), with configurable decimal places and case-insensitive unit names. Perfect for dashboards and admin UIs, file-upload limits, storage and bandwidth reporting, logs and CLI output. Pure local computation — no key, no third-party service, instant. Live, nothing stored. 4 endpoints. Distinct from file-type detection and from number/unit measurement conversion.
api.oanor.com/bytes-api
Package Type Codes API
The UN/ECE Recommendation 21 package-type codes — the codes used to describe the kind of packaging in trade, transport and customs documents (packing lists, dangerous-goods declarations, EDI messages) — as an API. The reference a logistics, customs or e-invoicing system needs. Each of 400+ codes (for example 1A = steel drum, 5H = woven-plastic bag, BX = box, CT = carton, JY = jerrican) carries an alphanumeric code, a name, a description and a numeric code. Look a code up, reverse-look-up the codes that share a numeric code, search by name, or list them all. This is the packaging-type CODE register — distinct from containercodes-api (ISO 6346 shipping containers) and unitcodes-api (units of measure). Served from memory — always fast.
api.oanor.com/packagecodes-api
Frequently asked questions
Quick answers about pricing, quotas, and integration.
How do I get an API key for Units of Measure Codes API?
What's the rate limit for Units of Measure Codes API?
How much does Units of Measure Codes API cost?
Can I cancel my subscription anytime?
Is Units of Measure Codes API GDPR-compliant?
Pick an endpoint from the list on the left to see its details and try it.
Code snippets
Sign up to get an API key, then call any path under your slug.
curl https://api.oanor.com/unitcodes-api/SOME_PATH \
-H "x-oanor-key: oanor_test_..."
const res = await fetch("https://api.oanor.com/unitcodes-api/SOME_PATH", {
headers: { "x-oanor-key": "oanor_test_..." }
});
const data = await res.json();
$ch = curl_init("https://api.oanor.com/unitcodes-api/SOME_PATH");
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_HTTPHEADER, ["x-oanor-key: oanor_test_..."]);
$response = curl_exec($ch);
import requests
r = requests.get(
"https://api.oanor.com/unitcodes-api/SOME_PATH",
headers={"x-oanor-key": "oanor_test_..."},
)
print(r.json())
Ratings
Sign in to rate.
No reviews yet.
Discussion
Ask questions, share usage tips, get answers from the provider and other developers. Public — anyone can read.
Sign in to start a thread or reply.
Sign inNew thread
·
-
Provider answer
🔒 This thread is locked — no new replies.
-
·
- No threads yet — start the discussion.
Support
Private 1:1 support with the provider — billing questions, integration issues, account problems. Only you and the provider team can see these threads.
Sign in to open a support ticket.
Sign inOpen new ticket
Describe what you need help with. The provider team gets an email and replies on the ticket page.
-
·
Urgent - No tickets yet for this API.