Ir al contenido
GET /v1/list

List unit codes

Pruébalo en vivo

10 llamadas gratis al día — sin registro, sin clave API. Pasa por el gateway de oanor.

Encabezados personalizados (opcional)
api.oanor.com/unitcodes-api

Funciona. Consigue una clave API y úsala en tu proyecto.

Obtener una clave API

Fragmentos de código

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

Respuesta de ejemplo

Una respuesta real de este endpoint, capturada en la última comprobación de estado.

{
    "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"
…