# Filters

What every search filter takes, the values each filter takes and the places location takes. Free.

## Filters

Every filter of [Search jobs](/api/docs/endpoints/jobs#r-jobs) and where its values come from. Both endpoints on this page are free.

| Filter | What it takes | Where to find the values |
|---|---|---|
| `function`, `level`, `employment_type`, `workplace_type`, `ats` | ids such as `product_manager` or `remote` | [The values each filter takes](#r-values) |
| `country` | two-letter country codes such as `US` or `GB` | `country` in [the values each filter takes](#r-values) |
| `region` | state or province codes such as `TX` or `ON` | `region` in [the values each filter takes](#r-values) |
| `location` | place names, exactly as listed | [Places](#r-locations) |
| `company_id` | company ids such as `co_...` | [Search companies](/api/docs/endpoints/companies#r-companies) |
| `company_domain` | company domains such as `stripe.com` | nothing to look up |
| `company_list_id` | your own company lists such as `cl_...` | [Company lists](/api/docs/endpoints/saved#r-company-lists) |
| `q`, pay, dates, `status` and `id` | words, numbers and times | [Search jobs](/api/docs/endpoints/jobs#r-jobs) |

Every list filter has an `exclude_` twin that takes the same values. How filters combine is on [Using the API](/api/docs/using-the-api#filters). A value that does not exist is refused with 400 `invalid_value` and a suggestion, free.



## The values each filter takes

`GET /v1/filters` · Every plan

The ids function, level, employment_type, workplace_type, ats, country and region take, with open job counts. country lists every country with open jobs and its name. region lists every state or province code with the countries its jobs are in. An ATS also says when we started reading it (added_at). taxonomy_version goes up when a classifier changes what a value means. Read live. New values appear here with no new version, and each open_jobs is counted when you ask (at most 10 seconds old), so it is the number that value's filter returns as total in POST /v1/jobs/search. Place names are at GET /v1/filters/locations.

Carries an ETag. Send it back in the `If-None-Match` header. While the answer is unchanged you get 304 Not Modified with no body, free against your credits (it still counts toward your connections and calls a second).

#### Parameters

| Parameter | Where | Type | What it is |
|---|---|---|---|
| API key | header | string | Your API key in the Authorization header: `Authorization: Bearer ca_live_...` |
| `If-None-Match` | header | header | The ETag of the answer you hold. When nothing changed you get 304, no body, 0 credits. |

#### What you get back

The lists.

| Field | Type | What it is |
|---|---|---|
| `object` | string | Always "filters". |
| `function` | list | Functions. Open list, so new values may appear without a new version. |
| `function.id` | string | Send this in the filter. |
| `function.name` | string | Display name. |
| `function.open_jobs` | integer | Open jobs with this value now. |
| `level` | list | Levels. Open list, so new values may appear without a new version. |
| `level.id` | string | Send this in the filter. |
| `level.name` | string | Display name. |
| `level.open_jobs` | integer | Open jobs with this value now. |
| `employment_type` | list | Employment types. Open list, so new values may appear without a new version. |
| `employment_type.id` | string | Send this in the filter. |
| `employment_type.name` | string | Display name. |
| `employment_type.open_jobs` | integer | Open jobs with this value now. |
| `workplace_type` | list | Workplace types. Open list, so new values may appear without a new version. |
| `workplace_type.id` | string | Send this in the filter. |
| `workplace_type.name` | string | Display name. |
| `workplace_type.open_jobs` | integer | Open jobs with this value now. |
| `ats` | list | ATSes. Open list, so new values may appear without a new version. |
| `ats.id` | string | Send this in the filter. |
| `ats.name` | string | Display name. |
| `ats.open_jobs` | integer | Open jobs with this value now. |
| `ats.added_at` | date-time or null | The day we started reading this ATS (00:00 UTC), announced in the changelog. Its jobs arrive dated when found, never backdated. null for the ATSes read since before dates were kept. |
| `country` | list | Every country with open jobs, most jobs first. Its id is what country takes. |
| `country.id` | string | ISO 3166-1 alpha-2 ("US", "GB"). Send this in country. |
| `country.name` | string | The country's English name. |
| `country.open_jobs` | integer | Open jobs in this country now, the number country returns. |
| `region` | list | Every state or province code with open jobs, most jobs first. Its id is what region takes. |
| `region.id` | string | The state or province code as stored ("TX", "ON"). Send this in region. |
| `region.open_jobs` | integer | Open jobs in this region now, the number region returns. |
| `region.country_codes` | list | The countries its jobs are in, most jobs first, up to 3. One code can be used in more than one country (WA is Washington and Western Australia), and region matches it in any. To keep one, send country too. Empty when its jobs carry no country. |
| `taxonomy_version` | integer | The version of the classifiers behind function and level. It goes up when a classifier changes what a value means, announced in the changelog 30 days ahead with both versions named. Ids are never reused. |

#### Errors

400 `unknown_parameter`, 400 `invalid_value`, 401 `missing_key`, 401 `invalid_key`, 401 `invalid_token`, 401 `key_in_url`, 403 `access_removed`, 403 `https_required`, 410 `version_retired`, 429 `too_many_searches`, 429 `rate_limited`, 431 `headers_too_large`, 500 `internal_error`, 503 `unavailable`

Request

```bash
curl https://api.careeramplifier.com/v1/filters \
  -H "Authorization: Bearer YOUR_API_KEY"
```

Answer (200, shortened)

```json
{
  "object": "filters",
  "function": [
    {
      "id": "other",
      "name": "Other",
      "open_jobs": 333435
    },
    ...
  ],
  "level": [
    {
      "id": "entry",
      "name": "Entry",
      "open_jobs": 301362
    },
    ...
  ],
  "employment_type": [
    {
      "id": "full_time",
      "name": "Full Time",
      "open_jobs": 408521
    },
    ...
  ],
  "workplace_type": [
    {
      "id": "on_site",
      "name": "On site",
      "open_jobs": 368627
    },
    ...
  ],
  "ats": [
    {
      "id": "workday",
      "name": "Workday",
      "open_jobs": 287367,
      "added_at": null
    },
    ...
  ],
  "country": [
    {
      "id": "US",
      "name": "United States",
      "open_jobs": 310975
    },
    ...
  ],
  "region": [
    {
      "id": "CA",
      "open_jobs": 31059,
      "country_codes": [
        "US",
        ...
      ]
    },
    ...
  ],
  "taxonomy_version": 1
}
```

## Places

`GET /v1/filters/locations` · Every plan

With q, the places whose name starts with q (not case-sensitive), most used first, up to 20. Without q, every place we know, most used first, a batch at a time. Follow next_cursor to download the whole list. Send a name exactly as listed in location. A name several places share is listed once per place as "Name (CC)", for example "London (CA)", and that text picks that one place. The list is rebuilt once a day, so a walk through it across that moment can repeat or miss a place. For countries and regions see GET /v1/filters.

Carries an ETag. Send it back in the `If-None-Match` header. While the answer is unchanged you get 304 Not Modified with no body, free against your credits (it still counts toward your connections and calls a second).

#### Parameters

| Parameter | Where | Type | What it is |
|---|---|---|---|
| API key | header | string | Your API key in the Authorization header: `Authorization: Bearer ca_live_...` |
| `q` | query | string | The start of a place name, at least 2 characters. Left out, the answer pages through every place. example `aus` |
| `limit` | query | integer | How many places in this batch. 1 to 20, default 20. 1 to 20 · default `20` |
| `cursor` | query | string | next_cursor from the previous answer, exactly as it came. Without q only. |
| `If-None-Match` | header | header | The ETag of the answer you hold. When nothing changed you get 304, no body, 0 credits. |

#### What you get back

Places.

| Field | Type | What it is |
|---|---|---|
| `object` | string | Always "list". |
| `data` | list | Each holds `name`, `country_code`. |
| `data.name` | string | Send exactly this in location. A name several places share is listed once per place as "Name (CC)". |
| `data.country_code` | string | ISO 3166-1 alpha-2. |
| `has_more` | boolean | true when there is a next batch. Always false with q. |
| `next_cursor` | string or null | Send it back as cursor for the next batch. null on the last one, and always with q. |

#### Errors

400 `unknown_parameter`, 400 `invalid_value`, 400 `cursor_invalid`, 401 `missing_key`, 401 `invalid_key`, 401 `invalid_token`, 401 `key_in_url`, 403 `access_removed`, 403 `https_required`, 410 `version_retired`, 429 `too_many_searches`, 429 `rate_limited`, 431 `headers_too_large`, 500 `internal_error`, 503 `unavailable`

Request

```bash
curl "https://api.careeramplifier.com/v1/filters/locations?q=Aus" \
  -H "Authorization: Bearer YOUR_API_KEY"
```

Answer (200, shortened)

```json
{
  "object": "list",
  "data": [
    {
      "name": "Austin, TX",
      "country_code": "US"
    },
    ...
  ],
  "has_more": false,
  "next_cursor": null
}
```

From https://careeramplifier.com/api/docs/endpoints/filters. Every page: https://careeramplifier.com/llms-full.txt
