/v1/meta
Service metadata
Δοκιμάστε το ζωντανά
10 δωρεάν κλήσεις την ημέρα — χωρίς εγγραφή, χωρίς κλειδί API. Μέσω του gateway του oanor.
Δουλεύει. Πάρε ένα κλειδί API και χρησιμοποίησέ το στο έργο σου.
Λάβετε ένα κλειδί APIΑποσπάσματα κώδικα
curl "https://api.oanor.com/unitcodes-api/v1/meta" \ -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/unitcodes-api/v1/meta", {
headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/unitcodes-api/v1/meta");
curl_setopt($ch, CURLOPT_HTTPHEADER, ["x-oanor-key: oanor_test_..."]);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
$out = curl_exec($ch);
import requests
requests.get(
"https://api.oanor.com/unitcodes-api/v1/meta",
headers={"x-oanor-key": "oanor_test_..."}
)
Παράδειγμα απόκρισης
Πραγματική απόκριση αυτού του endpoint, από τον τελευταίο έλεγχο υγείας.
{
"data": {
"service": "unitcodes-api",
"endpoints": {
"GET /v1/code": "Unit by UN/ECE common code (code=, e.g. KGM).",
"GET /v1/list": "List unit codes (status=active|deprecated, limit, offset).",
"GET /v1/meta": "This document.",
"GET /v1/search": "Search by code, name or symbol (q=, e.g. metre).",
"GET /v1/symbol": "Codes for a unit symbol (symbol=, e.g. kg)."
},
"description": "UN/ECE Recommendation 20 units-of-measure codes for trade, invoicing and EDI: 2–3 character common code, name, symbol, description and status. Look up a code, reverse-look-up from a symbol, search, or list. Distinct from unit-api (conversion maths). No key.",
"total_codes": 2136,
"active_codes": 1755,
"deprecated_codes": 381
},
"meta": {
"timestamp": "2026-06-08T18:25:03.896Z",
"request_id": "a6ef240a-1d6f-40cb-b1c5-b7e612bdd83b"
},
"status": "ok",
"message": "Meta",
"success": true
}