/v1/calc
Calculate GPA
Essayez-le en direct
10 appels gratuits par jour — sans inscription, sans clé API. Passe par la passerelle oanor.
Ça marche. Récupérez une clé API et utilisez-la dans votre projet.
Obtenez une clé APIExtraits de code
curl "https://api.oanor.com/gpa-api/v1/calc" \ -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/gpa-api/v1/calc", {
headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/gpa-api/v1/calc");
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/gpa-api/v1/calc",
headers={"x-oanor-key": "oanor_test_..."}
)
Exemple de réponse
Une réponse réelle de ce endpoint, capturée lors du dernier contrôle de santé.
{
"data": {
"gpa": 3.24,
"scale": "us",
"courses": 3,
"breakdown": [
{
"grade": "A",
"letter": "A",
"points": 4,
"credits": 3,
"quality_points": 12
},
{
"grade": "B+",
"letter": "B+",
"points": 3.3,
"credits": 4,
"quality_points": 13.2
},
{
"grade": "C",
"letter": "C",
"points": 2,
"credits": 2,
"quality_points": 4
}
],
"gpa_precise": 3.2444,
"total_credits": 9,
"total_quality_points": 29.2
},
"meta": {
"timestamp": "2026-06-03T17:42:19.918Z",
"request_id": "ff88f8b1-d93f-448c-a2f6-31588b8cf122"
},
"status": "ok",
"message": "Calculate GPA",
"success": true
}