Aller au contenu
GET /v1/tile

Tiles & boxes needed

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

Exemple de réponse

Une réponse réelle de ce endpoint, capturée lors du dernier contrôle de santé.

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