/v1/grid
Square-grid plant count & density
Pruébalo en vivo
10 llamadas gratis al día — sin registro, sin clave API. Pasa por el gateway de oanor.
Funciona. Consigue una clave API y úsala en tu proyecto.
Obtener una clave APIFragmentos de código
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_..."}
)
Respuesta de ejemplo
Una respuesta real de este endpoint, capturada en la última comprobación de estado.
{
"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
}