/v1/meta
Spec
Live testen
10 freie Calls pro Tag — keine Anmeldung, kein API-Key. Geht durchs oanor-Gateway.
Funktioniert. Hol dir einen API-Key und nutze sie in deinem Projekt.
API-Key holenCode-Snippets
curl "https://api.oanor.com/gpa-api/v1/meta" \ -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/gpa-api/v1/meta", {
headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/gpa-api/v1/meta");
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/meta",
headers={"x-oanor-key": "oanor_test_..."}
)
Beispiel-Response
Echte Antwort dieses Endpoints, erfasst beim letzten Health-Check.
{
"data": {
"name": "GPA API",
"notes": "GPA = Σ(grade points × credits) ÷ Σ(credits). Credits default to 1 when omitted (unweighted). Percentages use the common US cutoffs (93+ = A, 90–92 = A-, …). This computes GPA — for general statistics use a statistics API. Nothing is stored.",
"version": "v1",
"endpoints": [
{
"path": "/v1/calc",
"params": {
"scale": "us (default, 4.0), us_plus (4.3) or percentage",
"courses": "a JSON array of {grade, credits} — or a string like 'A:3,B+:4,C:2'",
"scale_map": "optional custom letter→point JSON map"
},
"returns": "the weighted GPA, totals and per-course breakdown"
},
{
"path": "/v1/scales",
"params": [],
"returns": "the built-in grade scales and their points"
},
{
"path": "/v1/meta",
"params": [],
"returns": "this document"
}
],
"description": "Calculate a weighted grade-point average (GPA). The calc endpoint takes a list of courses — each with a grade and the credit hours it is worth — and returns the credit-weighted GPA, the totals and a per-course breakdown of quality points. Grades may be US letter grades (A, A-, B+ … F) on the standard 4.0 scale (or 4.3 with us_plus), percentages 0–100 mapped to letters and points, raw grade points given directly as numbers, or your own custom letter→point mapping. The scales endpoint lists the built-in grade scales. Pure local maths, no key."
},
"meta": {
"timestamp": "2026-06-03T17:42:20.155Z",
"request_id": "4e501dd5-e1eb-4f77-b17f-5b5ac21071d4"
},
"status": "ok",
"message": "Meta",
"success": true
}