---
navigation: false
title: 'Mountain export catalog'
description: 'GET /api/v1/exports/mountains — Mountain export catalog.'
---

`GET /api/v1/exports/mountains`

Discover eligible mountain snapshot archives and bulk dataset download-metadata links.

## Authentication

Access depends on the deployment mode: anonymous in public mode, a secret API key in private mode. Public keys do not authorize private exports. See [authentication](/docs/getting-started/authentication).

## Parameters

### Query parameters

| Parameter | Type   | Required | Default | Description                               |
| --------- | ------ | -------- | ------- | ----------------------------------------- |
| `scope`   | string | No       | `all`   | Export coverage. Accepted: `all`, `us-ca` |

Exports are deployment-dependent. Public mode allows anonymous reads; private mode requires a secret API key for external integrations and rejects public keys. An unconfigured service returns 503. The catalog links to download-metadata routes. Download routes return JSON with data.url, never ZIP bytes or a redirect; retrieve the archive from that URL. Private URLs expire at expires_at; do not share or log them. Public URLs have expires_at=null. Archive contents are captured snapshots, not live source reads. 409 means the eligible catalog changed and archives need refreshing; retry later. Successful metadata uses public, max-age=0, must-revalidate in public mode and private, no-store in private mode.

## Example request

::code-group

```bash [cURL]
curl -H "X-API-Key: $ICECOAST_API_KEY" 'https://api.icecoast.us/api/v1/exports/mountains?scope=all'
```

```js [JavaScript]
const response = await fetch('https://api.icecoast.us/api/v1/exports/mountains?scope=all', {
  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/exports/mountains?scope=all',
    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"`.

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": {
    "schema_version": 1,
    "captured_at": "2026-12-04T12:00:00Z",
    "generated_at": "2026-12-04T12:01:00Z",
    "scope": "all",
    "count": 0,
    "mountains": [],
    "dataset_download": "/api/v1/exports/datasets/all/download"
  },
  "meta": {
    "version": "v1"
  }
}
```

### Resource fields

| Field              | Type    | Meaning                                   |
| ------------------ | ------- | ----------------------------------------- |
| `schema_version`   | integer | See the data model and returned resource. |
| `captured_at`      | string  | Consistent source snapshot time.          |
| `generated_at`     | string  | Archive generation time.                  |
| `scope`            | string  | See the data model and returned resource. |
| `count`            | integer | See the data model and returned resource. |
| `mountains`        | array   | See the data model and returned resource. |
| `dataset_download` | string  | Relative bulk-download metadata endpoint. |

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. |
| 409         | The export catalog is being refreshed.                                     |
| 429         | Monthly API allowance exhausted when a key is used.                        |
| 503         | Dataset exports are unconfigured or temporarily 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

- [Mountain ZIP metadata](/docs/reference/exports/mountain)
- [Dataset ZIP metadata](/docs/reference/exports/dataset)

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