---
navigation: false
title: 'Mountain forecast'
description: 'GET /api/v1/weather/{mountainId} — Mountain forecast.'
---

`GET /api/v1/weather/{mountainId}`

Retrieve stored modeled forecasts for an available mountain point/model. This is not a live weather-station observation.

## 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.

::warning
Weather is optional and may be unavailable in your deployment. A route-level 404 does not prove that a mountain has no weather observations.
::

## Parameters

### Path parameters

| Parameter    | Type   | Required | Default | Description                 |
| ------------ | ------ | -------- | ------- | --------------------------- |
| `mountainId` | string | Yes      | —       | Mountain UUID. Format: uuid |

### Query parameters

| Parameter | Type   | Required | Default      | Description                                                            |
| --------- | ------ | -------- | ------------ | ---------------------------------------------------------------------- |
| `role`    | string | No       | `resort`     | Forecast point role. Accepted: `resort`, `base`, `mid`, `summit`       |
| `model`   | string | No       | `gfs_global` | Stored model product; availability varies. Pattern `^[a-z0-9_]{1,80}$` |

Optional resource, not enabled in every deployment; unavailable routes return 404. Stored reads never trigger collection. Successful responses: Cache-Control: public, max-age=60, stale-if-error=300. Forecast stale is true when age/data age exceeds 12 hours or a recent current forecast hour is absent. Reported weather is source evidence, separate from modeled forecasts; unknown source age or age over 24 hours is stale. History returns metadata only, with no offset pagination.

## Example request

::code-group

```bash [cURL]
curl -H "X-API-Key: $ICECOAST_API_KEY" 'https://api.icecoast.us/api/v1/weather/00000000-0000-4000-8000-000000000001'
```

```js [JavaScript]
const response = await fetch(
  'https://api.icecoast.us/api/v1/weather/00000000-0000-4000-8000-000000000001',
  {
    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/weather/00000000-0000-4000-8000-000000000001',
    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": {
    "mountain_id": "00000000-0000-4000-8000-000000000001",
    "snapshot_id": "example-snapshot",
    "product": "gfs_global",
    "point": "resort",
    "fetched_at": "2026-12-04T12:00:00Z",
    "first_fetched_at": "2026-12-04T12:00:00Z",
    "initialized_at": null,
    "age_seconds": 0,
    "data_age_seconds": 0,
    "stale": true,
    "current": null,
    "hourly": [],
    "daily": [],
    "metadata": {}
  },
  "meta": {
    "version": "v1"
  }
}
```

### Resource fields

| Field              | Type             | Meaning                                   |
| ------------------ | ---------------- | ----------------------------------------- |
| `mountain_id`      | string           | Mountain UUID.                            |
| `snapshot_id`      | string / integer | See the data model and returned resource. |
| `product`          | string           | Stored model product.                     |
| `point`            | string           | resort/base/mid/summit.                   |
| `location`         | object           | Forecast location.                        |
| `fetched_at`       | string           | Latest retrieval.                         |
| `first_fetched_at` | string           | First retrieval of this snapshot.         |
| `initialized_at`   | string / null    | Provider initialization.                  |
| `data_age_seconds` | integer          | See the data model and returned resource. |
| `age_seconds`      | integer          | See the data model and returned resource. |
| `stale`            | boolean          | See the data model and returned resource. |
| `current`          | object / null    | See the data model and returned resource. |
| `hourly`           | array            | See the data model and returned resource. |
| `daily`            | array            | See the data model and returned resource. |
| `metadata`         | object           | Provider/collection metadata.             |

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. |
| 404         | Weather is not available for this mountain point.                          |
| 429         | Monthly API allowance exhausted when a key is used.                        |
| 503         | Weather 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

- [Resort-reported weather](/docs/reference/weather/reported)
- [Forecast snapshot history](/docs/reference/weather/history)

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