/v1/hat
Convert a hat size
Try it live
10 free calls per day — no sign-up, no API key. Goes through the oanor gateway.
It works. Grab an API key and use it in your project.
Get an API keyCode snippets
curl "https://api.oanor.com/sizes-api/v1/hat" \ -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/sizes-api/v1/hat", {
headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/sizes-api/v1/hat");
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/sizes-api/v1/hat",
headers={"x-oanor-key": "oanor_test_..."}
)
Example response
A real response from this endpoint, captured by the latest health check.
{
"data": {
"note": "US hat size = head circumference (inches) ÷ π in 1/8 steps; EU = head circumference in cm.",
"input": {
"from": "cm",
"value": 57
},
"sizes": {
"eu": 57,
"uk": 7,
"us": 7.125,
"band": "M",
"head_circumference_cm": 57,
"head_circumference_in": 22.44
}
},
"meta": {
"timestamp": "2026-06-03T17:42:01.234Z",
"request_id": "4b32f7bf-a80e-4461-87e8-e23286e7a288"
},
"status": "ok",
"message": "Convert a hat size",
"success": true
}