---
title: Filtering and inclusions
description: Apply endpoint-specific filters, sorting, projections and mountain relations.
---

## Filters and sorting

Send filters as URL query parameters and URL-encode values. Filters are endpoint-specific; consult each parameter table. A `country` value accepted by the catalog is not automatically a valid status-directory value: the status directory uses exact stored country names.

Mountain country/state aliases resolve name/code variants. Trail/lift `mountain` accepts UUID or slug; change-history `mountain` matches a UUID only. Trail `rating` and lift `type` support comma-separated case-insensitive substring alternatives. `zone` and `area` use exact matches.

Use lowercase `true` and `false` for booleans. `open=false` selects records whose open flag is false; it excludes null and is not a synonym for every detailed non-open status.

### Search discovery fields

With `include=places`, mountain search keeps its mountain array in `data` and adds top-level `places` and `facets`. Each place has id, type (`state` or `country`), name, optional code, country, country_code, mountain_count and filters suitable for a follow-up discovery request. At most six place suggestions are returned; a blank query returns no place suggestions but can still return facets. Facets contain state/country/region value-to-count maps. These are discovery counts, not open-resort statistics.

Sorting generally uses `sortBy` and `sortDirection=asc|desc`. Trail/lift/pass/change endpoints have fallback allowlists documented in their references. Mountains use column-based sorting rather than a fixed validated enum; unsupported columns can fail. Avoid inventing sort fields.

## Mountain relations

`includeTrails`, `includeLifts` and `includePasses` default to false on standard mountain reads.

| Option          | Accepted values                                                                                                  |
| --------------- | ---------------------------------------------------------------------------------------------------------------- |
| `includeTrails` | Boolean or comma-separated tokens: open, closed, groomed, glade, night, night_skiing, green, blue, black, double |
| `includeLifts`  | Boolean or comma-separated tokens: open, closed, chair, surface, gondola, magic, carpet, tram                    |
| `includePasses` | Boolean; adds pass membership records                                                                            |

Multiple attribute filters combine; selected difficulty/type alternatives match by substring. If both open and closed are requested, open takes precedence. Unrecognized tokens are not a validated enum and can leave the relation unfiltered. Use `includeTrails=false` or omit the parameter to avoid requesting the relation; do not use arbitrary strings as boolean substitutes.

```text
/api/v1/mountains/slug/killington?includeTrails=open,blue&includeLifts=open,chair
```

Included terrain uses active, non-retired inventory. Relations are not independently paginated. Query the [trail collection](/docs/reference/trails/list) or [lift collection](/docs/reference/lifts/list) when pagination is needed.

## Field selection

Mountain, trail and lift lists accept `fields=name,...`. Mountain identity `id,slug` and trail/lift identity `id,mountain` remain present; joined/enrichment fields can also remain. Projections operate on recorded columns, not arbitrary nested paths. Use verified fields and handle 500 for unsupported column names. Detail routes do not support this list projection.
