Vai al contenuto
GET /v1/tile

Tiles & boxes needed

Provalo dal vivo

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

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

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

Ottieni una chiave API

Frammenti di codice

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

Risposta di esempio

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

{
    "data": {
        "note": "Includes wastage allowance; round up to full boxes when ordering.",
        "inputs": {
            "area_m2": 12,
            "tile_unit": "cm",
            "tile_width": 30,
            "tile_length": 30,
            "waste_percent": 10
        },
        "tile_area_m2": 0.09,
        "tiles_needed": 147,
        "tiles_per_m2": 11.11,
        "area_with_waste_m2": 13.2
    },
    "meta": {
        "timestamp": "2026-06-03T17:42:01.013Z",
        "request_id": "d54e4aaf-cdfb-4da3-88c7-6bdca19e5a4c"
    },
    "status": "ok",
    "message": "Tile estimator",
    "success": true
}