Naar de inhoud
GET /v1/calc

Calculate GPA

Probeer het live

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

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

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

Verkrijg een API-sleutel

Codefragmenten

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

Voorbeeldrespons

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

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