Zum Inhalt springen
GET /v1/rate

Product for a target N rate

Live testen

10 freie Calls pro Tag — keine Anmeldung, kein API-Key. Geht durchs oanor-Gateway.

Eigene Header (optional)
api.oanor.com/fertilizer-api

Funktioniert. Hol dir einen API-Key und nutze sie in deinem Projekt.

API-Key holen

Code-Snippets

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

Beispiel-Response

Echte Antwort dieses Endpoints, erfasst beim letzten Health-Check.

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