/v1/list
List unit codes
Probeer het live
10 gratis calls per dag — geen registratie, geen API-key. Loopt via de oanor-gateway.
Het werkt. Haal een API-key op en gebruik hem in je project.
Verkrijg een API-sleutelCodefragmenten
curl "https://api.oanor.com/unitcodes-api/v1/list" \ -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/unitcodes-api/v1/list", {
headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/unitcodes-api/v1/list");
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/list",
headers={"x-oanor-key": "oanor_test_..."}
)
Voorbeeldrespons
Een echte respons van dit endpoint, vastgelegd bij de laatste health check.
{
"data": {
"count": 50,
"total": 1755,
"units": [
{
"code": "10",
"name": "group",
"active": true,
"status": "active",
"symbol": null,
"description": "A unit of count defining the number of groups (group: set of items classified together)."
},
{
"code": "11",
"name": "outfit",
"active": true,
"status": "active",
"symbol": null,
"description": "A unit of count defining the number of outfits (outfit: a complete set of equipment / materials / objects used for a specific purpose)."
},
{
"code": "13",
"name": "ration",
"active": true,
"status": "active",
"symbol": null,
"description": "A unit of count defining the number of rations (ration: a single portion of provisions)."
},
{
"code": "14",
"name": "shot",
"active": true,
"status": "active",
"symbol": null,
"description": "A unit of liquid measure, especially related to spirits."
},
{
"code": "15",
"name": "stick, military",
"active": true,
"status": "active",
"symbol": null,
"description": "A unit of count defining the number of military sticks (military stick: bombs or paratroops released in rapid succession from an aircraft)."
},
{
"code": "1I",
"name": "fixed rate",
"active": true,
"status": "active",
"symbol": null,
"description": "A unit of quantity expressed as a predetermined or set rate for usage of a facility or service."
},
{
"code": "20",
"name": "twenty foot container",
"active": true,
"status": "active",
"symbol": null,
"description": "A unit of count defining the number of shipping containers that measure 20 foot in length."
},
{
"code": "21",
"name": "forty foot container",
"active": true,
"status": "active",
"symbol": null,
"description": "A unit of count defining the number of shipping containers that measure 40 foot in length."
},
{
"code": "22",
"name": "decilitre per gram",
"active": true,
"status": "active",
"symbol": "dl/g",
"description": null
},
{
"code": "23"
…