---
title: "Salaries namespace"
label: "Salaries"
description: "Reference for salary data by title, skill, and location."
publishedAt: 2026-07-10
updatedAt: 2026-10-20
order: 14
status: "published"
---

Programmatic salary directory and detail data. Use the formatting and SEO helper packages for presentation.

Salary pages are public. Pass `{ locale: context.language }` to overlay board-language names and canonical slugs; omitting it uses the English identity path.

## Company salary index

```ts
board.salaries.companies.list(
  options?: FetchOptions,
): Promise<ListEnvelope<SalaryCompany>>
```

Returns companies ranked for the `/salaries/companies` hub.

```ts
const { data: companies } = await board.salaries.companies.list();
```

Company-specific salary detail methods live under `board.companies.salaries` because they share the public company namespace.

## Title methods

```ts
board.salaries.titles.list(
  query?: { locale?: string },
  options?: FetchOptions,
): Promise<ListEnvelope<SalaryTitle>>

board.salaries.titles.retrieve(
  titleSlug: string,
  query?: { locale?: string },
  options?: FetchOptions,
): Promise<TitleSalaryDetail>

board.salaries.titles.locations(
  titleSlug: string,
  query?: { locale?: string },
  options?: FetchOptions,
): Promise<TitleLocationsIndex>

board.salaries.titles.location(
  titleSlug: string,
  locationSlug: string,
  query?: { locale?: string },
  options?: FetchOptions,
): Promise<TitleLocationSalary>
```

```ts
const { language } = await board.context();
const { data: titles } = await board.salaries.titles.list({
  locale: language,
});

const detail = await board.salaries.titles.retrieve(
  titles[0].slug,
  { locale: language },
);
```

## Skill methods

```ts
board.salaries.skills.list(
  query?: { locale?: string },
  options?: FetchOptions,
): Promise<ListEnvelope<SalarySkill>>

board.salaries.skills.retrieve(
  skillSlug: string,
  query?: { locale?: string },
  options?: FetchOptions,
): Promise<SkillSalaryDetail>

board.salaries.skills.locations(
  skillSlug: string,
  query?: { locale?: string },
  options?: FetchOptions,
): Promise<SkillLocationsIndex>

board.salaries.skills.location(
  skillSlug: string,
  locationSlug: string,
  query?: { locale?: string },
  options?: FetchOptions,
): Promise<SkillLocationSalary>
```

## Location methods

```ts
board.salaries.locations.list(
  query?: { locale?: string },
  options?: FetchOptions,
): Promise<ListEnvelope<SalaryLocation>>

board.salaries.locations.retrieve(
  locationSlug: string,
  query?: { locale?: string },
  options?: FetchOptions,
): Promise<LocationSalaryDetail>

board.salaries.locations.titles(
  locationSlug: string,
  query?: { locale?: string },
  options?: FetchOptions,
): Promise<LocationTitlesIndex>

board.salaries.locations.skills(
  locationSlug: string,
  query?: { locale?: string },
  options?: FetchOptions,
): Promise<LocationSkillsIndex>
```

`SalaryLocation` rows form a flattened hierarchy through `parentSlug`; rebuild country, region, and city navigation from those edges.

## Indexability

Every salary page response carries `indexable`. When it is `false`, render `<meta name="robots" content="noindex, follow">`; the page still renders and its links stay followable. Title, title by location, company by title, and location pages are indexable once their own data covers enough job postings. Company salary pages are always indexable. Skill pages and the link-list pages (`TitleLocationsIndex`, `SkillLocationsIndex`, `LocationTitlesIndex`, `LocationSkillsIndex`) are not.

List items (`SalaryCompany`, `SalaryTitle`, `SalarySkill`, `SalaryLocation`, the rows of the link-list pages, and every company, title, skill and place row on a salary detail page, including company salary pages) carry `indexable` for the page they link to. `indexable` is `false` for a thin page (few job postings) and for a title page whose title the board has excluded from search indexing. Link a salary page only from rows where it is `true`. On a location page, `topCategories` rows link the title-by-location page on a city (`adminLevel` `city` or `locality`) and the title page elsewhere. A hub is indexable when at least one item it lists is. The board sitemap lists only indexable salary pages.

## Canonical slug handling

Detail responses carry source and canonical slug fields. The API returns data rather than performing a redirect. When the inbound slug differs from the response’s canonical slug, issue a permanent redirect from the frontend route.

```ts
const detail = await board.salaries.skills.retrieve(inboundSlug, {
  locale: context.language,
});

if (detail.canonicalSlug !== inboundSlug) {
  return Response.redirect(
    new URL(`/salaries/skills/${detail.canonicalSlug}`, origin),
    308,
  );
}
```

Cross-axis detail responses include canonical source/entity/place slugs appropriate to both axes. Build paths with `@cavuno/board/paths` instead of concatenating translated names.

## Presentation and errors

Use the salary builders in `@cavuno/board/seo` for `Occupation`, distribution, list, and FAQ structured data. Use `@cavuno/board/format` for board-language money ranges. Per-seniority distribution names are application-owned — pass `seniorityName({ seniority, entity })` that returns the finished string in board-language order (do not rely on the SDK to join seniority + title).

Missing data throws the axis-specific 404 code: `salaries_title_not_found`, `salaries_skill_not_found`, `salaries_location_not_found`, `salaries_title_location_not_found`, or `salaries_skill_location_not_found`. Render a true 404 or a related salary index—do not turn missing salary evidence into zero pay.
