Aller au contenu
GET /v1/grid

Square-grid plant count & density

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/plantspacing-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/plantspacing-api/v1/grid" \
  -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/plantspacing-api/v1/grid", {
  headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/plantspacing-api/v1/grid");
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/plantspacing-api/v1/grid",
    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": {
        "grid": {
            "rows": 11,
            "total_plants": 231,
            "plants_per_row": 21
        },
        "note": "estimated_plants = area × density (no edges). grid.total_plants counts whole plants that fit with edge rows included.",
        "unit": "m",
        "layout": "square",
        "area_m2": 50,
        "density": {
            "per_m2": 4,
            "per_ft2": 0.37161,
            "per_acre": 16187.4,
            "per_hectare": 40000,
            "per_1000_sqft": 371.61
        },
        "row_spacing_m": 0.5,
        "plant_spacing_m": 0.5,
        "estimated_plants": 200
    },
    "meta": {
        "timestamp": "2026-06-04T01:59:09.736Z",
        "request_id": "1655fa99-aa08-4707-8cf8-183488774a9c"
    },
    "status": "ok",
    "message": "Square-grid plant count & density",
    "success": true
}