Naar de inhoud
GET /v1/nutrients

Nutrient pounds in a bag

Probeer het live

10 gratis calls per dag — geen registratie, geen API-key. Loopt via de oanor-gateway.

Aangepaste headers (optioneel)
api.oanor.com/fertilizer-api

Het werkt. Haal een API-key op en gebruik hem in je project.

Verkrijg een API-sleutel

Codefragmenten

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_..."}
)

Voorbeeldrespons

Een echte respons van dit endpoint, vastgelegd bij de laatste health check.

{
    "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
}