/v1/block
Blocks + mortar for a wall
Live testen
10 freie Calls pro Tag — keine Anmeldung, kein API-Key. Geht durchs oanor-Gateway.
Funktioniert. Hol dir einen API-Key und nutze sie in deinem Projekt.
API-Key holenCode-Snippets
curl "https://api.oanor.com/masonry-api/v1/block" \ -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/masonry-api/v1/block", {
headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/masonry-api/v1/block");
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/masonry-api/v1/block",
headers={"x-oanor-key": "oanor_test_..."}
)
Beispiel-Response
Echte Antwort dieses Endpoints, erfasst beim letzten Health-Check.
{
"data": {
"note": "Blocks/ft² = 144 / ((L+joint)·(H+joint)). A standard 16×8\" CMU with a 3/8\" joint is 1.125/ft². Mortar ≈ 2.5 bags per 100 blocks. Waste added then rounded up.",
"inputs": {
"joint": 0.375,
"area_sqft": 320,
"block_height": 7.625,
"block_length": 15.625,
"waste_percent": 5
},
"mortar_bags": 10,
"blocks_needed": 378,
"blocks_no_waste": 360,
"blocks_per_sqft": 1.125
},
"meta": {
"timestamp": "2026-06-05T21:48:47.066Z",
"request_id": "21b6f3de-08bb-4a32-a53c-5218b1bc6d67"
},
"status": "ok",
"message": "Block estimate",
"success": true
}