Naar de inhoud
GET /v1/platonic

Platonic solid

Probeer het live

10 gratis calls per dag — geen registratie, geen API-key. Loopt via de oanor-gateway.

Aangepaste headers (optioneel)
api.oanor.com/solids-api

Het werkt. Haal een API-key op en gebruik hem in je project.

Verkrijg een API-sleutel

Codefragmenten

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

Voorbeeldrespons

Een echte respons van dit endpoint, vastgelegd bij de laatste health check.

{
    "data": {
        "note": "Platonic solid from edge length a. Cube: V=a³, S=6a². Tetrahedron: V=a³/(6√2). Dodecahedron and icosahedron use the golden-ratio coefficients.",
        "faces": 20,
        "inputs": {
            "edge": 1,
            "solid": "icosahedron"
        },
        "volume": 2.18169499,
        "surface_area": 8.66025404
    },
    "meta": {
        "timestamp": "2026-06-05T19:50:11.442Z",
        "request_id": "f6eb5fd0-8490-45b7-b983-9246593f91e8"
    },
    "status": "ok",
    "message": "Platonic solid",
    "success": true
}