Vai al contenuto
GET /v1/grid

Square-grid plant count & density

Provalo dal vivo

10 chiamate gratuite al giorno — senza registrazione, senza chiave API. Passa dal gateway oanor.

Intestazioni personalizzate (facoltative)
api.oanor.com/plantspacing-api

Funziona. Prendi una chiave API e usala nel tuo progetto.

Ottieni una chiave API

Frammenti di codice

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

Risposta di esempio

Una risposta reale di questo endpoint, acquisita dall'ultimo health check.

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