Aller au contenu
GET /v1/classify

Classify wind speed

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/beaufort-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/beaufort-api/v1/classify" \
  -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/beaufort-api/v1/classify", {
  headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/beaufort-api/v1/classify");
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/beaufort-api/v1/classify",
    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": "Beaufort force from the WMO scale (10 m reference height). Wave height is the mean for the open sea and assumes a long fetch.",
        "inputs": {
            "unit": "ms",
            "speed": 10
        },
        "speed_ms": 10,
        "description": "Fresh breeze",
        "sea_condition": "Moderate waves, many whitecaps",
        "beaufort_force": 5,
        "speed_all_units": {
            "ms": 10,
            "fts": 32.8084,
            "kmh": 36,
            "mph": 22.3694,
            "knots": 19.4384
        },
        "mean_wave_height_m": 2
    },
    "meta": {
        "timestamp": "2026-06-05T11:30:35.137Z",
        "request_id": "5070ef02-e0b6-48b8-90a8-3b00e850a01b"
    },
    "status": "ok",
    "message": "Classify wind speed",
    "success": true
}