Aller au contenu
GET /v1/meta

Spec

Essayez-le en direct

10 appels gratuits par jour — sans inscription, sans clé API. Passe par la passerelle oanor.

En-têtes personnalisés (facultatif)
api.oanor.com/baleweight-api

Ça marche. Récupérez une clé API et utilisez-la dans votre projet.

Obtenez une clé API

Extraits de code

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

Exemple de réponse

Une réponse réelle de ce endpoint, capturée lors du dernier contrôle de santé.

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