Zum Inhalt springen
GET /v1/thickness

Weight ↔ thickness

Live testen

10 freie Calls pro Tag — keine Anmeldung, kein API-Key. Geht durchs oanor-Gateway.

Eigene Header (optional)
api.oanor.com/leather-api

Funktioniert. Hol dir einen API-Key und nutze sie in deinem Projekt.

API-Key holen

Code-Snippets

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

Beispiel-Response

Echte Antwort dieses Endpoints, erfasst beim letzten Health-Check.

{
    "data": {
        "note": "Leather weight IS its thickness: 1 oz = 1/64 inch = 0.397 mm. Leather is often sold in a 2-oz range (e.g. 8-9 oz) because thickness varies across a hide. Quoted weight is per square foot but only depends on thickness.",
        "inches": 0.125,
        "inputs": {
            "from": "oz",
            "value": 8
        },
        "ounces": 8,
        "millimeters": 3.175,
        "typical_use": "belts, straps, holsters",
        "weight_range_oz": "8-8 oz"
    },
    "meta": {
        "timestamp": "2026-06-06T07:14:01.709Z",
        "request_id": "e87e574b-e5d6-4283-af12-a8602b374847"
    },
    "status": "ok",
    "message": "Leather thickness",
    "success": true
}