Aller au contenu
GET /v1/line-capacity

Reel capacity at a new line diameter

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/fishing-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/fishing-api/v1/line-capacity" \
  -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/fishing-api/v1/line-capacity", {
  headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/fishing-api/v1/line-capacity");
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/fishing-api/v1/line-capacity",
    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": "Line lies on the spool by cross-sectional area, so capacity scales with the inverse square of diameter: new capacity = rated × (rated diameter ÷ new diameter)². A thinner line packs more on, a thicker one less. Use the same unit for both diameters (mm or inches) and the capacity comes out in the rated unit (yards or metres).",
        "inputs": {
            "new_diameter": 0.35,
            "rated_capacity": 100,
            "rated_diameter": 0.3
        },
        "new_capacity": 73.5,
        "capacity_ratio": 0.735
    },
    "meta": {
        "timestamp": "2026-06-06T15:30:42.322Z",
        "request_id": "f9ff79fd-516a-4614-9f7b-ea6612150a1d"
    },
    "status": "ok",
    "message": "Line capacity",
    "success": true
}