Naar de inhoud
GET /v1/list

List all majors

Probeer het live

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

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

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

Verkrijg een API-sleutel

Codefragmenten

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

Voorbeeldrespons

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

{
    "data": {
        "count": 50,
        "total": 173,
        "majors": [
            {
                "men": 6053,
                "code": "1100",
                "rank": 65,
                "major": "General Agriculture",
                "total": 10399,
                "women": 4346,
                "category": "Agriculture & Natural Resources",
                "employed": 8884,
                "share_women": 0.4179,
                "college_jobs": 2418,
                "p25_earnings": 30000,
                "p75_earnings": 50000,
                "median_earnings": 40000,
                "non_college_jobs": 4717,
                "unemployment_rate": 0.0196
            },
            {
                "men": 9658,
                "code": "1101",
                "rank": 64,
                "major": "Agriculture Production and Management",
                "total": 14240,
                "women": 4582,
                "category": "Agriculture & Natural Resources",
                "employed": 12323,
                "share_women": 0.3218,
                "college_jobs": 1925,
                "p25_earnings": 25000,
                "p75_earnings": 50000,
                "median_earnings": 40000,
                "non_college_jobs": 6221,
                "unemployment_rate": 0.05
            },
            {
                "men": 1749,
                "code": "1102",
                "rank": 72,
                "major": "Agricultural Economics",
                "total": 2439,
                "women": 690,
                "category": "Agriculture & Natural Resources",
                "employed": 2174,
                "share_women": 0.2829,
                "college_jobs": 535,
                "p25_earnings": 27000,
                "p75_earnings": 54000,
                "median_earnings": 40000,
                "non_college_jobs": 893,
                "unemployment_rate": 0.0772
            },
            {
                "men": 5347,
                "code": "1103",
                "rank": 153,
                "major": "Animal Sciences",
                "total": 21573,
                "women": 16226,
                "category": "Agriculture & Natural Resources",
                "employed": 17112,
                "share_women": 0.7521,
                "college_jobs": 5443,
                "p25_earnings": 22000,
                "p75_earnings": 40000,
                "median_earnings": 30000,
                "non_college_jobs": 9571,
                "unemployment_rate": 0.0509
            },
            {
                "men": null,
                "code": "1104",
                "rank": 22,
                "major": "Food Science",
                "total": null,
                "women": null,
                "category": "Agriculture & Natural Resources",
                "employed": 3149,
                "share_women": null,
                "college_jobs": 1183,
                "p25_earnings": 32000,
                "p75_earnings": 70000,
              
…