# Vocabulary

> The label for every code the closed lists use: employment type, work arrangement, seniority, education, job family, salary unit, company type and size. Codes are what jobs carry and filters take; labels are what you show a person. Costs no jobs.

Source: https://hyperjobs.io/docs/api-reference/vocabulary

<EndpointHeader method="GET" path="/v1/vocabulary" />

Every closed list in the catalogue is a list of **codes**: `full_time`,
`on_site`, `senior`, `finance_accounting`. A code is what a job carries,
what a facet counts and what a filter takes, and it never changes. Each code
also has a **label** ("Full-time", "On-site", "Senior", "Finance &
Accounting") for showing to a person. This endpoint serves the labels, so a
client can render them without copying the table out of the
[enums reference](/docs/reference/enums). A reworded label reaches this
endpoint with the data, not with a release of the API.

Labels can be reworded; codes can't. Store and send the code, and look the
label up when you display it.

<CodeGroup>
```bash title="cURL"
curl -H "Authorization: Bearer $HYPERJOBS_KEY" \
  "https://api.hyperjobs.io/v1/vocabulary"
```

```js title="Node"
const res = await fetch("https://api.hyperjobs.io/v1/vocabulary", {
  headers: { Authorization: `Bearer ${process.env.HYPERJOBS_KEY}` },
});
const { lists } = await res.json();

// code → label, per list
const label = Object.fromEntries(
  Object.entries(lists).map(([name, values]) => [
    name,
    Object.fromEntries(values.map((v) => [v.code, v.label])),
  ]),
);
label.seniority[job.seniority]; // "Senior"
```

```python title="Python"
import os, requests

res = requests.get(
    "https://api.hyperjobs.io/v1/vocabulary",
    headers={"Authorization": f"Bearer {os.environ['HYPERJOBS_KEY']}"},
    timeout=30,
)
res.raise_for_status()
labels = {name: {v["code"]: v["label"] for v in values}
          for name, values in res.json()["lists"].items()}
```
</CodeGroup>

## Query parameters

None. Any parameter is a `400` that names it, like every other endpoint.

## Response

`{ lists }`: one entry per closed list, each an array of `{ code, label }` in
display order (seniority from `intern` up to `executive`, company size
from smallest to largest).

```json title="Response"
{
  "lists": {
    "employment_type": [
      { "code": "full_time", "label": "Full-time" },
      { "code": "part_time", "label": "Part-time" },
      { "code": "contract", "label": "Contract" },
      { "code": "temporary", "label": "Temporary" },
      { "code": "internship", "label": "Internship" },
      { "code": "per_diem", "label": "Per diem" },
      { "code": "volunteer", "label": "Volunteer" },
      { "code": "other", "label": "Other" }
    ],
    "work_arrangement": [
      { "code": "on_site", "label": "On-site" },
      { "code": "hybrid", "label": "Hybrid" },
      { "code": "remote", "label": "Remote" }
    ],
    "seniority": [
      { "code": "intern", "label": "Intern" },
      { "code": "entry", "label": "Entry level" },
      { "code": "mid", "label": "Mid level" },
      { "code": "senior", "label": "Senior" },
      { "code": "lead", "label": "Lead" },
      { "code": "director", "label": "Director" },
      { "code": "executive", "label": "Executive" }
    ],
    "education": [
      { "code": "high_school", "label": "High school" },
      { "code": "professional_certificate", "label": "Professional certificate" },
      { "code": "associate_degree", "label": "Associate degree" },
      { "code": "bachelor_degree", "label": "Bachelor's degree" },
      { "code": "postgraduate_degree", "label": "Postgraduate degree" }
    ],
    "taxonomies": [
      { "code": "administrative", "label": "Administrative" },
      { "code": "agriculture", "label": "Agriculture" },
      { "code": "art_design", "label": "Art & Design" },
      { "code": "construction", "label": "Construction" },
      { "code": "consulting", "label": "Consulting" },
      { "code": "creative_media", "label": "Creative & Media" },
      { "code": "customer_service_support", "label": "Customer Service & Support" },
      { "code": "data_analytics", "label": "Data & Analytics" },
      { "code": "education", "label": "Education" },
      { "code": "energy", "label": "Energy" },
      { "code": "engineering", "label": "Engineering" },
      { "code": "finance_accounting", "label": "Finance & Accounting" },
      { "code": "healthcare", "label": "Healthcare" },
      { "code": "hospitality", "label": "Hospitality" },
      { "code": "human_resources", "label": "Human Resources" },
      { "code": "legal", "label": "Legal" },
      { "code": "logistics", "label": "Logistics" },
      { "code": "management_leadership", "label": "Management & Leadership" },
      { "code": "manufacturing", "label": "Manufacturing" },
      { "code": "marketing", "label": "Marketing" },
      { "code": "sales", "label": "Sales" },
      { "code": "science_research", "label": "Science & Research" },
      { "code": "security_safety", "label": "Security & Safety" },
      { "code": "social_services", "label": "Social Services" },
      { "code": "software", "label": "Software" },
      { "code": "technology", "label": "Technology" },
      { "code": "trades", "label": "Trades" },
      { "code": "transportation", "label": "Transportation" }
    ],
    "salary_unit": [
      { "code": "hour", "label": "per hour" },
      { "code": "day", "label": "per day" },
      { "code": "week", "label": "per week" },
      { "code": "biweek", "label": "every two weeks" },
      { "code": "semimonth", "label": "twice a month" },
      { "code": "month", "label": "per month" },
      { "code": "year", "label": "per year" }
    ],
    "company_type": [
      { "code": "public_company", "label": "Public company" },
      { "code": "privately_held", "label": "Privately held" },
      { "code": "nonprofit", "label": "Nonprofit" },
      { "code": "partnership", "label": "Partnership" },
      { "code": "self_owned", "label": "Self-owned" },
      { "code": "self_employed", "label": "Self-employed" },
      { "code": "government_agency", "label": "Government agency" },
      { "code": "educational", "label": "Educational" }
    ],
    "company_size": [
      { "code": "1", "label": "1 employee" },
      { "code": "2_10", "label": "2–10 employees" },
      { "code": "11_50", "label": "11–50 employees" },
      { "code": "51_200", "label": "51–200 employees" },
      { "code": "201_500", "label": "201–500 employees" },
      { "code": "501_1000", "label": "501–1,000 employees" },
      { "code": "1001_5000", "label": "1,001–5,000 employees" },
      { "code": "5001_10000", "label": "5,001–10,000 employees" },
      { "code": "10001_plus", "label": "10,001+ employees" }
    ],
    "travel": [
      { "code": "none", "label": "No travel" },
      { "code": "under_25", "label": "Up to 25%" },
      { "code": "25_50", "label": "25% to 50%" },
      { "code": "over_50", "label": "Over 50%" }
    ],
    "pre_employment_checks": [
      { "code": "background_check", "label": "Background check" },
      { "code": "drug_test", "label": "Drug test" },
      { "code": "credit_check", "label": "Credit check" }
    ]
  }
}
```

(The codes are fixed; the labels are the ones published with the catalogue
at the time of writing and may be reworded. Every code and label is also
listed in the [enums reference](/docs/reference/enums).)

## Lists, fields and filters

The lists are named like the filters and facets, which isn't always the name
of the field they describe:

| List | Field | Filter |
| --- | --- | --- |
| `employment_type` | [`job.employment_type`](/docs/objects/job#classification) | `employment_type` |
| `work_arrangement` | [`job.work_arrangement`](/docs/objects/job#classification) | `work_arrangement` |
| `seniority` | [`job.seniority`](/docs/objects/job#classification) | `seniority` |
| `education` | [`job.education`](/docs/objects/job#classification) | `education` |
| `taxonomies` | [`job.taxonomies`](/docs/objects/job#classification) | `taxonomies`, `taxonomies_primary`, `exclude_taxonomies` |
| `salary_unit` | [`job.salary.unit`](/docs/objects/job#salary) | — |
| `company_type` | [`company.type`](/docs/objects/company#profile) | — |
| `company_size` | [`company.size_range`](/docs/objects/company#size-and-age) | `company_size` on `/v1/jobs`, `size` on `/v1/companies` |
| `travel` | [`job.travel`](/docs/objects/job#classification) | `travel` |
| `pre_employment_checks` | [`job.pre_employment_checks`](/docs/objects/job#classification) | `pre_employment_checks`, `exclude_pre_employment_checks` |

Countries, regions, cities and continents are names, not codes, and aren't served
here. The place names have their own endpoint,
[`/v1/locations`](/docs/api-reference/locations). Skills, certifications,
required languages and company industries aren't served either: they are words
as the posting or the company profile wrote them, not codes. See
[how names match](/docs/guides/filtering#how-names-match).

<Note>
  A new code can appear (a new job family, say) and that is
  [backwards-compatible](/docs/changelog#compatibility-policy): render an
  unknown code as itself rather than failing. A label may be reworded at any
  time; a code is never renamed inside `/v1`.
</Note>

## Cost

Requires a key, and counts one request against your
[per-minute rate](/docs/rate-limits), but bills **no jobs**. It sells no job
rows, so it doesn't touch the monthly quota. The lists change rarely: fetch
once and cache.

## Errors

| Status | Cause |
| --- | --- |
| `400` | Any query parameter. The body names the `param` and carries a `hint`. |
| `401` | Missing, unknown, revoked, or expired key. |
| `402` | Monthly [quota](/docs/rate-limits) already exhausted: the gate runs before every endpoint, including free ones. |
| `429` | [Rate limit](/docs/rate-limits) exceeded. |
| `500` | Server error. Retry with backoff. |

## Related

<CardGroup cols={2}>
  <Card title="Enums & vocabularies" icon="ListChecks" href="/docs/reference/enums">
    Every code with its label, and how each filter matches.
  </Card>
  <Card title="List jobs" icon="Search" href="/docs/api-reference/jobs-list">
    The filters these codes feed.
  </Card>
  <Card title="Locations" icon="MapPin" href="/docs/api-reference/locations">
    The place names the location filters take.
  </Card>
  <Card title="Rate limits & quotas" icon="Gauge" href="/docs/rate-limits">
    What costs jobs and what doesn't.
  </Card>
</CardGroup>
