Ir al contenido
GET /v1/density

Spacing <-> density (and reverse)

Pruébalo en vivo

10 llamadas gratis al día — sin registro, sin clave API. Pasa por el gateway de oanor.

Encabezados personalizados (opcional)
api.oanor.com/plantspacing-api

Funciona. Consigue una clave API y úsala en tu proyecto.

Obtener una clave API

Fragmentos de código

curl "https://api.oanor.com/plantspacing-api/v1/density" \
  -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/plantspacing-api/v1/density", {
  headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/plantspacing-api/v1/density");
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/density",
    headers={"x-oanor-key": "oanor_test_..."}
)

Respuesta de ejemplo

Una respuesta real de este endpoint, capturada en la última comprobación de estado.

{
    "data": {
        "mode": "forward",
        "note": "Planting density from spacing. For triangular, density uses the plant spacing equally in all directions.",
        "unit": "m",
        "layout": "square",
        "density": {
            "per_m2": 11.1111,
            "per_ft2": 1.03226,
            "per_acre": 44965.1,
            "per_hectare": 111111.1,
            "per_1000_sqft": 1032.26
        },
        "row_spacing_m": 0.3,
        "plant_spacing_m": 0.3
    },
    "meta": {
        "timestamp": "2026-06-04T01:59:09.644Z",
        "request_id": "ffe81629-e1d9-432b-b72d-3bf206c640a6"
    },
    "status": "ok",
    "message": "Spacing <-> density, and reverse",
    "success": true
}