Skip to content
GET /v1/category

Majors in a category

Try it live

10 free calls per day — no sign-up, no API key. Goes through the oanor gateway.

Custom headers (optional)
api.oanor.com/collegemajors-api

It works. Grab an API key and use it in your project.

Get an API key

Code snippets

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

Example response

A real response from this endpoint, captured by the latest health check.

{
    "data": {
        "count": 29,
        "majors": [
            {
                "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
            },
            {
                "men": 679,
                "code": "2416",
                "rank": 2,
                "major": "Mining and Mineral Engineering",
                "total": 756,
                "women": 77,
                "category": "Engineering",
                "employed": 640,
                "share_women": 0.1019,
                "college_jobs": 350,
                "p25_earnings": 55000,
                "p75_earnings": 90000,
                "median_earnings": 75000,
                "non_college_jobs": 257,
                "unemployment_rate": 0.1172
            },
            {
                "men": 725,
                "code": "2415",
                "rank": 3,
                "major": "Metallurgical Engineering",
                "total": 856,
                "women": 131,
                "category": "Engineering",
                "employed": 648,
                "share_women": 0.153,
                "college_jobs": 456,
                "p25_earnings": 50000,
                "p75_earnings": 105000,
                "median_earnings": 73000,
                "non_college_jobs": 176,
                "unemployment_rate": 0.0241
            },
            {
                "men": 1123,
                "code": "2417",
                "rank": 4,
                "major": "Naval Architecture and Marine Engineering",
                "total": 1258,
                "women": 135,
                "category": "Engineering",
                "employed": 758,
                "share_women": 0.1073,
                "college_jobs": 529,
                "p25_earnings": 43000,
                "p75_earnings": 80000,
                "median_earnings": 70000,
                "non_college_jobs": 102,
                "unemployment_rate": 0.0501
            },
            {
                "men": 21239,
                "code": "2405",
                "rank": 5,
                "major": "Chemical Engineering",
                "total": 32260,
                "women": 11021,
                "category": "Engineering",
                "employed": 25694,
                "share_women": 0.3416,
                "college_jobs": 18314,
                "p25_earnings": 50000,
                "p75_earnings": 75000,
                "median_earnings": 65000,
                "non_college_jobs": 4440,
                "unemployment_rate": 
…