---
title: 'List trail changes'
description: 'GET /api/v1/trail-changes — List trail changes.'
---

`GET /api/v1/trail-changes`

Retrieve recorded entity changes with optional exact mountain, name, zone, source and run filters. Use this collection for a paginated activity log.

## Authentication

An API key is required for external integrations. Send `X-API-Key: YOUR_API_KEY` or `Authorization: Bearer YOUR_API_KEY`. [Authentication](/docs/getting-started/authentication) explains public origin and secret IP restrictions.

## Parameters

### Query parameters

| Parameter       | Type    | Required | Default      | Description                                                                                             |
| --------------- | ------- | -------- | ------------ | ------------------------------------------------------------------------------------------------------- |
| `mountain`      | string  | No       | —            | Mountain UUID, exact; slug is not resolved.                                                             |
| `trail_name`    | string  | No       | —            | Exact recorded entity name.                                                                             |
| `zone`          | string  | No       | —            | Exact zone.                                                                                             |
| `run_id`        | string  | No       | —            | Exact run ID.                                                                                           |
| `source`        | string  | No       | —            | Exact source label.                                                                                     |
| `limit`         | integer | No       | `100`        | Maximum records; send a positive integer.                                                               |
| `offset`        | integer | No       | `0`          | Records to skip; send a nonnegative integer.                                                            |
| `sortBy`        | string  | No       | `created_at` | Sort column. Unsupported columns fall back to the default. Accepted: `created_at`, `trail_name`, `zone` |
| `sortDirection` | string  | No       | `desc`       | Sort direction. Accepted: `asc`, `desc`                                                                 |

Recorded changes are not a full time series of resort states. Unchanged observations need not create rows. No retention duration is guaranteed. Preserve the returned fields payload. Query validation bounds are not enforced.

## Example request

::code-group

```bash [cURL]
curl -H "X-API-Key: $ICECOAST_API_KEY" 'https://api.icecoast.us/api/v1/trail-changes?limit=2'
```

```js [JavaScript]
const response = await fetch('https://api.icecoast.us/api/v1/trail-changes?limit=2', {
  headers: { 'X-API-Key': process.env.ICECOAST_API_KEY },
});
if (!response.ok) throw new Error(`HTTP ${response.status}`);
const result = await response.json();
console.log(result);
```

```python [Python]
import os
import requests

response = requests.get(
    'https://api.icecoast.us/api/v1/trail-changes?limit=2',
    headers={'X-API-Key': os.environ['ICECOAST_API_KEY']},
    timeout=30,
)
response.raise_for_status()
print(response.json())
```

::

JavaScript above is a server-side Node.js example. Browser clients must use an origin-restricted public key; never bundle a secret key.

## Response

Success is HTTP 200 with `success: true`, `data` and `meta.version: "v1"`. See [pagination](/docs/concepts/pagination) for `meta` fields and next/previous links.

The following is a **synthetic response excerpt** illustrating the verified structure. Names, IDs, counts and dates are examples, not live resort data. Optional fields are omitted.

```json
{
  "success": true,
  "data": [
    {
      "id": 123,
      "mountain": "00000000-0000-4000-8000-000000000001",
      "trail_name": "Example Trail",
      "zone": "Main",
      "fields": {
        "open": {
          "from": false,
          "to": true
        }
      },
      "run_id": null,
      "source": "example",
      "created_at": "2026-12-04T12:00:00.000Z"
    }
  ],
  "meta": {
    "version": "v1",
    "total": 1,
    "limit": 100,
    "offset": 0,
    "count": 1,
    "hasMore": false,
    "links": {
      "next": null,
      "prev": null
    }
  }
}
```

### Resource fields

| Field        | Type             | Meaning                                                 |
| ------------ | ---------------- | ------------------------------------------------------- |
| `id`         | integer / string | See the data model and returned resource.               |
| `mountain`   | string           | Mountain UUID.                                          |
| `trail_name` | string           | Trail name, on trail changes.                           |
| `lift_name`  | string           | Lift name, on lift changes.                             |
| `zone`       | string / null    | Zone.                                                   |
| `fields`     | object           | Changed-field payload; preserve its returned structure. |
| `run_id`     | string / null    | Associated ingestion run if recorded.                   |
| `source`     | string / null    | Recorded source label.                                  |
| `created_at` | string           | Change-record timestamp.                                |

Record fields may be missing or null. Treat identifiers as opaque and distinguish unavailable values from confirmed false/zero. See [data semantics](/docs/concepts/data-model).

## Errors

| HTTP status | Meaning                                                                    |
| ----------- | -------------------------------------------------------------------------- |
| 400         | Invalid request parameters where validated.                                |
| 401         | Missing, invalid, expired or revoked API key.                              |
| 403         | Origin/IP restriction or endpoint key-type restriction denied the request. |
| 429         | Monthly API allowance exhausted when a key is used.                        |
| 500         | The resource could not be read.                                            |
| 503         | API-key/quota verification unavailable.                                    |

JSON errors may use `error` or `message`; the global handler maps validation/runtime errors to `success: false`, `error` (name) and `message` (details). See [error handling](/docs/concepts/errors).

## Related resources

- [Get a trail change](/docs/reference/history/trail-change)
- [List lift changes](/docs/reference/history/lift-changes)
- [Get a lift change](/docs/reference/history/lift-change)
- [Grouped operational changes](/docs/reference/history/grouped)

- [Data freshness](/docs/concepts/freshness)
- [OpenAPI specification](/openapi.json){external}
