/v1/divide
Golden section of a length
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/goldenratio-api/v1/divide" \ -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/goldenratio-api/v1/divide", {
headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/goldenratio-api/v1/divide");
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/goldenratio-api/v1/divide",
headers={"x-oanor-key": "oanor_test_..."}
)
Example response
A real response from this endpoint, captured by the latest health check.
{
"data": {
"note": "Golden section: a length is split so whole/longer = longer/shorter = φ. longer ≈ 0.618·whole, shorter ≈ 0.382·whole.",
"ratio": 1.61803399,
"inputs": {
"length": 100
},
"longer_segment": 61.803399,
"shorter_segment": 38.196601
},
"meta": {
"timestamp": "2026-06-05T19:50:18.726Z",
"request_id": "57a6173a-4e8c-4715-b189-ac2dae66bc49"
},
"status": "ok",
"message": "Golden section",
"success": true
}