Zum Inhalt springen
GET /v1/meta

Spec

Live testen

10 freie Calls pro Tag — keine Anmeldung, kein API-Key. Geht durchs oanor-Gateway.

Eigene Header (optional)
api.oanor.com/gradecalc-api

Funktioniert. Hol dir einen API-Key und nutze sie in deinem Projekt.

API-Key holen

Code-Snippets

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

Beispiel-Response

Echte Antwort dieses Endpoints, erfasst beim letzten Health-Check.

{
    "data": {
        "note": "Percentages 0–100; weights accept percent (30) or fraction (0.3). For multi-course GPA from credit hours, use a GPA API.",
        "service": "gradecalc",
        "endpoints": {
            "/v1/needed": "Score needed on the final/remaining work to reach a target overall grade.",
            "/v1/average": "Weighted average of graded components (score:weight list).",
            "/v1/projected": "Projected overall grade for a hypothetical final score."
        },
        "description": "Single-course grade maths: score needed on the final for a target, projected overall grade, and weighted component average."
    },
    "meta": {
        "timestamp": "2026-06-04T01:59:15.758Z",
        "request_id": "893dfe8e-541f-4ec1-828b-e3f73b6f2c7f"
    },
    "status": "ok",
    "message": "Meta",
    "success": true
}