Aller au contenu
GET /v1/nutrients

Nutrient pounds in a bag

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/nutrients" \
  -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/fertilizer-api/v1/nutrients", {
  headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/fertilizer-api/v1/nutrients");
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/nutrients",
    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": "Pounds of nutrient in the bag. P is shown as P₂O₅ and K as K₂O (label) plus the elemental amount.",
        "input": {
            "analysis": "20-5-10",
            "bag_weight_lb": 40
        },
        "nutrients": {
            "k2o_lb": 4,
            "p2o5_lb": 2,
            "nitrogen_lb": 8,
            "potassium_lb": 3.3206,
            "phosphorus_lb": 0.8728
        }
    },
    "meta": {
        "timestamp": "2026-06-04T01:59:14.071Z",
        "request_id": "d121b28d-1dd0-42ba-9641-e5054ecd070f"
    },
    "status": "ok",
    "message": "Nutrients in a bag",
    "success": true
}