Zum Inhalt springen
GET /v1/list

List unit codes

Live testen

10 freie Calls pro Tag — keine Anmeldung, kein API-Key. Geht durchs oanor-Gateway.

Eigene Header (optional)
api.oanor.com/unitcodes-api

Funktioniert. Hol dir einen API-Key und nutze sie in deinem Projekt.

API-Key holen

Code-Snippets

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_..."}
)

Beispiel-Response

Echte Antwort dieses Endpoints, erfasst beim letzten 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"
…