---
title: 'Mountain media alias'
description: 'GET /api/v1/mountains/{id}/media — Mountain media alias.'
---

`GET /api/v1/mountains/{id}/media`

Compatibility alias for the mountain media collection; the UUID and optional role have the same semantics as the canonical media route.

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

### Path parameters

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

### Query parameters

| Parameter | Type   | Required | Default | Description                                                          |
| --------- | ------ | -------- | ------- | -------------------------------------------------------------------- |
| `role`    | string | No       | —       | Exact association role, such as logo_mountain or logo_mountain_dark. |

Returns associated media. Missing mountain/association may return an empty array rather than 404. Both media paths have identical behavior.

## Example request

::code-group

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

```js [JavaScript]
const response = await fetch(
  'https://api.icecoast.us/api/v1/mountains/00000000-0000-4000-8000-000000000001/media',
  {
    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/mountains/00000000-0000-4000-8000-000000000001/media',
    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": [
    {
      "id": "00000000-0000-4000-8000-000000000001",
      "path": "/example-logo.svg",
      "role": "logo_mountain",
      "sort_order": 0
    }
  ],
  "meta": {
    "version": "v1"
  }
}
```

### Resource fields

| Field        | Type           | Meaning                                   |
| ------------ | -------------- | ----------------------------------------- |
| `id`         | string         | Media identifier.                         |
| `path`       | string         | Asset path.                               |
| `role`       | string         | Association role.                         |
| `sort_order` | integer / null | See the data model and returned resource. |

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

- [List mountains](/docs/reference/mountains/list)
- [Search mountains](/docs/reference/mountains/search)
- [Get mountain by UUID](/docs/reference/mountains/by-id)
- [Get mountain by slug](/docs/reference/mountains/by-slug)

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