Aller au contenu
GET /v1/moisture-content

Moisture content from wet and dry

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/woodmoisture-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/woodmoisture-api/v1/moisture-content" \
  -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/woodmoisture-api/v1/moisture-content", {
  headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/woodmoisture-api/v1/moisture-content");
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/woodmoisture-api/v1/moisture-content",
    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": "Moisture content is the water in the wood as a percent of the wood's weight. The forestry/woodworking standard is the dry basis: water ÷ oven-dry weight × 100 — so a piece weighing 120 g that dries to 100 g holds 20 g of water and is 20 % MC. The wet (green) basis divides by the wet weight instead (here 16.7 %); paper and agriculture often use it, so always state which. Above ~28–30 % (fibre saturation) the wood is still losing free water and has not begun to shrink.",
        "inputs": {
            "dry_weight_g": 100,
            "wet_weight_g": 120
        },
        "water_weight_g": 20,
        "moisture_content_dry_basis_pct": 20,
        "moisture_content_wet_basis_pct": 16.667
    },
    "meta": {
        "timestamp": "2026-06-07T08:17:53.842Z",
        "request_id": "9fb06e3b-41bd-4ae9-b8e3-d668cf5a9158"
    },
    "status": "ok",
    "message": "Moisture content",
    "success": true
}