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/firewood-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/firewood-api/v1/meta" \
  -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/firewood-api/v1/meta", {
  headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/firewood-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/firewood-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": {
        "note": "1 cord = 128 ft³. Face cord = 8×4 ft × piece length (default 16 in). Heat values are typical and vary with moisture.",
        "service": "firewood",
        "species": [
            "osageorange",
            "hickory",
            "blacklocust",
            "oakwhite",
            "oakred",
            "beech",
            "sugarmaple",
            "ash",
            "walnut",
            "birchyellow",
            "redmaple",
            "cherry",
            "elm",
            "douglasfir",
            "sycamore",
            "cedar",
            "pinewhite",
            "poplar",
            "aspen",
            "basswood",
            "spruce",
            "willow"
        ],
        "endpoints": {
            "/v1/heat": "Heating value (million BTU) and heating-oil/gas/kWh equivalents from cords and species.",
            "/v1/volume": "Stack dimensions to cubic feet/metres, cords, face cords and steres.",
            "/v1/convert": "Convert between cord, face cord, stere, m³ and ft³ (face cord uses the piece length)."
        },
        "description": "Firewood maths: stack volume to cords/face cords/steres/m³, unit conversion, and heating value by species."
    },
    "meta": {
        "timestamp": "2026-06-04T01:59:19.190Z",
        "request_id": "7d7e8133-ae82-4f4e-b778-84f0255d6e0d"
    },
    "status": "ok",
    "message": "Meta",
    "success": true
}