Skip to content
GET /v1/packs

Packs needed

Try it live

10 free calls per day — no sign-up, no API key. Goes through the oanor gateway.

Custom headers (optional)
api.oanor.com/flooring-api

It works. Grab an API key and use it in your project.

Get an API key

Code snippets

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

Example response

A real response from this endpoint, captured by the latest health check.

{
    "data": {
        "note": "Packs = ceil(area·(1+waste) / coverage per pack). Laminate/engineered floors use ~8 % waste; herringbone or diagonal lay more.",
        "inputs": {
            "area": 20,
            "waste_percent": 8,
            "coverage_per_pack": 2.5
        },
        "packs_needed": 9,
        "coverage_with_waste_m2": 21.6,
        "total_coverage_supplied_m2": 22.5
    },
    "meta": {
        "timestamp": "2026-06-04T18:38:18.097Z",
        "request_id": "24bf36cc-b9ff-4a02-a01e-28bd1e623be5"
    },
    "status": "ok",
    "message": "Packs needed",
    "success": true
}