Μετάβαση στο περιεχόμενο
GET /v1/platonic

Platonic solid

Δοκιμάστε το ζωντανά

10 δωρεάν κλήσεις την ημέρα — χωρίς εγγραφή, χωρίς κλειδί API. Μέσω του gateway του oanor.

Προσαρμοσμένες κεφαλίδες (προαιρετικά)
api.oanor.com/solids-api

Δουλεύει. Πάρε ένα κλειδί API και χρησιμοποίησέ το στο έργο σου.

Λάβετε ένα κλειδί API

Αποσπάσματα κώδικα

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_..."}
)

Παράδειγμα απόκρισης

Πραγματική απόκριση αυτού του endpoint, από τον τελευταίο έλεγχο υγείας.

{
    "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
}