Zum Inhalt springen
GET /v1/major

Major by name or code

Live testen

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

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

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

API-Key holen

Code-Snippets

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

Beispiel-Response

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

{
    "data": {
        "major": {
            "men": 2057,
            "code": "2419",
            "rank": 1,
            "major": "Petroleum Engineering",
            "total": 2339,
            "women": 282,
            "category": "Engineering",
            "employed": 1976,
            "share_women": 0.1206,
            "college_jobs": 1534,
            "p25_earnings": 95000,
            "p75_earnings": 125000,
            "median_earnings": 110000,
            "non_college_jobs": 364,
            "unemployment_rate": 0.0184
        }
    },
    "meta": {
        "timestamp": "2026-06-09T03:03:50.214Z",
        "request_id": "0db38d61-017c-4ff1-b469-4b15993b9a31"
    },
    "status": "ok",
    "message": "Major retrieved successfully",
    "success": true
}