Aller au contenu
GET /v1/rate

Product for a target N rate

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/fertilizer-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/fertilizer-api/v1/rate" \
  -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/fertilizer-api/v1/rate", {
  headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/fertilizer-api/v1/rate");
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/fertilizer-api/v1/rate",
    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": "Product per 1000 ft² = target N ÷ (N% ÷ 100). Total = that × the number of 1000 ft² in the area.",
        "input": {
            "area": 5000,
            "basis": "1000 ft²",
            "analysis": "10-10-10",
            "target_n_per_basis": 1
        },
        "total_product_kg": 22.68,
        "total_product_lb": 50,
        "nutrients_applied": {
            "k2o_lb": 5,
            "p2o5_lb": 5,
            "nitrogen_lb": 5,
            "potassium_lb": 4.1507,
            "phosphorus_lb": 2.1821
        },
        "product_lb_per_basis": 10
    },
    "meta": {
        "timestamp": "2026-06-04T01:59:14.171Z",
        "request_id": "902ce3d0-89c2-4e30-9508-eac9e5281b9c"
    },
    "status": "ok",
    "message": "Fertilizer rate for an area",
    "success": true
}