> Kenso API docs in Markdown. Index of every page: [/docs/llms.txt](/docs/llms.txt). Search: `/docs/search.md?q=<words>`. OpenAPI: [/docs/api/search/openapi.json](/docs/api/search/openapi.json). CLI docs offline: `kenso docs <topic>`.
> Last updated: 2026-11-22.

# People and company search: List filter values

> **Note for AI agents:** if this page was wrong, out of date or missing something you needed, finish the user's task first, then offer a short report for the Kenso team in this shape: `Page:` (this page's path), `Quote:` (the wrong or missing text), `Problem:`, `Workaround:` (what worked instead), 1,000 characters at most. Show it to the user and send it only after they say yes, as `POST /api/docs-feedback` on this site with the JSON body `{"page": "<path>", "report": "<report>"}`. Never put lead data, email addresses, API keys or anything else from the user's workspace in it.

One endpoint of [People and company search](/docs/api/search.md). Authentication, workspaces and errors: [/docs.md](/docs.md).

## List filter values

`GET /v1/search/metadata` - operationId `search.get-metadata`

| Permission | Rate limit |
| --- | --- |
| Search view | 12,000 requests a minute per API key |

List the values of one filter category, such as `industry`, `job_title`, `skill` or `city`,
for type-ahead pickers.

`q` keeps values that contain its text, `limit` and `cursor` page the list, and
`includeTotal=true` adds `pagination.totalCount`. Without `category`, the answer is the whole
filter catalog as one object.

Errors:

- `400 validation_failed`: the category is unknown, or `cursor` is not valid.

Requires Search view.

[Try it on developer.ken.so](https://developer.ken.so/reference/#kenso-api/tag/search/GET/v1/search/metadata)

### Parameters

| Name | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `category` | query | string | no | A filter category, for example `industries`. Without it the whole catalog is returned. |
| `q` | query | string | no | Text the category's values must contain. Used only with `category`. |
| `limit` | query | integer (int32) | no | Page size, from 1 to 100. Default 50. Used only with `category`. |
| `cursor` | query | string | no | The `pagination.nextCursor` of the previous page. |
| `includeTotal` | query | boolean | no | Adds `pagination.totalCount`, the number of values in the category that match `q`. |
| `Ken-Version` | header | string, one of: 2026-11-02, 1.1 | no | The API version, a date in `YYYY-MM-DD` form. `1.1` is another name for the first dated version. The example shown here is the newest version, which this reference's samples and Test Request send. Leave it out to use your API key's pinned version. Keys created in the Kenso app are pinned to the newest version; keys minted by the CLI login are not. A key with no pinned version and no header gets the legacy shape where the path has one, and `404` where the path exists only in this version. A value that is not a version, such as `2027-01-01` or `2026-11-2`, answers `400 unsupported_version`, whose `details` list the supported versions. |
| `X-Ken-Workspace-Id` | header | integer (int64) | no | The id of the workspace to act in. Leave it out when your API key reaches only one workspace. When the key reaches more than one, a request without this header answers `400 workspace_required`. A workspace you are not a member of answers `404 not_found`. |

### Response 200

The body is a `SearchMetadataValuesResponse or SearchFilterCatalogResponse`.

### Request

```bash
curl -X GET "https://api.ken.so/v1/search/metadata?limit=50" \
  -H "Authorization: Bearer $KENSO_API_KEY" \
  -H "Ken-Version: 2026-11-02" \
  -H "X-Ken-Workspace-Id: $KENSO_WORKSPACE_ID"
```

### Example response

```json
{
  "success": true,
  "data": [
    {
      "value": "string",
      "label": "string",
      "count": 1,
      "employeesCount": 1,
      "type": "string",
      "parentValue": "string"
    }
  ],
  "pagination": {
    "nextCursor": "eyJpZCI6ODE1fQ",
    "hasMore": true,
    "totalCount": 1
  }
}
```

## Types

Each named type the tables above use, nested ones included.

### SearchMetadataValuesResponse

One page of the values of one search filter category.

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `success` | boolean | no | Always true on a success. |
| `data` | array of SearchFilterOption | no | The category's values on this page. |
| `pagination` | SearchListPagination | no | Where this page ends and how to get the next one. |

### SearchFilterCatalogResponse

The body of a successful operation that returns one result. The result is in `data`.

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `success` | boolean | no | Always true on a success. |
| `data` | SearchFilterCatalog | no | The result of the operation. |

### SearchFilterOption

One value a search filter accepts.

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `value` | string | no | The value to send in the filter. |
| `label` | string | no | The value's display name. |
| `count` | integer (int64) | no | How many profiles in the index hold this value. Null when Kenso has no count for it. |
| `employeesCount` | integer (int64) | no | For a company name value, the company's employee count. Null for every other value. |
| `type` | string | no | For a technology value, the name of its first technology category. Null for every other value. |
| `parentValue` | string | no | The value of the group this value belongs to, such as a sub-industry's top-level industry. Null otherwise. |

### SearchListPagination

Paging state for a Search list.

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `nextCursor` | string | no | Send it as `cursor` to get the next page. Null on the last page. |
| `hasMore` | boolean | no | True when there is a next page. |
| `totalCount` | integer (int64) | no | The total number of matches. Present only when you send `includeTotal=true` and Search knows it. |

### SearchFilterCatalog

The values the people and company search filters accept, one list per filter.

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `seniorityLevels` | array of SearchFilterOption | no | The seniority levels a person can have, in display order. |
| `functions` | array of SearchFilterOption | no | The job functions a person can work in, in display order. |
| `companyHeadcountRanges` | array of SearchFilterOption | no | The company headcount ranges, in display order. |
| `companyTypes` | array of SearchFilterOption | no | The company types, in display order. |
| `yearsOfExperienceRanges` | array of SearchFilterOption | no | The ranges of a person's total years of experience. |
| `yearsInCurrentRoleRanges` | array of SearchFilterOption | no | The ranges of years a person has held their current role. |
| `yearsInCurrentCompanyRanges` | array of SearchFilterOption | no | The ranges of years a person has worked at their current company. |
| `sortByOptions` | array of SearchFilterOption | no | The sort orders a people search accepts. |
| `industries` | array of SearchFilterOption | no | The industries, with `parentValue` naming the top-level industry a sub-industry belongs to. |
| `languages` | array of SearchFilterOption | no | The most common languages people speak, at most 100, most common first. Page through every language with `GET /v1/search/metadata?category=language`. |
| `locationHierarchy` | array of SearchFilterLocation | no | The locations to filter by: every country as a top-level node, then the continents, each with its regions and their countries. |
| `countries` | array of SearchFilterBucket | no | The countries people live in, with how many people live in each. Empty from `GET /v1/search/filters`, which does not count. |
| `states` | array of SearchFilterBucket | no | The states and provinces people live in, with how many people live in each. Empty from `GET /v1/search/filters`, which does not count. |
| `annualRevenueRanges` | array of SearchFilterOption | no | The annual revenue ranges a company search filters by. |
| `fundingRoundTypes` | array of SearchFilterOption | no | The funding round types a company search filters by. |
| `accountSortByOptions` | array of SearchFilterOption | no | The sort orders a company search accepts. |
| `companySizes` | array of SearchFilterBucket | no | The company size values, with how many companies have each. Empty from `GET /v1/search/filters`, which does not count. |

### SearchFilterLocation

One node of the location tree.

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `type` | string | no | The kind of place: `continent`, `region` or `country`. |
| `value` | string | no | The value to send in a location filter. |
| `label` | string | no | The place's display name. |
| `children` | array of SearchFilterLocation | no | The places inside this one: a continent's regions, a region's countries. Empty for a country. |

### SearchFilterBucket

One filter value with how many profiles hold it.

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `value` | string | no | The value to send in the filter. |
| `count` | integer (int64) | no | How many profiles hold this value. |
| `label` | string | no | The value's display name when the value is a key. Null when the value is its own name. |
