Ir al contenido
GET /v1/meta

Spec

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/baleweight-api

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

Obtener una clave API

Fragmentos de código

curl "https://api.oanor.com/baleweight-api/v1/meta" \
  -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/baleweight-api/v1/meta", {
  headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/baleweight-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/baleweight-api/v1/meta",
    headers={"x-oanor-key": "oanor_test_..."}
)

Respuesta de ejemplo

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

{
    "data": {
        "notes": "US units (ft, in, lb/ft³, lb). round = π·r²·width·density; square = L·W·H/1728·density; bales = head·intake·days/bale weight. Dry hay ~9–12 lb/ft³, ~88 % DM. For grain storage use a grain-bin API; for rotational grazing a grazing API.",
        "service": "baleweight-api",
        "endpoints": {
            "GET /v1/meta": "This document.",
            "GET /v1/round-bale": "Round-bale volume, weight and dry matter.",
            "GET /v1/feed-supply": "Bales needed to feed a herd for a period.",
            "GET /v1/square-bale": "Square-bale weight from length/width/height."
        },
        "description": "Hay/forage bale maths: round and square bale weight from size and density, and bales needed to feed a herd."
    },
    "meta": {
        "timestamp": "2026-06-07T08:17:59.574Z",
        "request_id": "bd07db47-0245-4129-9cd9-0ddb1a53bb38"
    },
    "status": "ok",
    "message": "Meta",
    "success": true
}