# Introduction The Icecoast API provides structured ski resort data through a unified JSON API. Access a global mountain catalog, trail and lift inventories, reported operational statuses, ski pass memberships, historical changes, and data verification information. Build ski applications, resort discovery tools, interactive maps, and data integrations without having to maintain individual resort data integrations. Coverage and operational reporting vary by mountain and country. ## Start integrating - Follow the [quickstart](https://icecoast.us/docs/getting-started/quickstart) to make your first server-side API request. - Learn how [authentication](https://icecoast.us/docs/getting-started/authentication) and [API keys](https://icecoast.us/docs/getting-started/api-keys) work. - Explore the endpoint references for [mountains](https://icecoast.us/docs/reference/mountains/list), [trails](https://icecoast.us/docs/reference/trails/list), [lifts](https://icecoast.us/docs/reference/lifts/list), and [passes](https://icecoast.us/docs/reference/passes/list). - Use the [developer playground](https://icecoast.us/developers/playground) to explore endpoints and inspect real API responses. ## API base URL and versioning The canonical API base URL is `https://api.icecoast.us`. Versioned data endpoints documented in this reference use the `/api/v1` prefix. Most catalog and history endpoints require an API key. Select read-only endpoints, including verification status, the current alpine overview, geographic datasets, and aggregate XML feeds, are available without authentication. This documentation covers the public developer API. Account management, billing, administration, operational diagnostics, and private application endpoints are outside its scope. Developer API keys do not grant access to these internal services. ## Data coverage and freshness Icecoast distinguishes between catalog coverage and operational reporting. A mountain may have trail and lift inventory records without an active source for current operational statuses. Reported conditions reflect the information available from supported sources and may vary in completeness and freshness. Use verification information and available timestamps to assess whether data is current. Missing values, `null`, and unknown statuses must not be interpreted as zero, closed, or unavailable. Applications should preserve the distinction between confirmed conditions and conditions that have not been reported. Learn more about the [data model](https://icecoast.us/docs/concepts/data-model), [data freshness](https://icecoast.us/docs/concepts/freshness), and [resort coverage](https://icecoast.us/docs/concepts/coverage). ## Machine-readable documentation The [OpenAPI 3.1 specification](https://icecoast.us/openapi.json){external=""} provides a machine-readable reference for documented endpoints and can be used with compatible API tools such as Scalar. Documentation is also available in formats designed for automated tools and AI-assisted development: - [llms.txt](https://icecoast.us/llms.txt){external=""} — Documentation index. - [llms-full.txt](https://icecoast.us/llms-full.txt){external=""} — Consolidated documentation. - [Introduction Markdown](https://icecoast.us/docs.md){external=""} — Markdown version of this page. Human-written integration guides complement the OpenAPI reference with practical guidance on authentication, coverage, and interpreting resort data. # Data resources ## Public XML feeds Icecoast provides XML feeds that can be accessed without an API key. Visit the [XML feeds overview](https://icecoast.us/developers/feeds) for available feeds, usage terms and update information, or browse the [mountain feed directory](https://icecoast.us/feeds/mountains.xml){external=""}. ## Geographic datasets Access available geographic features in GeoJSON format through the [geography reference](https://icecoast.us/docs/reference/geography/combined). ## Dataset exports Browse the [dataset export catalog](https://icecoast.us/docs/reference/exports/catalog) for available dataset snapshots and ZIP download metadata, where configured. ## Data sources and verification Learn about [Icecoast's data and sources](https://icecoast.us/data), visit the [data status page](https://icecoast.us/data/status), or access machine-readable verification information through the [verification status reference](https://icecoast.us/docs/reference/status/summary). ## Developer account tools - [API credentials](https://icecoast.us/developers/credentials): manage your API keys. - [API usage](https://icecoast.us/developers/usage): monitor your API consumption. Developer account tools require sign-in. Documentation and public data resources remain accessible without an account. # Quickstart ## Create credentials Sign in and open [API credentials](https://icecoast.us/developers/credentials). Create credentials and save the secret key in a server environment variable named `ICECOAST_API_KEY`. Do not put a secret key in a client bundle or public repository. The examples below use cURL and a server-side secret key. Python examples in the reference use the `requests` package. JavaScript examples use Node.js with built-in `fetch`. ## Find a mountain ```bash curl -H "X-API-Key: $ICECOAST_API_KEY" \ 'https://api.icecoast.us/api/v1/mountains/search?q=Killington&limit=5' ``` Check the HTTP status, then inspect the `data` array. Copy a returned `slug` or mountain UUID; do not derive IDs from resort names. ## Retrieve details ```bash curl -H "X-API-Key: $ICECOAST_API_KEY" \ 'https://api.icecoast.us/api/v1/mountains/slug/killington?includeTrails=true&includeLifts=true' ``` A successful detail response has `success: true`, a mountain in `data`, optional included relations, `cached` and `meta.version`. A missing mountain returns 404. Actual fields and reporting availability vary by resort. ## Inspect status and freshness ```bash curl 'https://api.icecoast.us/api/v1/status/mountains/killington' ``` This anonymous endpoint describes data verification. A healthy source does not mean the resort is open. Keep trail/lift unknowns separate from closed and show the available verification timestamp. ## Continue Use the [playground](https://icecoast.us/developers/playground) for interactive requests. Read [response structure](https://icecoast.us/docs/concepts/responses), [pagination](https://icecoast.us/docs/concepts/pagination) and the [conditions dashboard guide](https://icecoast.us/docs/guides/dashboard) before displaying operational counts. # Authentication ## Supply an API key Most catalog and recorded-change endpoints require a valid key. Supply one of these headers: ```http X-API-Key: YOUR_API_KEY ``` ```http Authorization: Bearer YOUR_API_KEY ``` Bearer API keys must have an `icecoast_` prefix. If both an Icecoast bearer key and `X-API-Key` are supplied, the bearer key takes precedence. Invalid supplied keys do not fall through to another authentication method. Never place keys in query parameters. ## Secret keys Secret keys start with `icecoast_sk_` and are intended for servers. When an IP allowlist is configured, the request IP must match a listed value. Keep secrets out of browsers, screenshots, logs and source control. ## Public keys Public keys start with `icecoast_pk_`. Every request must match a configured allowed origin. The API checks the `Origin` header, falling back to `Referer` when `Origin` is absent. Missing origins, `Origin: null` and mismatched origins return 403. Configure a full origin such as `https://example.com`. Matching respects scheme, host and port for explicit origins. Wildcards and substring matches are not supported. Existing bare-host entries match the same host/port over HTTP or HTTPS. Origin restrictions are browser integration controls; they do not make the key a server secret. ```js // Browser example: this public key must allow the page's origin. const response = await fetch('https://api.icecoast.us/api/v1/mountains?limit=5', { headers: { 'X-API-Key': 'YOUR_PUBLIC_API_KEY' }, }); if (!response.ok) throw new Error(`HTTP ${response.status}`); const body = await response.json(); ``` ## Anonymous resources The reference explicitly marks endpoints that need no API key: [verification status](https://icecoast.us/docs/reference/status/summary), [overview](https://icecoast.us/docs/reference/reports/overview), [geographic reads](https://icecoast.us/docs/reference/geography/combined) and [XML feeds](https://icecoast.us/docs/reference/feeds/directory). Anonymous does not mean unlimited: verification status has its own per-IP limit. Signed-in sessions are used by Icecoast's application and panel. Use API keys for third-party integrations. Keys do not authorize administrative writes. ## Dataset export access [Exports](https://icecoast.us/docs/reference/exports/catalog) have a deployment-specific mode: public mode permits anonymous reads; private mode requires a secret API key for external clients and rejects public keys. A supplied API key is still authenticated and metered even on a public-mode export request. Export access mode and service availability should be checked before depending on this resource. ## Failures Missing/invalid/expired/revoked credentials return 401. Origin or IP denial returns 403. Verification outages can return 503. See [errors](https://icecoast.us/docs/concepts/errors) and [usage limits](https://icecoast.us/docs/concepts/usage). # Managing API keys ## Create and save credentials Open [API credentials](https://icecoast.us/developers/credentials) after signing in. Credential creation produces a public and secret key pair. Save the raw keys when shown; subsequent listings contain masked key metadata rather than the raw secret. If you lose a key, generate replacement credentials. Configure allowed origins for the public key and, if needed, allowed IPs for the secret key. Optional expiry disables a key after its expiry time. Expiry is distinct from revocation. ## Choose the right key | Integration | Credential | Restriction | | -------------------------------- | ---------------------------------------- | -------------------------------- | | Server, scheduled job or backend | Secret key | Optional exact IP allowlist | | Browser application | Public key | Required matching allowed origin | | Anonymous feed/status consumer | No key on explicitly anonymous endpoints | Endpoint-specific controls | Never use the secret key in a Nuxt `runtimeConfig.public` value or browser code. See [authentication](https://icecoast.us/docs/getting-started/authentication) for exact matching rules. ## Rotate and revoke Create replacement credentials, deploy the replacement to your integration, verify requests, then revoke the old key in the panel. Revoked keys fail authentication. Update origin/IP restrictions when your application host or outbound IP changes. Review [usage](https://icecoast.us/developers/usage) and [subscription](https://icecoast.us/developers/subscription) for the current allowance. Multiple keys belonging to one account share its monthly allowance; key creation does not create an independent quota. The reference covers data consumption. Account credential-management endpoints are application APIs and are not part of the public data API contract. # Versioning Use `https://api.icecoast.us/api/v1` as the base for the endpoints in this reference. JSON response metadata normally includes `meta.version: "v1"`, added by a global response hook. XML feeds have their own `version="1"` root attribute. All documented data operations are GET requests. Fastify also registers HEAD for GET routes by default, but not every anonymous-auth exception treats HEAD identically: use GET for integrations unless an endpoint explicitly documents conditional HEAD behavior. Writes and private panel routes are outside this public reference. The [OpenAPI document](https://icecoast.us/openapi.json){external=""} is a public-only OpenAPI 3.1 specification for future Scalar integration. Optional weather operations are marked with availability metadata. The specification does not grant access or guarantee deployment of optional capabilities. Allow additional response fields in your client and tolerate missing optional fields. Some older nested links use unversioned paths; use the exact paths in this reference rather than blindly following legacy links. See [response structure](https://icecoast.us/docs/concepts/responses). # Overview semantics The [current overview](https://icecoast.us/docs/reference/reports/overview) is an anonymous aggregate endpoint. Its reporting scope is US/Canada alpine resorts with recorded downhill classification. It should not be used as a global-resort operational total. | Section | Meaning | | ------------------------------ | ------------------------------------------------------------------------------------------------------------------------------- | | `data.summary.mountains` | Selected catalog total, alpine_classified, unclassified, reporting, open, closed and unknown counts | | `data.summary.trails`, `lifts` | Qualified reporting-roster total/open/closed/unknown and availability_percent | | `data.tracked` | Selected catalog mountain and active terrain-roster counts, including terrain not currently usable for reporting | | `data.totals` | Global catalog mountain/trail/lift counts, unaffected by overview country/state filters | | `data.difficulty` | Beginner/intermediate/advanced/expert/terrain-park/unknown groups, their rating labels and total/open/availability_percent | | `data.rankings` | open_trails, trail_availability, open_lifts, beginner_terrain and expert_terrain rankings | | `data.geography` | Per-country/state summaries with the same count groups | | `data.recent_updates` | Up to ten qualifying resorts sorted by verification time, with identity, location, updated_at, fresh_until and operating_status | | `meta.generated_at` | Snapshot generation time | | `meta.cache_expires_at` | Cache deadline; may be shortened by source freshness | | `meta.scope` | Countries, state, activity and classification scope | | `meta.policy` | Age, ranking, reporting, mountain-open/closed and denominator policies | ## Qualification and percentages Only accepted healthy snapshots within schedule/age limits and complete known active rosters contribute operational terrain totals. Unsupported lift reporting is handled separately from a known zero-open lift report. An overview mountain is open when it has a usable trail roster with at least one open trail and, when lift reporting is supported, a usable roster with at least one open lift. It is closed only with a complete usable trail roster and zero open trails. Other cases remain unknown. This is a derived overview classification, not a resort-wide declaration supplied by every source. Availability percentages are rounded to two decimal places and null when the denominator is zero. Do not replace a null percentage with 0%. Reporting totals can be smaller than tracked/catalog totals; unavailable resorts must not be added as closed. ## Rankings Each ranking is capped by `rank_limit` (default 5, maximum 20). Trail-availability ranking additionally requires `min_trails` (default 20). Ranking rows contain rank, mountain identity/location, trail counts, optional lift counts and value. Ties use further deterministic comparisons. Beginner terrain uses green; expert terrain uses double/triple black. See [difficulty semantics](https://icecoast.us/docs/concepts/data-model). The older [top-open summary](https://icecoast.us/docs/reference/reports/top-open) and [pass summary](https://icecoast.us/docs/reference/passes/summary) use different stored-record definitions and do not apply these freshness checks. Their values need not match. # Weather measurements Weather routes are optional. A deployment can lack the entire resource, and enabled routes can have no point/model data for a given mountain. The reference documents implemented behavior, not a promise of availability or subscription entitlement. ## Forecasts The [forecast](https://icecoast.us/docs/reference/weather/forecast) returns stored `current`, `hourly`, `daily` and metadata. `current.type` is `hourly_forecast`; it is not a live station observation. It is null if there is no recent suitable forecast hour. | Hourly fields | Units/meaning | | ------------------------------------------------------- | ---------------------------------------------------------------- | | `valid_at`, `interval_start`, `interval_end` | Forecast validity/interval timestamps | | `temperature_c`, `feels_like_c` | Celsius | | `humidity_percent`, `precipitation_probability_percent` | Percent | | `precipitation_mm`, `snowfall_mm` | Millimetres for the returned interval | | `wind_speed_ms`, `wind_gust_ms` | Metres per second | | `wind_direction_degrees` | Degrees | | `weather_code` | Stored provider code; no universal code mapping is promised here | Daily rows contain `local_date`, `period_start`, `period_end`, `temperature_max_c`, `temperature_min_c`, `precipitation_mm` and `snowfall_mm`. Preserve returned periods; do not sum overlapping intervals or treat local dates as UTC midnight. `age_seconds` measures latest collection age; `data_age_seconds` measures the first retrieval of that snapshot. Provider initialization, when available, is separate. A snapshot is stale if either age exceeds 12 hours or a recent current forecast hour is absent. ## Resort-reported measurements [Reported weather](https://icecoast.us/docs/reference/weather/reported) returns latest receipts for each source, with `receipt_id`, `report_id`, `source_key`, `source_provider`, `source_reported_at`, `received_at`, provenance, `source_age_seconds`, `stale` and `values`. No preferred source is silently chosen to hide conflicting reports. Measurement rows include variable, point_role, value/value_min/value_max, unit, reported_window, period_start/end, quality, method and raw_value. Respect the returned unit/window rather than assuming inches, centimetres, 24-hour snowfall or a summit observation. Missing source time means unknown age and stale reporting; age over 24 hours is also stale. [Forecast history](https://icecoast.us/docs/reference/weather/history) returns snapshot metadata, not the historical hourly/daily measurements themselves. # Pagination Catalog list endpoints use `limit` and `offset`. A successful collection response normally includes: | Field | Meaning | | ----------------- | ----------------------------------------- | | `data` | Returned records | | `meta.total` | Number of matching records | | `meta.limit` | Requested/effective page size | | `meta.offset` | Number of records skipped | | `meta.count` | Returned count when supplied | | `meta.hasMore` | Whether more records exist, when supplied | | `meta.links.next` | Relative next-page URL or null | | `meta.links.prev` | Relative previous-page URL or null | | `meta.version` | API version | Default page sizes are 20 for mountains/passes, 50 for trails/lifts, 100 for recorded changes and 25 for the status directory. Status validates a maximum limit of 100 and offset of 10000. Catalog/history routes do not all enforce equivalent bounds; always send positive limits and nonnegative offsets. Search caps results at 50 and has no offset pagination. ```js // Server-side Node.js; retains filters while following relative next links. let next = '/api/v1/mountains?countryCode=US&published=true&limit=50'; while (next) { const response = await fetch(new URL(next, 'https://api.icecoast.us'), { headers: { 'X-API-Key': process.env.ICECOAST_API_KEY }, }); if (!response.ok) throw new Error(`HTTP ${response.status}`); const body = await response.json(); for (const mountain of body.data) console.log(mountain.id, mountain.name); next = body.meta?.links?.next; } ``` The catalog can change between pages; this is not a snapshot/cursor API. Deduplicate by ID if collecting multiple pages. Pass mountain expansion is unpaginated. Weather history has a limit but no offset. For [grouped changes](https://icecoast.us/docs/reference/history/grouped), pagination applies to flat changes before grouping. Metadata counts flat records; a group may span pages. # Filtering and inclusions ## 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](https://icecoast.us/docs/reference/trails/list) or [lift collection](https://icecoast.us/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. # Response structure Most JSON endpoints return an object with `success: true`, `data` and `meta.version`. Collection `data` is an array; detail `data` is an object. Paginated lists add [pagination metadata](https://icecoast.us/docs/concepts/pagination). Pass mountain reads also return a top-level `pass` object. Mountain/trail/lift catalog reads and cached pass reads may return `cached`. This describes Icecoast's shared response-payload cache, not the freshness of resort conditions. Search/media and legacy summaries do not use the same envelope fields. Do not require `cached` everywhere. Geographic endpoints return a GeoJSON `FeatureCollection` directly, with no `success` or `data` wrapper. Global metadata may add a `meta` member. XML feeds return UTF-8 XML, not JSON. Always check HTTP status and content type before decoding. Reference examples are explicitly synthetic excerpts. Optional fields are omitted and counts do not describe live conditions. Record projections differ: standard mountain detail, pass-expanded mountains, standalone terrain and included terrain do not promise identical fields. ## Links Standard standalone mountain/trail/lift links generally point to versioned API paths. Older included trail/lift links can use `/api/...` without `/v1`; mountain `links.website` can use the legacy singular `/mountain/` path. Do not treat these legacy link forms as new public endpoints. Construct API requests from the documented `/api/v1` routes; public resort pages use `/mountains/{slug}`. ## Tolerant clients Treat IDs as opaque. Keep null and missing values distinct from false/zero, ignore additional fields you do not use, and do not assume every mountain reports the same relations. See [data model](https://icecoast.us/docs/concepts/data-model) and [errors](https://icecoast.us/docs/concepts/errors). # Error handling Check HTTP status before using response data. Error shapes differ between authentication, controllers and request validation. ```json { "success": false, "message": "Invalid or expired API key" } ``` ```json { "success": false, "error": "Mountain not found" } ``` These are representative verified messages, not a single universal schema. The API's global error handler maps validation/runtime errors to `success: false`, `error` (the error name) and `message` (details). Do not require Fastify's default `statusCode` or `code` fields in the body. Global version metadata can be appended. Code against HTTP status; do not parse English error text to determine program behavior. | HTTP status | Typical meaning | Client action | | ----------- | --------------------------------------------------------- | --------------------------------------------- | | 400 | Invalid/missing validated query or path values | Correct the request | | 401 | Missing, invalid, expired or revoked credentials | Check key/header and credential status | | 403 | Origin/IP restriction or authorization failure | Correct restrictions; do not keep retrying | | 404 | Missing resource or unavailable optional route | Check path/identifier and availability | | 429 | Monthly account quota or status endpoint per-IP allowance | Inspect response and Retry-After when present | | 500 | Resource read failed | Bounded retry; report persistent errors | | 503 | Verification, quota or data service unavailable | Bounded backoff with jitter | Not every endpoint emits every status. Empty filtered lists and missing media associations usually return 200 with an empty array. Missing individual resources return 404 where documented. The monthly quota 429 does not supply a Retry-After header. Repeated retries will not restore the allowance; check the panel or wait for the next UTC calendar month. The anonymous status routes do supply Retry-After for per-IP throttling. XML feed failures use XML `` bodies. A conditional 304 has no body. Avoid exposing keys or complete authenticated request headers in application error logs. # Rate limits and usage ## API-key requests Normal API-key traffic reserves one request against the key owner's monthly allowance before the handler executes. Keys on the same account share usage. An admitted request may consume allowance even if the handler later fails. Cache hits are not a quota exemption. Allowances come from the current account's subscription/catalog configuration. There is no universal fixed request count or per-resource paid tier encoded in this reference. Review [usage](https://icecoast.us/developers/usage) and [subscription](https://icecoast.us/developers/subscription) for your current entitlement. | Header | Meaning | | ----------------------- | ------------------------------------ | | `X-RateLimit-Limit` | Current monthly request allowance | | `X-RateLimit-Remaining` | Requests remaining after reservation | An exhausted allowance returns 429 with an error describing the monthly quota. The usage period resets with the next UTC calendar month. Quota verification failures return 503 rather than silently granting access. First-party keys can have a server-assigned exemption; external callers cannot request it. ## Anonymous verification status The `/status` endpoints share a per-IP limit of 60 requests per 60 seconds per running API process. Exceeding it returns 429 and Retry-After in seconds. This is separate from monthly developer usage. ## Efficient clients Cache successful responses for your use case, request only needed relations, page intentionally and use bounded retry with jitter for transient failures. Honor Cache-Control on endpoints that supply it. Do not assume that a new request triggers fresh source collection. See [caching](https://icecoast.us/docs/guides/caching). # Data model and statuses ## Identity and relationships Mountain `id` is a UUID; `slug` is a human-readable lookup key. Use UUIDs for your stored relationships and use slugs for discovery and URLs. Trail/lift identifiers are separate canonical IDs, often numeric; treat returned values as opaque rather than assuming UUID format. Their `mountain` field refers to the parent mountain UUID. Mountains have trails, lifts and pass memberships. `includePasses` returns membership rows enriched with pass identity fields. Pass detail adds tiers and, by default, expands mountain memberships and their terrain. That default can create a large response; use `includeMountains=false` for a compact pass detail. ## Geography Standard mountain reads return `state` as an alias of the stored state/province name. `country`, `city` and `region` describe recorded geography; a region is not a universal administrative level. Request recorded country/state code columns through list field selection where needed, or use the code filters to constrain discovery. Mountain `latitude` and `longitude` are decimal degrees. Database numeric fields may serialize as strings; validate and convert before plotting. GeoJSON coordinates use `[longitude, latitude]`. Do not reverse them. Mountain `elevation`/`vertical` do not carry a universal unit declaration in the current standard projection; do not publish a conversion based on an assumed unit. ## Trail operational flags | Value | Interpretation | | -------------------------- | -------------------------------------------- | | `open: true` | Reported open | | `open: false` | Reported not open; not an explanation of why | | `open: null` or missing | Unknown/unavailable; never confirmed closed | | `groomed: true` | Reported groomed | | `groomed: false` | Reported not groomed | | `groomed: null` or missing | Grooming unknown | `glade`, `night_skiing`, `zone` and `area` describe available source classifications/groupings. A false open flag does not establish whole-resort closure. ## Trail difficulty `rating` is the stored difficulty label. The overview currently groups `green` as beginner; `blue` and `double blue` as intermediate; `black` as advanced; `double black` and `triple black` as expert; and `terrain park` separately. Other labels contribute to unclassified difficulty. These are aggregation rules, not a promise that all international sources use the same difficulty system. Unknown difficulty should stay unclassified. The list filter matches rating substrings, so `rating=black` may include double/triple black; it is not an exact difficulty-tier selector. ## Lift status Prefer `operating_status` when supplied: | Status | Meaning | | ----------- | ------------------------------------------ | | `open` | Operating/open | | `closed` | Reported closed | | `delayed` | Delayed operation | | `on_hold` | Operation on hold | | `scheduled` | Scheduled rather than confirmed operating | | `unknown` | No confidently classified operating status | The legacy `open` boolean is still returned. A delayed/on-hold/scheduled lift can have `open: false`; showing every false value as “Closed” discards its more specific status. Null flags and unknown statuses must remain unknown. Lift `type` is a stored source label and not a fixed public enum. Opening/closing times, where present, need the mountain timezone. ## Missing data and reporting `no_trails_reported` and `no_lifts_reported` are reporting availability flags, not operational status. Catalog records, optional fields, empty arrays and active inventory counts do not guarantee a current source report. Some reads retain previous verified records when a newer report fails quality checks. Use explicit timestamp offsets when available. Do not add a timezone to an unzoned source string by guessing. Resort `timezone` is useful for schedules, but `updated_at` normally describes a record update rather than the time a resort measured its conditions. Read [freshness](https://icecoast.us/docs/concepts/freshness) before calculating operational percentages and [overview semantics](https://icecoast.us/docs/concepts/overview) before comparing aggregate endpoints. # Data freshness Icecoast does not promise that every mountain or field updates in real time. Sources have different reporting schedules, seasonal availability and supported sections. An HTTP request reads stored data; it does not instruct a resort or collector to refresh. ## Different timestamps answer different questions | Timestamp/field | What it establishes | | --------------------------------------------------- | ------------------------------------------------------ | | Mountain `updated_at` | Catalog record update; not a terrain observation | | Terrain `last_observed_at`, when present | Last recorded entity observation | | Status `last_attempt_at` | Attempted acquisition; not necessarily accepted | | Status `last_verified_at` | Accepted publication time | | Status `freshness.age_seconds` | Age since accepted publication | | Status `freshness.expected_interval_seconds` | Expected acquisition interval, not a service guarantee | | Response `meta.generated_at`, where present | Aggregate/status snapshot generation | | XML `observed_at`, `accepted_at`, `timestamp_basis` | Observation/publication and the available timing basis | ## Verification status The [status detail](https://icecoast.us/docs/reference/status/detail) distinguishes healthy, degraded, failed, stale, disabled, off_season and untested sources. These describe the data pipeline, not resort operations. The public status freshness calculation flags acceptance age over twice the expected interval as stale; failed/degraded/disabled states provide additional context. `retaining_verified_conditions` indicates that accepted data may be retained after a later failed/rejected update. Show that context rather than silently presenting old flags as current. A fresh accepted time does not always establish a current source measurement; inspect source timing and the endpoint's policy. ### Verification response details `reliability` contains completed_observations, successful_executions, failed_executions, accepted_publications, rejected_publications, execution_sample_size, publication_sample_size, execution_success_percent and publication_acceptance_percent. The execution and publication rates have different denominators; each rate remains null until its sample size reaches five. The reporting window is seven days. `detection.trails` and `detection.lifts` are null when detection data is unavailable; otherwise they contain detected, expected, completeness_percent and change_from_expected. Expected/completeness/change may be null when the expected inventory is unknown. `detection.quality_score` is an optional 0–100 assessment, not an operational percentage. Directory `tracker` rows contain day, observations, accepted, failed and status (`unknown`, `healthy`, `degraded` or `failed`) for 90 UTC days. A day with no observations is unknown. Detail `recent_executions` includes mountain identity, attempted_at, completed_at, outcome (`accepted`, `failed` or `rejected`), execution_succeeded, publication_accepted, retaining_verified_conditions, detection and explanations. Detail publication `history` contains at, outcome (`accepted`, `failed` or `needs_review`) and explanations. Neither is a raw-log or complete historical-state endpoint. ## Aggregate policy The [overview](https://icecoast.us/docs/reference/reports/overview) uses a stricter policy: accepted, healthy reporting within schedule/age limits and complete known active rosters. The default maximum age is 24 hours, but expected schedules can make a snapshot unusable sooner. It reports the current policy in `meta.policy`. Its freshness definition differs from the public status page and XML feed; do not interchange them. ## Cached responses `cached: true` means a shared payload was reused, not that the source is stale. Conversely, `cached: false` does not establish freshness. Follow endpoint Cache-Control where supplied and inspect data timestamps separately. See [efficient caching](https://icecoast.us/docs/guides/caching). # Coverage and limitations ## Catalog coverage The mountain catalog supports country name/code, state/province, continent and region filters. Coverage changes as records and sources are added. This documentation deliberately does not publish an unverified fixed country or resort count. ```text /api/v1/mountains?countryCode=JP&published=true&limit=25 ``` Paginate the catalog to discover current entries. Search returns published mountains and can add place suggestions with `include=places`. There is no `/countries` or `/states` data endpoint registered in the audited public catalog; do not infer one from frontend route names or examples elsewhere. ## Reporting coverage Being listed does not mean operational integration is available. Use availability flags, returned terrain, timestamps and [verification status](https://icecoast.us/docs/reference/status/mountains) together. A missing status entry is not proof that a resort is closed. Empty list responses can also reflect filters or a lack of supported data. The current overview is deliberately limited to US/Canada alpine reporting. Geographic datasets have their own coverage and cannot be assumed to include every catalog mountain. Weather is optional and may be unavailable by deployment, mountain, role or model. ## Operational limitations Sources differ in update frequency, difficulty systems, lift-type labels and reporting scope. Unknown flags must not be filled with false. Catalog counts and legacy summaries may include different inventories than freshness-qualified overview counts. Stored history is a record of changes, not a guaranteed complete historical archive. Resort-provided conditions can change after publication. Display data age and source verification context. For access rights and redistribution, review the [terms](https://icecoast.us/terms-and-conditions); the documentation does not grant additional licensing rights. # List mountains `GET /api/v1/mountains` Browse the mountain catalog with geographic, membership and availability filters. Use this paginated collection for resort directories and identifier discovery. ## Authentication An API key is required for external integrations. Send `X-API-Key: YOUR_API_KEY` or `Authorization: Bearer YOUR_API_KEY`. [Authentication](https://icecoast.us/docs/getting-started/authentication) explains public origin and secret IP restrictions. ## Parameters ### Query parameters | Parameter | Type | Required | Default | Description | | ------------------------ | ---------------- | -------- | ------- | ----------------------------------------------------------------------------------------------- | | `q` | string | No | — | Search term for name, location, city, state, or region | | `state` | string | No | — | Filter by state/province name or code (e.g., Vermont, VT, Ontario, ON) | | `state_or_province` | string | No | — | Alias for state filter; supports full name or code | | `province` | string | No | — | Alias for state filter; supports full name or code | | `stateCode` | string | No | — | Filter by state/province code (e.g., VT, ON) | | `state_code` | string | No | — | Alias for stateCode | | `state_or_province_code` | string | No | — | Alias for stateCode | | `country` | string | No | — | Filter by country name or code (e.g., United States, US, Canada, CA) | | `countryCode` | string | No | — | Filter by country code (e.g., US, CA) | | `country_code` | string | No | — | Alias for countryCode | | `continent` | string | No | — | Filter by continent name (e.g., North America, Europe) | | `region` | string | No | — | Filter by region | | `pass` | string | No | — | Filter by text matching a pass name | | `pass_slug` | string | No | — | Filter strictly by pass slug | | `status` | string | No | — | Filter by operational status | | `access` | string | No | — | Filter by access type (e.g., IKON, EPIC) | | `night` | boolean | No | — | Show mountains with night skiing | | `t_parks` | boolean | No | — | Show mountains with terrain parks | | `published` | boolean | No | — | Show only published mountains | | `sortBy` | string | No | `name` | Field to sort by (e.g., name, elevation) | | `sortDirection` | string | No | `asc` | Accepted: `asc`, `desc` | | `limit` | integer | No | `20` | Pagination limit | | `offset` | integer | No | `0` | Pagination offset | | `includeTrails` | boolean / string | No | `false` | Include trails data. Can be true, false, or a comma-separated filter list (e.g., "open,green") | | `includeLifts` | boolean / string | No | `false` | Include lifts data. Can be true, false, or a comma-separated filter list (e.g., "open,gondola") | | `includePasses` | boolean | No | `false` | Include passes data in response | | `skipCache` | boolean | No | `false` | Bypass Redis cache | | `ids` | string | No | — | Comma-separated list of UUIDs to fetch | | `fields` | string | No | — | Comma-separated specific fields to fetch | Filters combine. Use countryCode and stateCode to avoid ambiguous names. This list does not default to published=true: specify it for public directories. region is exact; pass is a text match; pass_slug uses membership. ids is comma-separated. sortBy is a database column, not a validated enum: use name, created_at, updated_at, elevation or vertical. Invalid columns may return 500. fields selects recorded columns; id and slug remain. List/search add active total_trails_count and open_trails_count; detail does not guarantee those counts. ## Example request ::code-group ```bash [cURL] curl -H "X-API-Key: $ICECOAST_API_KEY" 'https://api.icecoast.us/api/v1/mountains?countryCode=US&published=true&limit=2' ``` ```js [JavaScript] const response = await fetch( 'https://api.icecoast.us/api/v1/mountains?countryCode=US&published=true&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/mountains?countryCode=US&published=true&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"`. `cached` reports a shared payload-cache hit, not the age of resort conditions. See [pagination](https://icecoast.us/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": "00000000-0000-4000-8000-000000000001", "name": "Example Mountain", "slug": "example-mountain", "country": "United States", "state": "Vermont", "latitude": 44, "longitude": -72, "timezone": "America/New_York", "no_trails_reported": false, "no_lifts_reported": false, "brand_palette_dark": [], "brand_palette_dark_updated_at": null, "brand_palette": [], "brand_palette_updated_at": null, "links": { "website": "https://icecoast.us/mountain/example-mountain", "self": { "id": "/api/v1/mountains/id/00000000-0000-4000-8000-000000000001", "slug": "/api/v1/mountains/slug/example-mountain" }, "mountain_trails": { "id": "/api/v1/trails?mountain=00000000-0000-4000-8000-000000000001", "slug": "/api/v1/trails?mountain=example-mountain" }, "mountain_lifts": { "id": "/api/v1/lifts?mountain=00000000-0000-4000-8000-000000000001", "slug": "/api/v1/lifts?mountain=example-mountain" } } } ], "meta": { "version": "v1", "total": 1, "limit": 20, "offset": 0, "count": 1, "hasMore": false, "links": { "next": null, "prev": null } }, "cached": false } ``` ### Resource fields | Field | Type | Meaning | | ------------------------------- | ---------------------- | ------------------------------------------------------------------- | | `id` | string | Mountain UUID. | | `name` | string | Mountain name. | | `slug` | string | URL-friendly lookup identifier. | | `state` | string / null | State/province name. | | `country` | string / null | Country name. | | `city` | string / null | City/locality. | | `region` | any | Stored region classification. | | `latitude` | number / string / null | Latitude in degrees; numeric database values can be strings. | | `longitude` | number / string / null | Longitude in degrees. | | `website` | string / null | Official resort website. | | `elevation` | any | Stored elevation; no unit is guaranteed by this endpoint. | | `vertical` | any | Stored vertical; no unit is guaranteed by this endpoint. | | `timezone` | string / null | Resort timezone when recorded. | | `published` | boolean | See the data model and returned resource. | | `no_trails_reported` | boolean / null | Reporting unavailable flag, not a closed status. | | `no_lifts_reported` | boolean / null | Reporting unavailable flag, not a closed status. | | `created_at` | string / null | Metadata creation time. | | `updated_at` | string / null | Metadata update time, not a conditions timestamp. | | `media` | array | See the data model and returned resource. | | `brand_palette` | array | See the data model and returned resource. | | `brand_palette_dark` | array | See the data model and returned resource. | | `brand_palette_updated_at` | string / null | Palette timestamp. | | `brand_palette_dark_updated_at` | string / null | Dark palette timestamp. | | `brand_palette_override` | any | See the data model and returned resource. | | `brand_palette_source` | string | automatic or manual. | | `total_trails_count` | integer / string | Active trail count, added to list/search; not guaranteed on detail. | | `open_trails_count` | integer / string | Active trails with open=true on list/search. | | `trails` | array | See the data model and returned resource. | | `lifts` | array | See the data model and returned resource. | | `passes` | array | See the data model and returned resource. | | `links` | object | Resource URLs. See link compatibility note in response concepts. | Record fields may be missing or null. Treat identifiers as opaque and distinguish unavailable values from confirmed false/zero. See [data semantics](https://icecoast.us/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](https://icecoast.us/docs/concepts/errors). ## Related resources - [Search mountains](https://icecoast.us/docs/reference/mountains/search) - [Get mountain by UUID](https://icecoast.us/docs/reference/mountains/by-id) - [Get mountain by slug](https://icecoast.us/docs/reference/mountains/by-slug) - [Mountain media](https://icecoast.us/docs/reference/mountains/media) - [Data freshness](https://icecoast.us/docs/concepts/freshness) - [OpenAPI specification](https://icecoast.us/openapi.json){external=""} # Search mountains `GET /api/v1/mountains/search` Find published mountains by user-entered text. Use geographic filters to disambiguate resorts with similar names and optionally retrieve place suggestions. ## Authentication An API key is required for external integrations. Send `X-API-Key: YOUR_API_KEY` or `Authorization: Bearer YOUR_API_KEY`. [Authentication](https://icecoast.us/docs/getting-started/authentication) explains public origin and secret IP restrictions. ## Parameters ### Query parameters | Parameter | Type | Required | Default | Description | | ----------- | ------- | -------- | ------- | ----------------------------------------------------------------------------------------------- | | `q` | string | Yes | — | Query text to search for Max length 200 | | `country` | string | No | — | Max length 100 | | `state` | string | No | — | Max length 100 | | `stateCode` | string | No | — | Max length 10 | | `region` | string | No | — | Max length 100 | | `include` | string | No | — | Also return state/province and country suggestions and mountain facet counts Accepted: `places` | | `limit` | integer | No | `20` | Min 1; Max 50 | Search returns published mountains only. q is required (maximum 200 characters); empty q returns an empty data array. include=places adds place discovery fields, including for blank q. Search is not offset-paginated; results are capped at 50. ## Example request ::code-group ```bash [cURL] curl -H "X-API-Key: $ICECOAST_API_KEY" 'https://api.icecoast.us/api/v1/mountains/search?q=Killington&limit=5' ``` ```js [JavaScript] const response = await fetch( 'https://api.icecoast.us/api/v1/mountains/search?q=Killington&limit=5', { 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/search?q=Killington&limit=5', 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", "name": "Example Mountain", "slug": "example-mountain", "country": "United States", "state": "Vermont", "latitude": 44, "longitude": -72, "timezone": "America/New_York", "no_trails_reported": false, "no_lifts_reported": false, "brand_palette_dark": [], "brand_palette_dark_updated_at": null, "brand_palette": [], "brand_palette_updated_at": null, "links": { "website": "https://icecoast.us/mountain/example-mountain", "self": { "id": "/api/v1/mountains/id/00000000-0000-4000-8000-000000000001", "slug": "/api/v1/mountains/slug/example-mountain" }, "mountain_trails": { "id": "/api/v1/trails?mountain=00000000-0000-4000-8000-000000000001", "slug": "/api/v1/trails?mountain=example-mountain" }, "mountain_lifts": { "id": "/api/v1/lifts?mountain=00000000-0000-4000-8000-000000000001", "slug": "/api/v1/lifts?mountain=example-mountain" } } } ], "meta": { "version": "v1" } } ``` ### Resource fields | Field | Type | Meaning | | ------------------------------- | ---------------------- | ------------------------------------------------------------------- | | `id` | string | Mountain UUID. | | `name` | string | Mountain name. | | `slug` | string | URL-friendly lookup identifier. | | `state` | string / null | State/province name. | | `country` | string / null | Country name. | | `city` | string / null | City/locality. | | `region` | any | Stored region classification. | | `latitude` | number / string / null | Latitude in degrees; numeric database values can be strings. | | `longitude` | number / string / null | Longitude in degrees. | | `website` | string / null | Official resort website. | | `elevation` | any | Stored elevation; no unit is guaranteed by this endpoint. | | `vertical` | any | Stored vertical; no unit is guaranteed by this endpoint. | | `timezone` | string / null | Resort timezone when recorded. | | `published` | boolean | See the data model and returned resource. | | `no_trails_reported` | boolean / null | Reporting unavailable flag, not a closed status. | | `no_lifts_reported` | boolean / null | Reporting unavailable flag, not a closed status. | | `created_at` | string / null | Metadata creation time. | | `updated_at` | string / null | Metadata update time, not a conditions timestamp. | | `media` | array | See the data model and returned resource. | | `brand_palette` | array | See the data model and returned resource. | | `brand_palette_dark` | array | See the data model and returned resource. | | `brand_palette_updated_at` | string / null | Palette timestamp. | | `brand_palette_dark_updated_at` | string / null | Dark palette timestamp. | | `brand_palette_override` | any | See the data model and returned resource. | | `brand_palette_source` | string | automatic or manual. | | `total_trails_count` | integer / string | Active trail count, added to list/search; not guaranteed on detail. | | `open_trails_count` | integer / string | Active trails with open=true on list/search. | | `trails` | array | See the data model and returned resource. | | `lifts` | array | See the data model and returned resource. | | `passes` | array | See the data model and returned resource. | | `links` | object | Resource URLs. See link compatibility note in response concepts. | Record fields may be missing or null. Treat identifiers as opaque and distinguish unavailable values from confirmed false/zero. See [data semantics](https://icecoast.us/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](https://icecoast.us/docs/concepts/errors). ## Related resources - [List mountains](https://icecoast.us/docs/reference/mountains/list) - [Get mountain by UUID](https://icecoast.us/docs/reference/mountains/by-id) - [Get mountain by slug](https://icecoast.us/docs/reference/mountains/by-slug) - [Mountain media](https://icecoast.us/docs/reference/mountains/media) - [Data freshness](https://icecoast.us/docs/concepts/freshness) - [OpenAPI specification](https://icecoast.us/openapi.json){external=""} # Get mountain by UUID `GET /api/v1/mountains/id/{id}` Retrieve one mountain using its stable UUID, with optional trails, lifts and pass memberships. Use this lookup for saved application relationships. ## Authentication An API key is required for external integrations. Send `X-API-Key: YOUR_API_KEY` or `Authorization: Bearer YOUR_API_KEY`. [Authentication](https://icecoast.us/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 | | --------------- | ---------------- | -------- | ------- | ----------- | | `includeTrails` | boolean / string | No | `false` | | | `includeLifts` | boolean / string | No | `false` | | | `includePasses` | boolean | No | `false` | | | `skipCache` | boolean | No | `false` | | Request only needed relations. includeTrails/includeLifts accept booleans or filter tokens; see the inclusion guide. includePasses adds membership records, not full pass detail. Empty relations do not establish that a mountain has no real-world terrain. This endpoint does not derive whole-resort operational status. ## Example request ::code-group ```bash [cURL] curl -H "X-API-Key: $ICECOAST_API_KEY" 'https://api.icecoast.us/api/v1/mountains/id/00000000-0000-4000-8000-000000000001?includeTrails=true&includeLifts=true' ``` ```js [JavaScript] const response = await fetch( 'https://api.icecoast.us/api/v1/mountains/id/00000000-0000-4000-8000-000000000001?includeTrails=true&includeLifts=true', { 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/id/00000000-0000-4000-8000-000000000001?includeTrails=true&includeLifts=true', 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"`. `cached` reports a shared payload-cache hit, not the age of resort conditions. 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", "name": "Example Mountain", "slug": "example-mountain", "country": "United States", "state": "Vermont", "latitude": 44, "longitude": -72, "timezone": "America/New_York", "no_trails_reported": false, "no_lifts_reported": false, "brand_palette_dark": [], "brand_palette_dark_updated_at": null, "brand_palette": [], "brand_palette_updated_at": null, "links": { "website": "https://icecoast.us/mountain/example-mountain", "self": { "id": "/api/v1/mountains/id/00000000-0000-4000-8000-000000000001", "slug": "/api/v1/mountains/slug/example-mountain" }, "mountain_trails": { "id": "/api/v1/trails?mountain=00000000-0000-4000-8000-000000000001", "slug": "/api/v1/trails?mountain=example-mountain" }, "mountain_lifts": { "id": "/api/v1/lifts?mountain=00000000-0000-4000-8000-000000000001", "slug": "/api/v1/lifts?mountain=example-mountain" } } }, "meta": { "version": "v1" }, "cached": false } ``` ### Resource fields | Field | Type | Meaning | | ------------------------------- | ---------------------- | ------------------------------------------------------------------- | | `id` | string | Mountain UUID. | | `name` | string | Mountain name. | | `slug` | string | URL-friendly lookup identifier. | | `state` | string / null | State/province name. | | `country` | string / null | Country name. | | `city` | string / null | City/locality. | | `region` | any | Stored region classification. | | `latitude` | number / string / null | Latitude in degrees; numeric database values can be strings. | | `longitude` | number / string / null | Longitude in degrees. | | `website` | string / null | Official resort website. | | `elevation` | any | Stored elevation; no unit is guaranteed by this endpoint. | | `vertical` | any | Stored vertical; no unit is guaranteed by this endpoint. | | `timezone` | string / null | Resort timezone when recorded. | | `published` | boolean | See the data model and returned resource. | | `no_trails_reported` | boolean / null | Reporting unavailable flag, not a closed status. | | `no_lifts_reported` | boolean / null | Reporting unavailable flag, not a closed status. | | `created_at` | string / null | Metadata creation time. | | `updated_at` | string / null | Metadata update time, not a conditions timestamp. | | `media` | array | See the data model and returned resource. | | `brand_palette` | array | See the data model and returned resource. | | `brand_palette_dark` | array | See the data model and returned resource. | | `brand_palette_updated_at` | string / null | Palette timestamp. | | `brand_palette_dark_updated_at` | string / null | Dark palette timestamp. | | `brand_palette_override` | any | See the data model and returned resource. | | `brand_palette_source` | string | automatic or manual. | | `total_trails_count` | integer / string | Active trail count, added to list/search; not guaranteed on detail. | | `open_trails_count` | integer / string | Active trails with open=true on list/search. | | `trails` | array | See the data model and returned resource. | | `lifts` | array | See the data model and returned resource. | | `passes` | array | See the data model and returned resource. | | `links` | object | Resource URLs. See link compatibility note in response concepts. | Record fields may be missing or null. Treat identifiers as opaque and distinguish unavailable values from confirmed false/zero. See [data semantics](https://icecoast.us/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 | Mountain not found | | 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](https://icecoast.us/docs/concepts/errors). ## Related resources - [List mountains](https://icecoast.us/docs/reference/mountains/list) - [Search mountains](https://icecoast.us/docs/reference/mountains/search) - [Get mountain by slug](https://icecoast.us/docs/reference/mountains/by-slug) - [Mountain media](https://icecoast.us/docs/reference/mountains/media) - [Data freshness](https://icecoast.us/docs/concepts/freshness) - [OpenAPI specification](https://icecoast.us/openapi.json){external=""} # Get mountain by slug `GET /api/v1/mountains/slug/{slug}` Retrieve one mountain using its stored slug, with optional trails, lifts and pass memberships. Use this lookup after a resort is selected in search. ## Authentication An API key is required for external integrations. Send `X-API-Key: YOUR_API_KEY` or `Authorization: Bearer YOUR_API_KEY`. [Authentication](https://icecoast.us/docs/getting-started/authentication) explains public origin and secret IP restrictions. ## Parameters ### Path parameters | Parameter | Type | Required | Default | Description | | --------- | ------ | -------- | ------- | -------------- | | `slug` | string | Yes | — | Mountain slug. | ### Query parameters | Parameter | Type | Required | Default | Description | | --------------- | ---------------- | -------- | ------- | ----------- | | `includeTrails` | boolean / string | No | `false` | | | `includeLifts` | boolean / string | No | `false` | | | `includePasses` | boolean | No | `false` | | | `skipCache` | boolean | No | `false` | | Request only needed relations. includeTrails/includeLifts accept booleans or filter tokens; see the inclusion guide. includePasses adds membership records, not full pass detail. Empty relations do not establish that a mountain has no real-world terrain. This endpoint does not derive whole-resort operational status. ## Example request ::code-group ```bash [cURL] curl -H "X-API-Key: $ICECOAST_API_KEY" 'https://api.icecoast.us/api/v1/mountains/slug/killington?includeTrails=true&includeLifts=true' ``` ```js [JavaScript] const response = await fetch( 'https://api.icecoast.us/api/v1/mountains/slug/killington?includeTrails=true&includeLifts=true', { 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/slug/killington?includeTrails=true&includeLifts=true', 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"`. `cached` reports a shared payload-cache hit, not the age of resort conditions. 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", "name": "Example Mountain", "slug": "example-mountain", "country": "United States", "state": "Vermont", "latitude": 44, "longitude": -72, "timezone": "America/New_York", "no_trails_reported": false, "no_lifts_reported": false, "brand_palette_dark": [], "brand_palette_dark_updated_at": null, "brand_palette": [], "brand_palette_updated_at": null, "links": { "website": "https://icecoast.us/mountain/example-mountain", "self": { "id": "/api/v1/mountains/id/00000000-0000-4000-8000-000000000001", "slug": "/api/v1/mountains/slug/example-mountain" }, "mountain_trails": { "id": "/api/v1/trails?mountain=00000000-0000-4000-8000-000000000001", "slug": "/api/v1/trails?mountain=example-mountain" }, "mountain_lifts": { "id": "/api/v1/lifts?mountain=00000000-0000-4000-8000-000000000001", "slug": "/api/v1/lifts?mountain=example-mountain" } } }, "meta": { "version": "v1" }, "cached": false } ``` ### Resource fields | Field | Type | Meaning | | ------------------------------- | ---------------------- | ------------------------------------------------------------------- | | `id` | string | Mountain UUID. | | `name` | string | Mountain name. | | `slug` | string | URL-friendly lookup identifier. | | `state` | string / null | State/province name. | | `country` | string / null | Country name. | | `city` | string / null | City/locality. | | `region` | any | Stored region classification. | | `latitude` | number / string / null | Latitude in degrees; numeric database values can be strings. | | `longitude` | number / string / null | Longitude in degrees. | | `website` | string / null | Official resort website. | | `elevation` | any | Stored elevation; no unit is guaranteed by this endpoint. | | `vertical` | any | Stored vertical; no unit is guaranteed by this endpoint. | | `timezone` | string / null | Resort timezone when recorded. | | `published` | boolean | See the data model and returned resource. | | `no_trails_reported` | boolean / null | Reporting unavailable flag, not a closed status. | | `no_lifts_reported` | boolean / null | Reporting unavailable flag, not a closed status. | | `created_at` | string / null | Metadata creation time. | | `updated_at` | string / null | Metadata update time, not a conditions timestamp. | | `media` | array | See the data model and returned resource. | | `brand_palette` | array | See the data model and returned resource. | | `brand_palette_dark` | array | See the data model and returned resource. | | `brand_palette_updated_at` | string / null | Palette timestamp. | | `brand_palette_dark_updated_at` | string / null | Dark palette timestamp. | | `brand_palette_override` | any | See the data model and returned resource. | | `brand_palette_source` | string | automatic or manual. | | `total_trails_count` | integer / string | Active trail count, added to list/search; not guaranteed on detail. | | `open_trails_count` | integer / string | Active trails with open=true on list/search. | | `trails` | array | See the data model and returned resource. | | `lifts` | array | See the data model and returned resource. | | `passes` | array | See the data model and returned resource. | | `links` | object | Resource URLs. See link compatibility note in response concepts. | Record fields may be missing or null. Treat identifiers as opaque and distinguish unavailable values from confirmed false/zero. See [data semantics](https://icecoast.us/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 | Mountain not found | | 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](https://icecoast.us/docs/concepts/errors). ## Related resources - [List mountains](https://icecoast.us/docs/reference/mountains/list) - [Search mountains](https://icecoast.us/docs/reference/mountains/search) - [Get mountain by UUID](https://icecoast.us/docs/reference/mountains/by-id) - [Mountain media](https://icecoast.us/docs/reference/mountains/media) - [Data freshness](https://icecoast.us/docs/concepts/freshness) - [OpenAPI specification](https://icecoast.us/openapi.json){external=""} # Mountain media `GET /api/v1/mountains/id/{id}/media` Retrieve the media associated with a mountain, optionally narrowed by role. Use it to find available logo references without guessing asset URLs. ## Authentication An API key is required for external integrations. Send `X-API-Key: YOUR_API_KEY` or `Authorization: Bearer YOUR_API_KEY`. [Authentication](https://icecoast.us/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/id/00000000-0000-4000-8000-000000000001/media' ``` ```js [JavaScript] const response = await fetch( 'https://api.icecoast.us/api/v1/mountains/id/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/id/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](https://icecoast.us/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](https://icecoast.us/docs/concepts/errors). ## Related resources - [List mountains](https://icecoast.us/docs/reference/mountains/list) - [Search mountains](https://icecoast.us/docs/reference/mountains/search) - [Get mountain by UUID](https://icecoast.us/docs/reference/mountains/by-id) - [Get mountain by slug](https://icecoast.us/docs/reference/mountains/by-slug) - [Data freshness](https://icecoast.us/docs/concepts/freshness) - [OpenAPI specification](https://icecoast.us/openapi.json){external=""} # 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](https://icecoast.us/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](https://icecoast.us/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](https://icecoast.us/docs/concepts/errors). ## Related resources - [List mountains](https://icecoast.us/docs/reference/mountains/list) - [Search mountains](https://icecoast.us/docs/reference/mountains/search) - [Get mountain by UUID](https://icecoast.us/docs/reference/mountains/by-id) - [Get mountain by slug](https://icecoast.us/docs/reference/mountains/by-slug) - [Data freshness](https://icecoast.us/docs/concepts/freshness) - [OpenAPI specification](https://icecoast.us/openapi.json){external=""} # 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](https://icecoast.us/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](https://icecoast.us/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](https://icecoast.us/docs/concepts/errors). ## Related resources - [Resort-reported weather](https://icecoast.us/docs/reference/weather/reported) - [Forecast snapshot history](https://icecoast.us/docs/reference/weather/history) - [Data freshness](https://icecoast.us/docs/concepts/freshness) - [OpenAPI specification](https://icecoast.us/openapi.json){external=""} # Resort-reported weather `GET /api/v1/weather/{mountainId}/reported` Retrieve the latest available resort-reported measurement receipts for each source, preserving source times, units and provenance. ## Authentication An API key is required for external integrations. Send `X-API-Key: YOUR_API_KEY` or `Authorization: Bearer YOUR_API_KEY`. [Authentication](https://icecoast.us/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 | No resource-specific query parameters. 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/reported' ``` ```js [JavaScript] const response = await fetch( 'https://api.icecoast.us/api/v1/weather/00000000-0000-4000-8000-000000000001/reported', { 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/reported', 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", "reports": [] }, "meta": { "version": "v1" } } ``` ### Resource fields | Field | Type | Meaning | | ------------- | ------ | ----------------------------------------- | | `mountain_id` | string | Mountain UUID. | | `reports` | array | 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](https://icecoast.us/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](https://icecoast.us/docs/concepts/errors). ## Related resources - [Mountain forecast](https://icecoast.us/docs/reference/weather/forecast) - [Forecast snapshot history](https://icecoast.us/docs/reference/weather/history) - [Data freshness](https://icecoast.us/docs/concepts/freshness) - [OpenAPI specification](https://icecoast.us/openapi.json){external=""} # Forecast snapshot history `GET /api/v1/weather/{mountainId}/history` List available forecast snapshot metadata for a mountain point/model. This route does not return archived hourly/daily forecast values. ## Authentication An API key is required for external integrations. Send `X-API-Key: YOUR_API_KEY` or `Authorization: Bearer YOUR_API_KEY`. [Authentication](https://icecoast.us/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}$` | | `limit` | integer | No | `20` | Snapshot metadata limit. Min 1; Max 100 | 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/history' ``` ```js [JavaScript] const response = await fetch( 'https://api.icecoast.us/api/v1/weather/00000000-0000-4000-8000-000000000001/history', { 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/history', 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": [ { "snapshot_id": "example-snapshot", "fetched_at": "2026-12-04T12:00:00Z", "valid_from": "2026-12-04T00:00:00Z", "valid_to": "2026-12-05T00:00:00Z", "snapshot_kind": "forecast", "content_hash": "example-fingerprint" } ], "meta": { "version": "v1" } } ``` ### Resource fields | Field | Type | Meaning | | --------------- | ---------------- | ----------------------------------------- | | `snapshot_id` | integer / string | See the data model and returned resource. | | `fetched_at` | string | Retrieval time. | | `valid_from` | string | Validity start. | | `valid_to` | string | Validity end. | | `snapshot_kind` | string | Snapshot category. | | `content_hash` | string | Content fingerprint. | Record fields may be missing or null. Treat identifiers as opaque and distinguish unavailable values from confirmed false/zero. See [data semantics](https://icecoast.us/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](https://icecoast.us/docs/concepts/errors). ## Related resources - [Mountain forecast](https://icecoast.us/docs/reference/weather/forecast) - [Resort-reported weather](https://icecoast.us/docs/reference/weather/reported) - [Data freshness](https://icecoast.us/docs/concepts/freshness) - [OpenAPI specification](https://icecoast.us/openapi.json){external=""} # 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](https://icecoast.us/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](https://icecoast.us/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](https://icecoast.us/docs/concepts/errors). ## Related resources - [Mountain ZIP metadata](https://icecoast.us/docs/reference/exports/mountain) - [Dataset ZIP metadata](https://icecoast.us/docs/reference/exports/dataset) - [Data freshness](https://icecoast.us/docs/concepts/freshness) - [OpenAPI specification](https://icecoast.us/openapi.json){external=""} # Mountain ZIP metadata `GET /api/v1/exports/mountains/{identifier}/download` Retrieve ZIP download metadata for one eligible mountain by UUID or slug. ## 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](https://icecoast.us/docs/getting-started/authentication). ## Parameters ### Path parameters | Parameter | Type | Required | Default | Description | | ------------ | ------ | -------- | ------- | --------------------------------------------------------------------- | | `identifier` | string | Yes | — | Published mountain UUID or slug. Pattern `^[a-z0-9][a-z0-9-]{0,159}$` | No resource-specific query parameters. 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/killington/download' ``` ```js [JavaScript] const response = await fetch( 'https://api.icecoast.us/api/v1/exports/mountains/killington/download', { 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/killington/download', 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": { "url": "https://example.com/example-mountain.zip", "expires_at": null, "sha256": "0000000000000000000000000000000000000000000000000000000000000000", "bytes": 1024, "filename": "example-mountain.zip", "content_type": "application/zip", "captured_at": "2026-12-04T12:00:00Z" }, "meta": { "version": "v1" } } ``` ### Resource fields | Field | Type | Meaning | | -------------- | ------------- | ---------------------------------------------------------------------------------------- | | `url` | string | Download URL. Private-mode URLs are temporary bearer credentials; keep them out of logs. | | `expires_at` | string / null | Expiry, or null for public URLs. | | `sha256` | string | SHA-256 checksum. | | `bytes` | integer | See the data model and returned resource. | | `filename` | string | Archive filename. | | `content_type` | any | See the data model and returned resource. | | `captured_at` | string | Snapshot capture time. | | `mountain_id` | string | Mountain UUID. | | `revision` | string | Mountain revision, on single-mountain downloads. | | `scope` | string | 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](https://icecoast.us/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 | Export not found | | 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](https://icecoast.us/docs/concepts/errors). ## Related resources - [Mountain export catalog](https://icecoast.us/docs/reference/exports/catalog) - [Dataset ZIP metadata](https://icecoast.us/docs/reference/exports/dataset) - [Data freshness](https://icecoast.us/docs/concepts/freshness) - [OpenAPI specification](https://icecoast.us/openapi.json){external=""} # Dataset ZIP metadata `GET /api/v1/exports/datasets/{scope}/download` Retrieve ZIP download metadata for an eligible all-country or US/Canada dataset snapshot. ## 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](https://icecoast.us/docs/getting-started/authentication). ## Parameters ### Path parameters | Parameter | Type | Required | Default | Description | | --------- | ------ | -------- | ------- | --------------------------------------- | | `scope` | string | Yes | — | Dataset scope. Accepted: `all`, `us-ca` | No resource-specific query parameters. 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/datasets/all/download' ``` ```js [JavaScript] const response = await fetch('https://api.icecoast.us/api/v1/exports/datasets/all/download', { 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/datasets/all/download', 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": { "url": "https://example.com/example-mountain.zip", "expires_at": null, "sha256": "0000000000000000000000000000000000000000000000000000000000000000", "bytes": 1024, "filename": "example-mountain.zip", "content_type": "application/zip", "captured_at": "2026-12-04T12:00:00Z" }, "meta": { "version": "v1" } } ``` ### Resource fields | Field | Type | Meaning | | -------------- | ------------- | ---------------------------------------------------------------------------------------- | | `url` | string | Download URL. Private-mode URLs are temporary bearer credentials; keep them out of logs. | | `expires_at` | string / null | Expiry, or null for public URLs. | | `sha256` | string | SHA-256 checksum. | | `bytes` | integer | See the data model and returned resource. | | `filename` | string | Archive filename. | | `content_type` | any | See the data model and returned resource. | | `captured_at` | string | Snapshot capture time. | | `mountain_id` | string | Mountain UUID. | | `revision` | string | Mountain revision, on single-mountain downloads. | | `scope` | string | 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](https://icecoast.us/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 | Export not found | | 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](https://icecoast.us/docs/concepts/errors). ## Related resources - [Mountain export catalog](https://icecoast.us/docs/reference/exports/catalog) - [Mountain ZIP metadata](https://icecoast.us/docs/reference/exports/mountain) - [Data freshness](https://icecoast.us/docs/concepts/freshness) - [OpenAPI specification](https://icecoast.us/openapi.json){external=""} # List trails `GET /api/v1/trails` Retrieve a paginated active trails roster. Filter by mountain for a resort conditions view, or combine geographic and operational filters for discovery. ## Authentication An API key is required for external integrations. Send `X-API-Key: YOUR_API_KEY` or `Authorization: Bearer YOUR_API_KEY`. [Authentication](https://icecoast.us/docs/getting-started/authentication) explains public origin and secret IP restrictions. ## Parameters ### Query parameters | Parameter | Type | Required | Default | Description | | --------------- | ------- | -------- | ------- | -------------------------------------------------------------------------------------------------------------------------------------- | | `country` | string | No | — | Max length 100 | | `mountain` | string | No | — | Filter by mountain ID | | `open` | boolean | No | — | Filter by open status | | `rating` | string | No | — | Filter by rating | | `groomed` | boolean | No | — | Filter by groomed status | | `glade` | boolean | No | — | Filter by glade status | | `night_skiing` | boolean | No | — | Filter by night skiing status | | `zone` | string | No | — | Filter by zone | | `area` | string | No | — | Filter by area | | `q` | string | No | — | Search term for name | | `sortBy` | string | No | `name` | Sort column. Unsupported columns fall back to the default. Accepted: `name`, `rating`, `open`, `groomed`, `zone`, `area`, `created_at` | | `sortDirection` | string | No | `asc` | Sort direction. Accepted: `asc`, `desc` | | `limit` | integer | No | `50` | Pagination limit | | `offset` | integer | No | `0` | Pagination offset | | `fields` | string | No | — | Comma-separated specific fields to fetch | mountain accepts UUID or slug. Only active, non-retired inventory is listed. open=false excludes unknown/null. rating accepts comma-separated case-insensitive substring matches. zone/area are exact; q is a name substring. fields selects recorded columns; id and mountain remain. Unknown column names can fail. ## Example request ::code-group ```bash [cURL] curl -H "X-API-Key: $ICECOAST_API_KEY" 'https://api.icecoast.us/api/v1/trails?mountain=killington&limit=2' ``` ```js [JavaScript] const response = await fetch('https://api.icecoast.us/api/v1/trails?mountain=killington&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/trails?mountain=killington&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"`. `cached` reports a shared payload-cache hit, not the age of resort conditions. See [pagination](https://icecoast.us/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", "name": "Example Trail", "open": null, "rating": "blue", "groomed": null, "zone": "Main", "links": { "self": "/api/v1/trails/id/123" } } ], "meta": { "version": "v1", "total": 1, "limit": 50, "offset": 0, "count": 1, "hasMore": false, "links": { "next": null, "prev": null } }, "cached": false } ``` ### Resource fields | Field | Type | Meaning | | ------------------ | ---------------- | ------------------------------------------------------- | | `id` | integer / string | Opaque canonical trail ID, not a mountain UUID. | | `mountain` | string | Mountain UUID. | | `name` | string | Trail name. | | `open` | boolean / null | true=open; false=not open; null=unknown. | | `rating` | string / null | Stored difficulty, not a universal international scale. | | `groomed` | boolean / null | Reported grooming; null is unknown. | | `glade` | boolean / null | Glade classification. | | `night_skiing` | boolean / null | Night-skiing classification. | | `zone` | string / null | Source grouping. | | `area` | string / null | Source grouping. | | `last_observed_at` | string / null | Observation time when present. | | `updated_at` | string / null | Record update time when present. | | `created_at` | string / null | Record creation time. | | `mountain_name` | string | Parent mountain name. | | `mountain_slug` | string | Parent slug on standalone trail reads. | | `links` | object | Related resources. | Record fields may be missing or null. Treat identifiers as opaque and distinguish unavailable values from confirmed false/zero. See [data semantics](https://icecoast.us/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](https://icecoast.us/docs/concepts/errors). ## Related resources - [Get a trail](https://icecoast.us/docs/reference/trails/detail) - [Data freshness](https://icecoast.us/docs/concepts/freshness) - [OpenAPI specification](https://icecoast.us/openapi.json){external=""} # Get a trail `GET /api/v1/trails/id/{id}` Retrieve a single trail by its canonical entity ID. Use an identifier returned by a terrain collection, rather than a mountain UUID or guessed name. ## Authentication An API key is required for external integrations. Send `X-API-Key: YOUR_API_KEY` or `Authorization: Bearer YOUR_API_KEY`. [Authentication](https://icecoast.us/docs/getting-started/authentication) explains public origin and secret IP restrictions. ## Parameters ### Path parameters | Parameter | Type | Required | Default | Description | | --------- | ------ | -------- | ------- | --------------------------------------------------------------- | | `id` | string | Yes | — | Canonical entity ID from a prior response; not a mountain UUID. | No resource-specific query parameters. Detail reads do not apply the list active-inventory filter. Known retired records may remain retrievable. Treat identifiers as opaque. ## Example request ::code-group ```bash [cURL] curl -H "X-API-Key: $ICECOAST_API_KEY" 'https://api.icecoast.us/api/v1/trails/id/123' ``` ```js [JavaScript] const response = await fetch('https://api.icecoast.us/api/v1/trails/id/123', { 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/trails/id/123', 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"`. `cached` reports a shared payload-cache hit, not the age of resort conditions. 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", "name": "Example Trail", "open": null, "rating": "blue", "groomed": null, "zone": "Main", "links": { "self": "/api/v1/trails/id/123" } }, "meta": { "version": "v1" }, "cached": false } ``` ### Resource fields | Field | Type | Meaning | | ------------------ | ---------------- | ------------------------------------------------------- | | `id` | integer / string | Opaque canonical trail ID, not a mountain UUID. | | `mountain` | string | Mountain UUID. | | `name` | string | Trail name. | | `open` | boolean / null | true=open; false=not open; null=unknown. | | `rating` | string / null | Stored difficulty, not a universal international scale. | | `groomed` | boolean / null | Reported grooming; null is unknown. | | `glade` | boolean / null | Glade classification. | | `night_skiing` | boolean / null | Night-skiing classification. | | `zone` | string / null | Source grouping. | | `area` | string / null | Source grouping. | | `last_observed_at` | string / null | Observation time when present. | | `updated_at` | string / null | Record update time when present. | | `created_at` | string / null | Record creation time. | | `mountain_name` | string | Parent mountain name. | | `mountain_slug` | string | Parent slug on standalone trail reads. | | `links` | object | Related resources. | Record fields may be missing or null. Treat identifiers as opaque and distinguish unavailable values from confirmed false/zero. See [data semantics](https://icecoast.us/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 | Trail not found | | 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](https://icecoast.us/docs/concepts/errors). ## Related resources - [List trails](https://icecoast.us/docs/reference/trails/list) - [Data freshness](https://icecoast.us/docs/concepts/freshness) - [OpenAPI specification](https://icecoast.us/openapi.json){external=""} # List lifts `GET /api/v1/lifts` Retrieve a paginated active lifts roster. Filter by mountain for a resort conditions view, or combine geographic and operational filters for discovery. ## Authentication An API key is required for external integrations. Send `X-API-Key: YOUR_API_KEY` or `Authorization: Bearer YOUR_API_KEY`. [Authentication](https://icecoast.us/docs/getting-started/authentication) explains public origin and secret IP restrictions. ## Parameters ### Query parameters | Parameter | Type | Required | Default | Description | | ------------------ | ------- | -------- | ------- | ---------------------------------------------------------------------------------------------------------------------------------------------------- | | `country` | string | No | — | Max length 100 | | `mountain` | string | No | — | Filter by mountain ID or slug | | `open` | boolean | No | — | Filter by open status | | `operating_status` | string | No | — | Detailed lift status; open remains the legacy operating flag Accepted: `open`, `closed`, `delayed`, `on_hold`, `scheduled`, `unknown` | | `type` | string | No | — | Filter by lift type | | `zone` | string | No | — | Filter by zone | | `area` | string | No | — | Filter by area | | `q` | string | No | — | Search term for name | | `sortBy` | string | No | `name` | Sort column. Unsupported columns fall back to the default. Accepted: `name`, `type`, `open`, `zone`, `area`, `created_at`, `open_time`, `close_time` | | `sortDirection` | string | No | `asc` | Sort direction. Accepted: `asc`, `desc` | | `limit` | integer | No | `50` | Pagination limit | | `offset` | integer | No | `0` | Pagination offset | | `fields` | string | No | — | Comma-separated specific fields to fetch | mountain accepts UUID or slug. Only active, non-retired inventory is listed. open=false excludes unknown/null. type accepts comma-separated case-insensitive substring matches. operating_status matches an exact detailed status. zone/area are exact; q is a name substring. fields selects recorded columns; id and mountain remain. Unknown column names can fail. ## Example request ::code-group ```bash [cURL] curl -H "X-API-Key: $ICECOAST_API_KEY" 'https://api.icecoast.us/api/v1/lifts?mountain=killington&limit=2' ``` ```js [JavaScript] const response = await fetch('https://api.icecoast.us/api/v1/lifts?mountain=killington&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/lifts?mountain=killington&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"`. `cached` reports a shared payload-cache hit, not the age of resort conditions. See [pagination](https://icecoast.us/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": 456, "mountain": "00000000-0000-4000-8000-000000000001", "name": "Example Chair", "open": false, "operating_status": "delayed", "type": "chair", "links": { "self": "/api/v1/lifts/id/456" } } ], "meta": { "version": "v1", "total": 1, "limit": 50, "offset": 0, "count": 1, "hasMore": false, "links": { "next": null, "prev": null } }, "cached": false } ``` ### Resource fields | Field | Type | Meaning | | ------------------ | ---------------- | ------------------------------------------------------ | | `id` | integer / string | Opaque canonical lift ID. | | `mountain` | string | Mountain UUID. | | `name` | string | Lift name. | | `open` | boolean / null | Legacy operating flag; unknown differs from false. | | `operating_status` | string / null | Detailed status when available. | | `type` | string / null | Source lift type; not a fixed enum. | | `zone` | string / null | Source grouping. | | `area` | string / null | Source grouping. | | `open_time` | string / null | Reported opening time; interpret with resort timezone. | | `close_time` | string / null | Reported closing time. | | `last_observed_at` | string / null | Observation time when present. | | `created_at` | string / null | Record creation time. | | `mountain_name` | string | Parent name. | | `links` | object | Related resources. | Record fields may be missing or null. Treat identifiers as opaque and distinguish unavailable values from confirmed false/zero. See [data semantics](https://icecoast.us/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](https://icecoast.us/docs/concepts/errors). ## Related resources - [Get a lift](https://icecoast.us/docs/reference/lifts/detail) - [Data freshness](https://icecoast.us/docs/concepts/freshness) - [OpenAPI specification](https://icecoast.us/openapi.json){external=""} # Get a lift `GET /api/v1/lifts/id/{id}` Retrieve a single lift by its canonical entity ID. Use an identifier returned by a terrain collection, rather than a mountain UUID or guessed name. ## Authentication An API key is required for external integrations. Send `X-API-Key: YOUR_API_KEY` or `Authorization: Bearer YOUR_API_KEY`. [Authentication](https://icecoast.us/docs/getting-started/authentication) explains public origin and secret IP restrictions. ## Parameters ### Path parameters | Parameter | Type | Required | Default | Description | | --------- | ------ | -------- | ------- | --------------------------------------------------------------- | | `id` | string | Yes | — | Canonical entity ID from a prior response; not a mountain UUID. | No resource-specific query parameters. Detail reads do not apply the list active-inventory filter. Known retired records may remain retrievable. Treat identifiers as opaque. ## Example request ::code-group ```bash [cURL] curl -H "X-API-Key: $ICECOAST_API_KEY" 'https://api.icecoast.us/api/v1/lifts/id/123' ``` ```js [JavaScript] const response = await fetch('https://api.icecoast.us/api/v1/lifts/id/123', { 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/lifts/id/123', 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"`. `cached` reports a shared payload-cache hit, not the age of resort conditions. 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": 456, "mountain": "00000000-0000-4000-8000-000000000001", "name": "Example Chair", "open": false, "operating_status": "delayed", "type": "chair", "links": { "self": "/api/v1/lifts/id/456" } }, "meta": { "version": "v1" }, "cached": false } ``` ### Resource fields | Field | Type | Meaning | | ------------------ | ---------------- | ------------------------------------------------------ | | `id` | integer / string | Opaque canonical lift ID. | | `mountain` | string | Mountain UUID. | | `name` | string | Lift name. | | `open` | boolean / null | Legacy operating flag; unknown differs from false. | | `operating_status` | string / null | Detailed status when available. | | `type` | string / null | Source lift type; not a fixed enum. | | `zone` | string / null | Source grouping. | | `area` | string / null | Source grouping. | | `open_time` | string / null | Reported opening time; interpret with resort timezone. | | `close_time` | string / null | Reported closing time. | | `last_observed_at` | string / null | Observation time when present. | | `created_at` | string / null | Record creation time. | | `mountain_name` | string | Parent name. | | `links` | object | Related resources. | Record fields may be missing or null. Treat identifiers as opaque and distinguish unavailable values from confirmed false/zero. See [data semantics](https://icecoast.us/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 | Lift not found | | 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](https://icecoast.us/docs/concepts/errors). ## Related resources - [List lifts](https://icecoast.us/docs/reference/lifts/list) - [Data freshness](https://icecoast.us/docs/concepts/freshness) - [OpenAPI specification](https://icecoast.us/openapi.json){external=""} # List passes `GET /api/v1/passes` Browse and filter the pass catalog. Optional list expansion adds mountain membership records. ## Authentication An API key is required for external integrations. Send `X-API-Key: YOUR_API_KEY` or `Authorization: Bearer YOUR_API_KEY`. [Authentication](https://icecoast.us/docs/getting-started/authentication) explains public origin and secret IP restrictions. ## Parameters ### Query parameters | Parameter | Type | Required | Default | Description | | ------------------ | ------- | -------- | ------- | ----------------------------------------------------------------------------------------------------------------------------------------- | | `q` | string | No | — | Case-insensitive name, slug or description substring. | | `country` | string | No | — | Country name/code of an associated mountain. | | `pass_type` | string | No | — | Exact stored category. | | `is_active` | boolean | No | — | Match the active flag. | | `limit` | integer | No | `20` | Maximum records; send a positive integer. | | `offset` | integer | No | `0` | Records to skip; send a nonnegative integer. | | `sortBy` | string | No | `name` | Sort column. Unsupported columns fall back to the default. Accepted: `name`, `slug`, `pass_type`, `is_active`, `created_at`, `updated_at` | | `sortDirection` | string | No | `asc` | Sort direction. Accepted: `asc`, `desc` | | `includeMountains` | boolean | No | `false` | Include membership rows with mountain_name and mountain_slug. | Pass routes have no query validation schema. Send lowercase true/false and positive pagination. No fixed pass_type enum is enforced. List includes return membership rows, unlike the expanded resorts in pass detail. ## Example request ::code-group ```bash [cURL] curl -H "X-API-Key: $ICECOAST_API_KEY" 'https://api.icecoast.us/api/v1/passes?limit=2' ``` ```js [JavaScript] const response = await fetch('https://api.icecoast.us/api/v1/passes?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/passes?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"`. `cached` reports a shared payload-cache hit, not the age of resort conditions. See [pagination](https://icecoast.us/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": "00000000-0000-4000-8000-000000000001", "name": "Example Pass", "slug": "example-pass", "pass_type": null, "is_active": true } ], "meta": { "version": "v1", "total": 1, "limit": 20, "offset": 0, "count": 1, "hasMore": false, "links": { "next": null, "prev": null } }, "cached": false } ``` ### Resource fields | Field | Type | Meaning | | ---------------- | -------------- | ----------------------------------------- | | `id` | string | Pass UUID. | | `name` | string | Name. | | `slug` | string | Slug. | | `pass_type` | string / null | Stored category, not a fixed enum. | | `description` | string / null | Description. | | `website` | string / null | Website. | | `logo_url` | string / null | Logo. | | `is_active` | boolean / null | Catalog active flag. | | `pass_tiers` | array | Always included on detail. | | `pass_mountains` | array | Detail with includes. | | `mountains` | array | 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](https://icecoast.us/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](https://icecoast.us/docs/concepts/errors). ## Related resources - [Get pass by slug or UUID](https://icecoast.us/docs/reference/passes/detail) - [Mountains on a pass](https://icecoast.us/docs/reference/passes/mountains) - [Pass summary](https://icecoast.us/docs/reference/passes/summary) - [Get pass (slug alias)](https://icecoast.us/docs/reference/passes/detail-alias) - [Data freshness](https://icecoast.us/docs/concepts/freshness) - [OpenAPI specification](https://icecoast.us/openapi.json){external=""} # Get pass by slug or UUID `GET /api/v1/passes/{slug}` Retrieve pass identity, tier records and optional expanded mountain memberships. Disable expansion for a compact pass lookup. ## Authentication An API key is required for external integrations. Send `X-API-Key: YOUR_API_KEY` or `Authorization: Bearer YOUR_API_KEY`. [Authentication](https://icecoast.us/docs/getting-started/authentication) explains public origin and secret IP restrictions. ## Parameters ### Path parameters | Parameter | Type | Required | Default | Description | | --------- | ------ | -------- | ------- | ----------------------------------------------------- | | `slug` | string | Yes | — | Pass slug or UUID; both forms use polymorphic lookup. | ### Query parameters | Parameter | Type | Required | Default | Description | | ------------------ | ------- | -------- | ------- | --------------------------------------------------------- | | `includeMountains` | boolean | No | `true` | Include memberships and full mountains with trails/lifts. | Always includes pass_tiers. includeMountains defaults true and may greatly expand the response; pass false for a lightweight read. The /slug/ form is a compatibility alias and also accepts UUIDs. ## Example request ::code-group ```bash [cURL] curl -H "X-API-Key: $ICECOAST_API_KEY" 'https://api.icecoast.us/api/v1/passes/ikon-pass?includeMountains=false' ``` ```js [JavaScript] const response = await fetch( 'https://api.icecoast.us/api/v1/passes/ikon-pass?includeMountains=false', { 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/passes/ikon-pass?includeMountains=false', 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"`. `cached` reports a shared payload-cache hit, not the age of resort conditions. 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", "name": "Example Pass", "slug": "example-pass", "pass_type": null, "is_active": true }, "meta": { "version": "v1" }, "cached": false } ``` ### Resource fields | Field | Type | Meaning | | ---------------- | -------------- | ----------------------------------------- | | `id` | string | Pass UUID. | | `name` | string | Name. | | `slug` | string | Slug. | | `pass_type` | string / null | Stored category, not a fixed enum. | | `description` | string / null | Description. | | `website` | string / null | Website. | | `logo_url` | string / null | Logo. | | `is_active` | boolean / null | Catalog active flag. | | `pass_tiers` | array | Always included on detail. | | `pass_mountains` | array | Detail with includes. | | `mountains` | array | 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](https://icecoast.us/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 | Pass not found | | 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](https://icecoast.us/docs/concepts/errors). ## Related resources - [List passes](https://icecoast.us/docs/reference/passes/list) - [Mountains on a pass](https://icecoast.us/docs/reference/passes/mountains) - [Pass summary](https://icecoast.us/docs/reference/passes/summary) - [Get pass (slug alias)](https://icecoast.us/docs/reference/passes/detail-alias) - [Data freshness](https://icecoast.us/docs/concepts/freshness) - [OpenAPI specification](https://icecoast.us/openapi.json){external=""} # Mountains on a pass `GET /api/v1/passes/{slug}/mountains` Retrieve all resorts associated with a pass, including their active terrain. Use this unpaginated expansion for membership views. ## Authentication An API key is required for external integrations. Send `X-API-Key: YOUR_API_KEY` or `Authorization: Bearer YOUR_API_KEY`. [Authentication](https://icecoast.us/docs/getting-started/authentication) explains public origin and secret IP restrictions. ## Parameters ### Path parameters | Parameter | Type | Required | Default | Description | | --------- | ------ | -------- | ------- | ------------------ | | `slug` | string | Yes | — | Pass slug or UUID. | No resource-specific query parameters. Returns all linked mountains and active trails/lifts in data, plus a top-level pass object. Not paginated; list-mountain filters do not apply. Resort rows come from expanded pass membership and differ from the standard mountain projection. ## Example request ::code-group ```bash [cURL] curl -H "X-API-Key: $ICECOAST_API_KEY" 'https://api.icecoast.us/api/v1/passes/ikon-pass/mountains' ``` ```js [JavaScript] const response = await fetch('https://api.icecoast.us/api/v1/passes/ikon-pass/mountains', { 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/passes/ikon-pass/mountains', 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"`. `cached` reports a shared payload-cache hit, not the age of resort conditions. A top-level `pass` object accompanies the mountain array. 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", "name": "Example Mountain", "slug": "example-mountain", "country": "United States", "state": "Vermont", "latitude": 44, "longitude": -72, "timezone": "America/New_York", "no_trails_reported": false, "no_lifts_reported": false, "brand_palette_dark": [], "brand_palette_dark_updated_at": null, "brand_palette": [], "brand_palette_updated_at": null, "links": { "website": "https://icecoast.us/mountain/example-mountain", "self": { "id": "/api/v1/mountains/id/00000000-0000-4000-8000-000000000001", "slug": "/api/v1/mountains/slug/example-mountain" }, "mountain_trails": { "id": "/api/v1/trails?mountain=00000000-0000-4000-8000-000000000001", "slug": "/api/v1/trails?mountain=example-mountain" }, "mountain_lifts": { "id": "/api/v1/lifts?mountain=00000000-0000-4000-8000-000000000001", "slug": "/api/v1/lifts?mountain=example-mountain" } } } ], "meta": { "version": "v1" }, "cached": false, "pass": { "id": "00000000-0000-4000-8000-000000000001", "name": "Example Pass", "slug": "example-pass", "pass_type": null, "is_active": true } } ``` ### Resource fields | Field | Type | Meaning | | ------------------------------- | ---------------------- | ------------------------------------------------------------------- | | `id` | string | Mountain UUID. | | `name` | string | Mountain name. | | `slug` | string | URL-friendly lookup identifier. | | `state` | string / null | State/province name. | | `country` | string / null | Country name. | | `city` | string / null | City/locality. | | `region` | any | Stored region classification. | | `latitude` | number / string / null | Latitude in degrees; numeric database values can be strings. | | `longitude` | number / string / null | Longitude in degrees. | | `website` | string / null | Official resort website. | | `elevation` | any | Stored elevation; no unit is guaranteed by this endpoint. | | `vertical` | any | Stored vertical; no unit is guaranteed by this endpoint. | | `timezone` | string / null | Resort timezone when recorded. | | `published` | boolean | See the data model and returned resource. | | `no_trails_reported` | boolean / null | Reporting unavailable flag, not a closed status. | | `no_lifts_reported` | boolean / null | Reporting unavailable flag, not a closed status. | | `created_at` | string / null | Metadata creation time. | | `updated_at` | string / null | Metadata update time, not a conditions timestamp. | | `media` | array | See the data model and returned resource. | | `brand_palette` | array | See the data model and returned resource. | | `brand_palette_dark` | array | See the data model and returned resource. | | `brand_palette_updated_at` | string / null | Palette timestamp. | | `brand_palette_dark_updated_at` | string / null | Dark palette timestamp. | | `brand_palette_override` | any | See the data model and returned resource. | | `brand_palette_source` | string | automatic or manual. | | `total_trails_count` | integer / string | Active trail count, added to list/search; not guaranteed on detail. | | `open_trails_count` | integer / string | Active trails with open=true on list/search. | | `trails` | array | See the data model and returned resource. | | `lifts` | array | See the data model and returned resource. | | `passes` | array | See the data model and returned resource. | | `links` | object | Resource URLs. See link compatibility note in response concepts. | Record fields may be missing or null. Treat identifiers as opaque and distinguish unavailable values from confirmed false/zero. See [data semantics](https://icecoast.us/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 | Pass not found | | 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](https://icecoast.us/docs/concepts/errors). ## Related resources - [List passes](https://icecoast.us/docs/reference/passes/list) - [Get pass by slug or UUID](https://icecoast.us/docs/reference/passes/detail) - [Pass summary](https://icecoast.us/docs/reference/passes/summary) - [Get pass (slug alias)](https://icecoast.us/docs/reference/passes/detail-alias) - [Data freshness](https://icecoast.us/docs/concepts/freshness) - [OpenAPI specification](https://icecoast.us/openapi.json){external=""} # Pass summary `GET /api/v1/passes/{slug}/summary` Retrieve compact pass identity and legacy membership counts. These counts do not establish current verified operational availability. ## Authentication An API key is required for external integrations. Send `X-API-Key: YOUR_API_KEY` or `Authorization: Bearer YOUR_API_KEY`. [Authentication](https://icecoast.us/docs/getting-started/authentication) explains public origin and secret IP restrictions. ## Parameters ### Path parameters | Parameter | Type | Required | Default | Description | | --------- | ------ | -------- | ------- | ------------------ | | `slug` | string | Yes | — | Pass slug or UUID. | No resource-specific query parameters. stats.total_resorts counts memberships; stats.open_resorts uses the legacy mountain status string exactly Open. It is not the freshness-qualified open count in /reports/overview and is not a current operational guarantee. ## Example request ::code-group ```bash [cURL] curl -H "X-API-Key: $ICECOAST_API_KEY" 'https://api.icecoast.us/api/v1/passes/ikon-pass/summary' ``` ```js [JavaScript] const response = await fetch('https://api.icecoast.us/api/v1/passes/ikon-pass/summary', { 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/passes/ikon-pass/summary', 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", "name": "Example Pass", "slug": "example-pass", "pass_type": null, "stats": { "total_resorts": 1, "open_resorts": 0 }, "website": null, "logo_url": null }, "meta": { "version": "v1" } } ``` ### Resource fields | Field | Type | Meaning | | ----------- | ------------- | ------------------ | | `id` | string | Pass UUID. | | `name` | string | Name. | | `slug` | string | Slug. | | `pass_type` | string / null | Category. | | `stats` | object | Membership counts. | | `website` | string / null | Website. | | `logo_url` | string / null | Logo. | Record fields may be missing or null. Treat identifiers as opaque and distinguish unavailable values from confirmed false/zero. See [data semantics](https://icecoast.us/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 | Pass not found | | 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](https://icecoast.us/docs/concepts/errors). ## Related resources - [List passes](https://icecoast.us/docs/reference/passes/list) - [Get pass by slug or UUID](https://icecoast.us/docs/reference/passes/detail) - [Mountains on a pass](https://icecoast.us/docs/reference/passes/mountains) - [Get pass (slug alias)](https://icecoast.us/docs/reference/passes/detail-alias) - [Data freshness](https://icecoast.us/docs/concepts/freshness) - [OpenAPI specification](https://icecoast.us/openapi.json){external=""} # Get pass (slug alias) `GET /api/v1/passes/slug/{slug}` Retrieve pass identity, tier records and optional expanded mountain memberships. Disable expansion for a compact pass lookup. ## Authentication An API key is required for external integrations. Send `X-API-Key: YOUR_API_KEY` or `Authorization: Bearer YOUR_API_KEY`. [Authentication](https://icecoast.us/docs/getting-started/authentication) explains public origin and secret IP restrictions. ## Parameters ### Path parameters | Parameter | Type | Required | Default | Description | | --------- | ------ | -------- | ------- | ----------------------------------------------------- | | `slug` | string | Yes | — | Pass slug or UUID; both forms use polymorphic lookup. | ### Query parameters | Parameter | Type | Required | Default | Description | | ------------------ | ------- | -------- | ------- | --------------------------------------------------------- | | `includeMountains` | boolean | No | `true` | Include memberships and full mountains with trails/lifts. | Always includes pass_tiers. includeMountains defaults true and may greatly expand the response; pass false for a lightweight read. The /slug/ form is a compatibility alias and also accepts UUIDs. ## Example request ::code-group ```bash [cURL] curl -H "X-API-Key: $ICECOAST_API_KEY" 'https://api.icecoast.us/api/v1/passes/slug/ikon-pass?includeMountains=false' ``` ```js [JavaScript] const response = await fetch( 'https://api.icecoast.us/api/v1/passes/slug/ikon-pass?includeMountains=false', { 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/passes/slug/ikon-pass?includeMountains=false', 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"`. `cached` reports a shared payload-cache hit, not the age of resort conditions. 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", "name": "Example Pass", "slug": "example-pass", "pass_type": null, "is_active": true }, "meta": { "version": "v1" }, "cached": false } ``` ### Resource fields | Field | Type | Meaning | | ---------------- | -------------- | ----------------------------------------- | | `id` | string | Pass UUID. | | `name` | string | Name. | | `slug` | string | Slug. | | `pass_type` | string / null | Stored category, not a fixed enum. | | `description` | string / null | Description. | | `website` | string / null | Website. | | `logo_url` | string / null | Logo. | | `is_active` | boolean / null | Catalog active flag. | | `pass_tiers` | array | Always included on detail. | | `pass_mountains` | array | Detail with includes. | | `mountains` | array | 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](https://icecoast.us/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 | Pass not found | | 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](https://icecoast.us/docs/concepts/errors). ## Related resources - [List passes](https://icecoast.us/docs/reference/passes/list) - [Get pass by slug or UUID](https://icecoast.us/docs/reference/passes/detail) - [Mountains on a pass](https://icecoast.us/docs/reference/passes/mountains) - [Pass summary](https://icecoast.us/docs/reference/passes/summary) - [Data freshness](https://icecoast.us/docs/concepts/freshness) - [OpenAPI specification](https://icecoast.us/openapi.json){external=""} # Pass mountains (alias) `GET /api/v1/passes/slug/{slug}/mountains` Retrieve all resorts associated with a pass, including their active terrain. Use this unpaginated expansion for membership views. ## Authentication An API key is required for external integrations. Send `X-API-Key: YOUR_API_KEY` or `Authorization: Bearer YOUR_API_KEY`. [Authentication](https://icecoast.us/docs/getting-started/authentication) explains public origin and secret IP restrictions. ## Parameters ### Path parameters | Parameter | Type | Required | Default | Description | | --------- | ------ | -------- | ------- | ------------------ | | `slug` | string | Yes | — | Pass slug or UUID. | No resource-specific query parameters. Returns all linked mountains and active trails/lifts in data, plus a top-level pass object. Not paginated; list-mountain filters do not apply. Resort rows come from expanded pass membership and differ from the standard mountain projection. ## Example request ::code-group ```bash [cURL] curl -H "X-API-Key: $ICECOAST_API_KEY" 'https://api.icecoast.us/api/v1/passes/slug/ikon-pass/mountains' ``` ```js [JavaScript] const response = await fetch('https://api.icecoast.us/api/v1/passes/slug/ikon-pass/mountains', { 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/passes/slug/ikon-pass/mountains', 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"`. `cached` reports a shared payload-cache hit, not the age of resort conditions. A top-level `pass` object accompanies the mountain array. 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", "name": "Example Mountain", "slug": "example-mountain", "country": "United States", "state": "Vermont", "latitude": 44, "longitude": -72, "timezone": "America/New_York", "no_trails_reported": false, "no_lifts_reported": false, "brand_palette_dark": [], "brand_palette_dark_updated_at": null, "brand_palette": [], "brand_palette_updated_at": null, "links": { "website": "https://icecoast.us/mountain/example-mountain", "self": { "id": "/api/v1/mountains/id/00000000-0000-4000-8000-000000000001", "slug": "/api/v1/mountains/slug/example-mountain" }, "mountain_trails": { "id": "/api/v1/trails?mountain=00000000-0000-4000-8000-000000000001", "slug": "/api/v1/trails?mountain=example-mountain" }, "mountain_lifts": { "id": "/api/v1/lifts?mountain=00000000-0000-4000-8000-000000000001", "slug": "/api/v1/lifts?mountain=example-mountain" } } } ], "meta": { "version": "v1" }, "cached": false, "pass": { "id": "00000000-0000-4000-8000-000000000001", "name": "Example Pass", "slug": "example-pass", "pass_type": null, "is_active": true } } ``` ### Resource fields | Field | Type | Meaning | | ------------------------------- | ---------------------- | ------------------------------------------------------------------- | | `id` | string | Mountain UUID. | | `name` | string | Mountain name. | | `slug` | string | URL-friendly lookup identifier. | | `state` | string / null | State/province name. | | `country` | string / null | Country name. | | `city` | string / null | City/locality. | | `region` | any | Stored region classification. | | `latitude` | number / string / null | Latitude in degrees; numeric database values can be strings. | | `longitude` | number / string / null | Longitude in degrees. | | `website` | string / null | Official resort website. | | `elevation` | any | Stored elevation; no unit is guaranteed by this endpoint. | | `vertical` | any | Stored vertical; no unit is guaranteed by this endpoint. | | `timezone` | string / null | Resort timezone when recorded. | | `published` | boolean | See the data model and returned resource. | | `no_trails_reported` | boolean / null | Reporting unavailable flag, not a closed status. | | `no_lifts_reported` | boolean / null | Reporting unavailable flag, not a closed status. | | `created_at` | string / null | Metadata creation time. | | `updated_at` | string / null | Metadata update time, not a conditions timestamp. | | `media` | array | See the data model and returned resource. | | `brand_palette` | array | See the data model and returned resource. | | `brand_palette_dark` | array | See the data model and returned resource. | | `brand_palette_updated_at` | string / null | Palette timestamp. | | `brand_palette_dark_updated_at` | string / null | Dark palette timestamp. | | `brand_palette_override` | any | See the data model and returned resource. | | `brand_palette_source` | string | automatic or manual. | | `total_trails_count` | integer / string | Active trail count, added to list/search; not guaranteed on detail. | | `open_trails_count` | integer / string | Active trails with open=true on list/search. | | `trails` | array | See the data model and returned resource. | | `lifts` | array | See the data model and returned resource. | | `passes` | array | See the data model and returned resource. | | `links` | object | Resource URLs. See link compatibility note in response concepts. | Record fields may be missing or null. Treat identifiers as opaque and distinguish unavailable values from confirmed false/zero. See [data semantics](https://icecoast.us/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 | Pass not found | | 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](https://icecoast.us/docs/concepts/errors). ## Related resources - [List passes](https://icecoast.us/docs/reference/passes/list) - [Get pass by slug or UUID](https://icecoast.us/docs/reference/passes/detail) - [Mountains on a pass](https://icecoast.us/docs/reference/passes/mountains) - [Pass summary](https://icecoast.us/docs/reference/passes/summary) - [Data freshness](https://icecoast.us/docs/concepts/freshness) - [OpenAPI specification](https://icecoast.us/openapi.json){external=""} # Pass summary (alias) `GET /api/v1/passes/slug/{slug}/summary` Retrieve compact pass identity and legacy membership counts. These counts do not establish current verified operational availability. ## Authentication An API key is required for external integrations. Send `X-API-Key: YOUR_API_KEY` or `Authorization: Bearer YOUR_API_KEY`. [Authentication](https://icecoast.us/docs/getting-started/authentication) explains public origin and secret IP restrictions. ## Parameters ### Path parameters | Parameter | Type | Required | Default | Description | | --------- | ------ | -------- | ------- | ------------------ | | `slug` | string | Yes | — | Pass slug or UUID. | No resource-specific query parameters. stats.total_resorts counts memberships; stats.open_resorts uses the legacy mountain status string exactly Open. It is not the freshness-qualified open count in /reports/overview and is not a current operational guarantee. ## Example request ::code-group ```bash [cURL] curl -H "X-API-Key: $ICECOAST_API_KEY" 'https://api.icecoast.us/api/v1/passes/slug/ikon-pass/summary' ``` ```js [JavaScript] const response = await fetch('https://api.icecoast.us/api/v1/passes/slug/ikon-pass/summary', { 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/passes/slug/ikon-pass/summary', 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", "name": "Example Pass", "slug": "example-pass", "pass_type": null, "stats": { "total_resorts": 1, "open_resorts": 0 }, "website": null, "logo_url": null }, "meta": { "version": "v1" } } ``` ### Resource fields | Field | Type | Meaning | | ----------- | ------------- | ------------------ | | `id` | string | Pass UUID. | | `name` | string | Name. | | `slug` | string | Slug. | | `pass_type` | string / null | Category. | | `stats` | object | Membership counts. | | `website` | string / null | Website. | | `logo_url` | string / null | Logo. | Record fields may be missing or null. Treat identifiers as opaque and distinguish unavailable values from confirmed false/zero. See [data semantics](https://icecoast.us/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 | Pass not found | | 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](https://icecoast.us/docs/concepts/errors). ## Related resources - [List passes](https://icecoast.us/docs/reference/passes/list) - [Get pass by slug or UUID](https://icecoast.us/docs/reference/passes/detail) - [Mountains on a pass](https://icecoast.us/docs/reference/passes/mountains) - [Pass summary](https://icecoast.us/docs/reference/passes/summary) - [Data freshness](https://icecoast.us/docs/concepts/freshness) - [OpenAPI specification](https://icecoast.us/openapi.json){external=""} # 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](https://icecoast.us/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](https://icecoast.us/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](https://icecoast.us/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](https://icecoast.us/docs/concepts/errors). ## Related resources - [Get a trail change](https://icecoast.us/docs/reference/history/trail-change) - [List lift changes](https://icecoast.us/docs/reference/history/lift-changes) - [Get a lift change](https://icecoast.us/docs/reference/history/lift-change) - [Grouped operational changes](https://icecoast.us/docs/reference/history/grouped) - [Data freshness](https://icecoast.us/docs/concepts/freshness) - [OpenAPI specification](https://icecoast.us/openapi.json){external=""} # Get a trail change `GET /api/v1/trail-changes/{id}` Retrieve a recorded entity change using the identifier returned by its change collection. ## Authentication An API key is required for external integrations. Send `X-API-Key: YOUR_API_KEY` or `Authorization: Bearer YOUR_API_KEY`. [Authentication](https://icecoast.us/docs/getting-started/authentication) explains public origin and secret IP restrictions. ## Parameters ### Path parameters | Parameter | Type | Required | Default | Description | | --------- | ------ | -------- | ------- | --------------------------------- | | `id` | string | Yes | — | Change ID from the list endpoint. | No resource-specific query parameters. ## Example request ::code-group ```bash [cURL] curl -H "X-API-Key: $ICECOAST_API_KEY" 'https://api.icecoast.us/api/v1/trail-changes/123' ``` ```js [JavaScript] const response = await fetch('https://api.icecoast.us/api/v1/trail-changes/123', { 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/123', 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": 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" } } ``` ### 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](https://icecoast.us/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 | Trail change not found | | 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](https://icecoast.us/docs/concepts/errors). ## Related resources - [List trail changes](https://icecoast.us/docs/reference/history/trail-changes) - [List lift changes](https://icecoast.us/docs/reference/history/lift-changes) - [Get a lift change](https://icecoast.us/docs/reference/history/lift-change) - [Grouped operational changes](https://icecoast.us/docs/reference/history/grouped) - [Data freshness](https://icecoast.us/docs/concepts/freshness) - [OpenAPI specification](https://icecoast.us/openapi.json){external=""} # List lift changes `GET /api/v1/lift-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](https://icecoast.us/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. | | `lift_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`, `lift_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/lift-changes?limit=2' ``` ```js [JavaScript] const response = await fetch('https://api.icecoast.us/api/v1/lift-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/lift-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](https://icecoast.us/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", "zone": "Main", "fields": { "open": { "from": false, "to": true } }, "run_id": null, "source": "example", "created_at": "2026-12-04T12:00:00.000Z", "lift_name": "Example Chair" } ], "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](https://icecoast.us/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](https://icecoast.us/docs/concepts/errors). ## Related resources - [List trail changes](https://icecoast.us/docs/reference/history/trail-changes) - [Get a trail change](https://icecoast.us/docs/reference/history/trail-change) - [Get a lift change](https://icecoast.us/docs/reference/history/lift-change) - [Grouped operational changes](https://icecoast.us/docs/reference/history/grouped) - [Data freshness](https://icecoast.us/docs/concepts/freshness) - [OpenAPI specification](https://icecoast.us/openapi.json){external=""} # Get a lift change `GET /api/v1/lift-changes/{id}` Retrieve a recorded entity change using the identifier returned by its change collection. ## Authentication An API key is required for external integrations. Send `X-API-Key: YOUR_API_KEY` or `Authorization: Bearer YOUR_API_KEY`. [Authentication](https://icecoast.us/docs/getting-started/authentication) explains public origin and secret IP restrictions. ## Parameters ### Path parameters | Parameter | Type | Required | Default | Description | | --------- | ------ | -------- | ------- | --------------------------------- | | `id` | string | Yes | — | Change ID from the list endpoint. | No resource-specific query parameters. ## Example request ::code-group ```bash [cURL] curl -H "X-API-Key: $ICECOAST_API_KEY" 'https://api.icecoast.us/api/v1/lift-changes/123' ``` ```js [JavaScript] const response = await fetch('https://api.icecoast.us/api/v1/lift-changes/123', { 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/lift-changes/123', 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": 123, "mountain": "00000000-0000-4000-8000-000000000001", "zone": "Main", "fields": { "open": { "from": false, "to": true } }, "run_id": null, "source": "example", "created_at": "2026-12-04T12:00:00.000Z", "lift_name": "Example Chair" }, "meta": { "version": "v1" } } ``` ### 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](https://icecoast.us/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 | Lift change not found | | 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](https://icecoast.us/docs/concepts/errors). ## Related resources - [List trail changes](https://icecoast.us/docs/reference/history/trail-changes) - [Get a trail change](https://icecoast.us/docs/reference/history/trail-change) - [List lift changes](https://icecoast.us/docs/reference/history/lift-changes) - [Grouped operational changes](https://icecoast.us/docs/reference/history/grouped) - [Data freshness](https://icecoast.us/docs/concepts/freshness) - [OpenAPI specification](https://icecoast.us/openapi.json){external=""} # Grouped operational changes `GET /api/v1/changes` Retrieve recorded open/groomed changes grouped by ingestion run or timestamp. Use this for change activity views, not historical state reconstruction. ## Authentication An API key is required for external integrations. Send `X-API-Key: YOUR_API_KEY` or `Authorization: Bearer YOUR_API_KEY`. [Authentication](https://icecoast.us/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 match. | | `limit` | integer | No | `100` | Maximum records; send a positive integer. | | `offset` | integer | No | `0` | Records to skip; send a nonnegative integer. | Only open/groomed changes are included; other changed fields are stripped. Flat changes are paged by created_at descending before grouping by run_id (timestamp fallback). meta.total/count refer to flat records, not groups. Groups may cross page boundaries. This cannot reconstruct complete historical snapshots. ## Example request ::code-group ```bash [cURL] curl -H "X-API-Key: $ICECOAST_API_KEY" 'https://api.icecoast.us/api/v1/changes?limit=2' ``` ```js [JavaScript] const response = await fetch('https://api.icecoast.us/api/v1/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/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](https://icecoast.us/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": "2026-12-04T12:00:00.000Z", "run_id": null, "mountain": "00000000-0000-4000-8000-000000000001", "created_at": "2026-12-04T12:00:00.000Z", "changes": [] } ], "meta": { "version": "v1", "total": 1, "limit": 100, "offset": 0, "count": 1, "hasMore": false, "links": { "next": null, "prev": null } } } ``` ### Resource fields | Field | Type | Meaning | | ------------ | ------------- | ----------------------------------------- | | `id` | string | Run ID or timestamp. | | `run_id` | string / null | Run ID. | | `created_at` | string | Timestamp. | | `mountain` | string | Mountain UUID. | | `changes` | array | 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](https://icecoast.us/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](https://icecoast.us/docs/concepts/errors). ## Related resources - [List trail changes](https://icecoast.us/docs/reference/history/trail-changes) - [Get a trail change](https://icecoast.us/docs/reference/history/trail-change) - [List lift changes](https://icecoast.us/docs/reference/history/lift-changes) - [Get a lift change](https://icecoast.us/docs/reference/history/lift-change) - [Data freshness](https://icecoast.us/docs/concepts/freshness) - [OpenAPI specification](https://icecoast.us/openapi.json){external=""} # Current alpine overview `GET /api/v1/reports/overview` Retrieve a freshness-qualified US/Canada alpine reporting overview, with geographic summaries, difficulty groups and resort rankings. ## Authentication No API key is required. ## Parameters ### Query parameters | Parameter | Type | Required | Default | Description | | ------------ | ------- | -------- | ------- | ------------------------------------------------------- | | `country` | string | No | — | Supported reporting country. Accepted: `US`, `CA` | | `state` | string | No | — | Case-insensitive state name/code. Max length 100 | | `rank_limit` | integer | No | `5` | Entries per ranking. Min 1; Max 20 | | `min_trails` | integer | No | `20` | Minimum trails for availability ranking. Min 1; Max 500 | Reporting scope is US/Canada alpine resorts, not the global catalog. data.totals is global and not narrowed by country/state; data.tracked/summary follow the selected overview scope. Only complete known active rosters with accepted, fresh, healthy reporting contribute operational totals. meta.scope and meta.policy explain policy. Cache lasts at most 60 seconds, reduced at freshness expiry. Unknown/unclassified resorts are not counted as closed. ## Example request ::code-group ```bash [cURL] curl 'https://api.icecoast.us/api/v1/reports/overview?country=US&rank_limit=5' ``` ```js [JavaScript] const response = await fetch( 'https://api.icecoast.us/api/v1/reports/overview?country=US&rank_limit=5' ); 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/reports/overview?country=US&rank_limit=5', timeout=30, ) response.raise_for_status() print(response.json()) ``` :: ## 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": { "summary": { "mountains": { "total": 0, "alpine_classified": 0, "unclassified": 0, "reporting": 0, "open": 0, "closed": 0, "unknown": 0 }, "trails": { "total": 0, "open": 0, "closed": 0, "unknown": 0, "availability_percent": null }, "lifts": { "total": 0, "open": 0, "closed": 0, "unknown": 0, "availability_percent": null } }, "tracked": { "mountains": 0, "trails": 0, "lifts": 0 }, "recent_updates": [], "difficulty": [ { "key": "beginner", "label": "Beginner", "ratings": ["green"], "total": 0, "open": 0, "availability_percent": null }, { "key": "intermediate", "label": "Intermediate", "ratings": ["blue", "double blue"], "total": 0, "open": 0, "availability_percent": null }, { "key": "advanced", "label": "Advanced", "ratings": ["black"], "total": 0, "open": 0, "availability_percent": null }, { "key": "expert", "label": "Expert", "ratings": ["double black", "triple black"], "total": 0, "open": 0, "availability_percent": null }, { "key": "terrain_park", "label": "Terrain park", "ratings": ["terrain park"], "total": 0, "open": 0, "availability_percent": null }, { "key": "unknown", "label": "Unclassified", "ratings": [], "total": 0, "open": 0, "availability_percent": null } ], "rankings": { "open_trails": [], "trail_availability": [], "open_lifts": [], "beginner_terrain": [], "expert_terrain": [] }, "geography": [], "totals": { "mountains": 0, "trails": 0, "lifts": 0 } }, "meta": { "version": "v1" } } ``` ### Resource fields | Field | Type | Meaning | | ---------------- | ------ | ----------------------------------------- | | `summary` | object | See overview field guide. | | `tracked` | object | See overview field guide. | | `rankings` | object | See overview field guide. | | `totals` | object | See overview field guide. | | `difficulty` | array | See the data model and returned resource. | | `geography` | array | See the data model and returned resource. | | `recent_updates` | array | See the data model and returned resource. | See [overview semantics](https://icecoast.us/docs/concepts/overview) for the definitions of each aggregate section. Record fields may be missing or null. Treat identifiers as opaque and distinguish unavailable values from confirmed false/zero. See [data semantics](https://icecoast.us/docs/concepts/data-model). ## Errors | HTTP status | Meaning | | ----------- | ------------------------------------------- | | 400 | Invalid request parameters where validated. | | 500 | The resource could not be read. | 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](https://icecoast.us/docs/concepts/errors). ## Related resources - [Top open mountains](https://icecoast.us/docs/reference/reports/top-open) - [Top open mountains in a region](https://icecoast.us/docs/reference/reports/region-top-open) - [Records changed today](https://icecoast.us/docs/reference/reports/changed-today) - [Data freshness](https://icecoast.us/docs/concepts/freshness) - [OpenAPI specification](https://icecoast.us/openapi.json){external=""} # Top open mountains `GET /api/v1/reports/summaries/top-open` Retrieve the legacy top ten published mountains by stored-trail open percentage. ## Authentication An API key is required for external integrations. Send `X-API-Key: YOUR_API_KEY` or `Authorization: Bearer YOUR_API_KEY`. [Authentication](https://icecoast.us/docs/getting-started/authentication) explains public origin and secret IP restrictions. ## Parameters No resource-specific query parameters. Legacy top-10 ranking of published mountains by percentage of stored trails with open=true. Includes stored trail rows without overview freshness/active-roster checks. Prefer overview rankings for current dashboards. ## Example request ::code-group ```bash [cURL] curl -H "X-API-Key: $ICECOAST_API_KEY" 'https://api.icecoast.us/api/v1/reports/summaries/top-open' ``` ```js [JavaScript] const response = await fetch('https://api.icecoast.us/api/v1/reports/summaries/top-open', { 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/reports/summaries/top-open', 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", "name": "Example Mountain", "slug": "example-mountain", "total_trails": 10, "open_trails": 5, "percent_open": 50 } ], "meta": { "version": "v1" } } ``` ### Resource fields | Field | Type | Meaning | | -------------- | ------- | ----------------------------------------- | | `id` | string | Mountain UUID. | | `name` | string | Name. | | `slug` | string | Slug. | | `total_trails` | integer | See the data model and returned resource. | | `open_trails` | integer | See the data model and returned resource. | | `percent_open` | number | 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](https://icecoast.us/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](https://icecoast.us/docs/concepts/errors). ## Related resources - [Current alpine overview](https://icecoast.us/docs/reference/reports/overview) - [Top open mountains in a region](https://icecoast.us/docs/reference/reports/region-top-open) - [Records changed today](https://icecoast.us/docs/reference/reports/changed-today) - [Data freshness](https://icecoast.us/docs/concepts/freshness) - [OpenAPI specification](https://icecoast.us/openapi.json){external=""} # Top open mountains in a region `GET /api/v1/reports/regions/{slug}/top-open` Retrieve the legacy top five mountains in a matching region by stored-trail open percentage. ## Authentication An API key is required for external integrations. Send `X-API-Key: YOUR_API_KEY` or `Authorization: Bearer YOUR_API_KEY`. [Authentication](https://icecoast.us/docs/getting-started/authentication) explains public origin and secret IP restrictions. ## Parameters ### Path parameters | Parameter | Type | Required | Default | Description | | --------- | ------ | -------- | ------- | -------------------------------------------------------------------------------------- | | `slug` | string | Yes | — | Region label or basic hyphenated form; only the first hyphen is replaced with a space. | No resource-specific query parameters. At most five mountains ranked by stored-trail open percentage. Missing region returns an empty array. This legacy endpoint does not enforce overview published/freshness/active-roster policies. ## Example request ::code-group ```bash [cURL] curl -H "X-API-Key: $ICECOAST_API_KEY" 'https://api.icecoast.us/api/v1/reports/regions/new-england/top-open' ``` ```js [JavaScript] const response = await fetch( 'https://api.icecoast.us/api/v1/reports/regions/new-england/top-open', { 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/reports/regions/new-england/top-open', 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", "name": "Example Mountain", "slug": "example-mountain", "total_trails": 10, "open_trails": 5, "percent_open": 50 } ], "meta": { "version": "v1" } } ``` ### Resource fields | Field | Type | Meaning | | -------------- | ------- | ----------------------------------------- | | `id` | string | Mountain UUID. | | `name` | string | Name. | | `slug` | string | Slug. | | `total_trails` | integer | See the data model and returned resource. | | `open_trails` | integer | See the data model and returned resource. | | `percent_open` | number | 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](https://icecoast.us/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](https://icecoast.us/docs/concepts/errors). ## Related resources - [Current alpine overview](https://icecoast.us/docs/reference/reports/overview) - [Top open mountains](https://icecoast.us/docs/reference/reports/top-open) - [Records changed today](https://icecoast.us/docs/reference/reports/changed-today) - [Data freshness](https://icecoast.us/docs/concepts/freshness) - [OpenAPI specification](https://icecoast.us/openapi.json){external=""} # Records changed today `GET /api/v1/reports/summaries/changed-today` Retrieve counts of catalog records updated since API-process local midnight, plus a small set of matching mountains. ## Authentication An API key is required for external integrations. Send `X-API-Key: YOUR_API_KEY` or `Authorization: Bearer YOUR_API_KEY`. [Authentication](https://icecoast.us/docs/getting-started/authentication) explains public origin and secret IP restrictions. ## Parameters No resource-specific query parameters. Counts updated_at since midnight in the API process timezone, which is not guaranteed UTC or resort-local. This is a record-update count, not necessarily an operational change. recent_mountains is at most five records with no guaranteed ordering. ## Example request ::code-group ```bash [cURL] curl -H "X-API-Key: $ICECOAST_API_KEY" 'https://api.icecoast.us/api/v1/reports/summaries/changed-today' ``` ```js [JavaScript] const response = await fetch('https://api.icecoast.us/api/v1/reports/summaries/changed-today', { 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/reports/summaries/changed-today', 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": { "mountains": 0, "trails": 0, "lifts": 0, "recent_mountains": [] }, "meta": { "version": "v1" } } ``` ### Resource fields | Field | Type | Meaning | | ------------------ | ------- | ----------------------------------------- | | `mountains` | integer | See the data model and returned resource. | | `trails` | integer | See the data model and returned resource. | | `lifts` | integer | See the data model and returned resource. | | `recent_mountains` | array | 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](https://icecoast.us/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](https://icecoast.us/docs/concepts/errors). ## Related resources - [Current alpine overview](https://icecoast.us/docs/reference/reports/overview) - [Top open mountains](https://icecoast.us/docs/reference/reports/top-open) - [Top open mountains in a region](https://icecoast.us/docs/reference/reports/region-top-open) - [Data freshness](https://icecoast.us/docs/concepts/freshness) - [OpenAPI specification](https://icecoast.us/openapi.json){external=""} # Trail geometry bounds `GET /api/v1/geo/bounds` Retrieve available GeoJSON features whose bounding boxes intersect a viewport. Choose trails, areas or combined features and adjust geometry detail for your map. ## Authentication No API key is required. ## Parameters ### Query parameters | Parameter | Type | Required | Default | Description | | ------------ | ------ | -------- | ------- | ---------------------------------------------------------------------------------------------------- | | `ne_lng` | number | Yes | — | Northeast longitude in degrees. | | `ne_lat` | number | Yes | — | Northeast latitude in degrees. | | `sw_lng` | number | Yes | — | Southwest longitude in degrees. | | `sw_lat` | number | Yes | — | Southwest latitude in degrees. | | `complexity` | number | No | `1` | Geometry detail ratio: 1 preserves original; smaller positive values simplify. Zero falls back to 1. | Returns GeoJSON directly, without success/data; global hooks can add meta.version. Coordinates use longitude, latitude order. Bounds intersect feature bounding boxes, so geometry can extend beyond the viewport. /bounds and /bounds/trail alias /bounds/trails. Dataset features are not guaranteed to share operational entity IDs. Geographic completeness and crossing-antimeridian handling are not guaranteed. Missing boundary parameters return 400. ## Example request ::code-group ```bash [cURL] curl 'https://api.icecoast.us/api/v1/geo/bounds?ne_lng=-72&ne_lat=45&sw_lng=-74&sw_lat=43&complexity=1' ``` ```js [JavaScript] const response = await fetch( 'https://api.icecoast.us/api/v1/geo/bounds?ne_lng=-72&ne_lat=45&sw_lng=-74&sw_lat=43&complexity=1' ); 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/geo/bounds?ne_lng=-72&ne_lat=45&sw_lng=-74&sw_lat=43&complexity=1', timeout=30, ) response.raise_for_status() print(response.json()) ``` :: ## Response The successful response is a GeoJSON FeatureCollection directly. 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 { "type": "FeatureCollection", "features": [], "meta": { "version": "v1" } } ``` ### Resource fields | Field | Type | Meaning | | ---------- | ------ | ----------------------------------------- | | `type` | any | See the data model and returned resource. | | `features` | array | See the data model and returned resource. | | `meta` | object | Global API metadata. | Record fields may be missing or null. Treat identifiers as opaque and distinguish unavailable values from confirmed false/zero. See [data semantics](https://icecoast.us/docs/concepts/data-model). ## Errors | HTTP status | Meaning | | ----------- | ------------------------------------------- | | 400 | Invalid request parameters where validated. | | 500 | The resource could not be read. | 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](https://icecoast.us/docs/concepts/errors). ## Related resources - [Trail geometry](https://icecoast.us/docs/reference/geography/trails) - [Trail geometry alias](https://icecoast.us/docs/reference/geography/trail-alias) - [Area geometry](https://icecoast.us/docs/reference/geography/areas) - [Combined geographic features](https://icecoast.us/docs/reference/geography/combined) - [Data freshness](https://icecoast.us/docs/concepts/freshness) - [OpenAPI specification](https://icecoast.us/openapi.json){external=""} # Trail geometry `GET /api/v1/geo/bounds/trails` Retrieve available GeoJSON features whose bounding boxes intersect a viewport. Choose trails, areas or combined features and adjust geometry detail for your map. ## Authentication No API key is required. ## Parameters ### Query parameters | Parameter | Type | Required | Default | Description | | ------------ | ------ | -------- | ------- | ---------------------------------------------------------------------------------------------------- | | `ne_lng` | number | Yes | — | Northeast longitude in degrees. | | `ne_lat` | number | Yes | — | Northeast latitude in degrees. | | `sw_lng` | number | Yes | — | Southwest longitude in degrees. | | `sw_lat` | number | Yes | — | Southwest latitude in degrees. | | `complexity` | number | No | `1` | Geometry detail ratio: 1 preserves original; smaller positive values simplify. Zero falls back to 1. | Returns GeoJSON directly, without success/data; global hooks can add meta.version. Coordinates use longitude, latitude order. Bounds intersect feature bounding boxes, so geometry can extend beyond the viewport. /bounds and /bounds/trail alias /bounds/trails. Dataset features are not guaranteed to share operational entity IDs. Geographic completeness and crossing-antimeridian handling are not guaranteed. Missing boundary parameters return 400. ## Example request ::code-group ```bash [cURL] curl 'https://api.icecoast.us/api/v1/geo/bounds/trails?ne_lng=-72&ne_lat=45&sw_lng=-74&sw_lat=43&complexity=1' ``` ```js [JavaScript] const response = await fetch( 'https://api.icecoast.us/api/v1/geo/bounds/trails?ne_lng=-72&ne_lat=45&sw_lng=-74&sw_lat=43&complexity=1' ); 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/geo/bounds/trails?ne_lng=-72&ne_lat=45&sw_lng=-74&sw_lat=43&complexity=1', timeout=30, ) response.raise_for_status() print(response.json()) ``` :: ## Response The successful response is a GeoJSON FeatureCollection directly. 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 { "type": "FeatureCollection", "features": [], "meta": { "version": "v1" } } ``` ### Resource fields | Field | Type | Meaning | | ---------- | ------ | ----------------------------------------- | | `type` | any | See the data model and returned resource. | | `features` | array | See the data model and returned resource. | | `meta` | object | Global API metadata. | Record fields may be missing or null. Treat identifiers as opaque and distinguish unavailable values from confirmed false/zero. See [data semantics](https://icecoast.us/docs/concepts/data-model). ## Errors | HTTP status | Meaning | | ----------- | ------------------------------------------- | | 400 | Invalid request parameters where validated. | | 500 | The resource could not be read. | 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](https://icecoast.us/docs/concepts/errors). ## Related resources - [Trail geometry bounds](https://icecoast.us/docs/reference/geography/bounds) - [Trail geometry alias](https://icecoast.us/docs/reference/geography/trail-alias) - [Area geometry](https://icecoast.us/docs/reference/geography/areas) - [Combined geographic features](https://icecoast.us/docs/reference/geography/combined) - [Data freshness](https://icecoast.us/docs/concepts/freshness) - [OpenAPI specification](https://icecoast.us/openapi.json){external=""} # Trail geometry alias `GET /api/v1/geo/bounds/trail` Retrieve available GeoJSON features whose bounding boxes intersect a viewport. Choose trails, areas or combined features and adjust geometry detail for your map. ## Authentication No API key is required. ## Parameters ### Query parameters | Parameter | Type | Required | Default | Description | | ------------ | ------ | -------- | ------- | ---------------------------------------------------------------------------------------------------- | | `ne_lng` | number | Yes | — | Northeast longitude in degrees. | | `ne_lat` | number | Yes | — | Northeast latitude in degrees. | | `sw_lng` | number | Yes | — | Southwest longitude in degrees. | | `sw_lat` | number | Yes | — | Southwest latitude in degrees. | | `complexity` | number | No | `1` | Geometry detail ratio: 1 preserves original; smaller positive values simplify. Zero falls back to 1. | Returns GeoJSON directly, without success/data; global hooks can add meta.version. Coordinates use longitude, latitude order. Bounds intersect feature bounding boxes, so geometry can extend beyond the viewport. /bounds and /bounds/trail alias /bounds/trails. Dataset features are not guaranteed to share operational entity IDs. Geographic completeness and crossing-antimeridian handling are not guaranteed. Missing boundary parameters return 400. ## Example request ::code-group ```bash [cURL] curl 'https://api.icecoast.us/api/v1/geo/bounds/trail?ne_lng=-72&ne_lat=45&sw_lng=-74&sw_lat=43&complexity=1' ``` ```js [JavaScript] const response = await fetch( 'https://api.icecoast.us/api/v1/geo/bounds/trail?ne_lng=-72&ne_lat=45&sw_lng=-74&sw_lat=43&complexity=1' ); 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/geo/bounds/trail?ne_lng=-72&ne_lat=45&sw_lng=-74&sw_lat=43&complexity=1', timeout=30, ) response.raise_for_status() print(response.json()) ``` :: ## Response The successful response is a GeoJSON FeatureCollection directly. 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 { "type": "FeatureCollection", "features": [], "meta": { "version": "v1" } } ``` ### Resource fields | Field | Type | Meaning | | ---------- | ------ | ----------------------------------------- | | `type` | any | See the data model and returned resource. | | `features` | array | See the data model and returned resource. | | `meta` | object | Global API metadata. | Record fields may be missing or null. Treat identifiers as opaque and distinguish unavailable values from confirmed false/zero. See [data semantics](https://icecoast.us/docs/concepts/data-model). ## Errors | HTTP status | Meaning | | ----------- | ------------------------------------------- | | 400 | Invalid request parameters where validated. | | 500 | The resource could not be read. | 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](https://icecoast.us/docs/concepts/errors). ## Related resources - [Trail geometry bounds](https://icecoast.us/docs/reference/geography/bounds) - [Trail geometry](https://icecoast.us/docs/reference/geography/trails) - [Area geometry](https://icecoast.us/docs/reference/geography/areas) - [Combined geographic features](https://icecoast.us/docs/reference/geography/combined) - [Data freshness](https://icecoast.us/docs/concepts/freshness) - [OpenAPI specification](https://icecoast.us/openapi.json){external=""} # Area geometry `GET /api/v1/geo/bounds/areas` Retrieve available GeoJSON features whose bounding boxes intersect a viewport. Choose trails, areas or combined features and adjust geometry detail for your map. ## Authentication No API key is required. ## Parameters ### Query parameters | Parameter | Type | Required | Default | Description | | ------------ | ------ | -------- | ------- | ---------------------------------------------------------------------------------------------------- | | `ne_lng` | number | Yes | — | Northeast longitude in degrees. | | `ne_lat` | number | Yes | — | Northeast latitude in degrees. | | `sw_lng` | number | Yes | — | Southwest longitude in degrees. | | `sw_lat` | number | Yes | — | Southwest latitude in degrees. | | `complexity` | number | No | `1` | Geometry detail ratio: 1 preserves original; smaller positive values simplify. Zero falls back to 1. | Returns GeoJSON directly, without success/data; global hooks can add meta.version. Coordinates use longitude, latitude order. Bounds intersect feature bounding boxes, so geometry can extend beyond the viewport. /bounds and /bounds/trail alias /bounds/trails. Dataset features are not guaranteed to share operational entity IDs. Geographic completeness and crossing-antimeridian handling are not guaranteed. Missing boundary parameters return 400. ## Example request ::code-group ```bash [cURL] curl 'https://api.icecoast.us/api/v1/geo/bounds/areas?ne_lng=-72&ne_lat=45&sw_lng=-74&sw_lat=43&complexity=1' ``` ```js [JavaScript] const response = await fetch( 'https://api.icecoast.us/api/v1/geo/bounds/areas?ne_lng=-72&ne_lat=45&sw_lng=-74&sw_lat=43&complexity=1' ); 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/geo/bounds/areas?ne_lng=-72&ne_lat=45&sw_lng=-74&sw_lat=43&complexity=1', timeout=30, ) response.raise_for_status() print(response.json()) ``` :: ## Response The successful response is a GeoJSON FeatureCollection directly. 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 { "type": "FeatureCollection", "features": [], "meta": { "version": "v1" } } ``` ### Resource fields | Field | Type | Meaning | | ---------- | ------ | ----------------------------------------- | | `type` | any | See the data model and returned resource. | | `features` | array | See the data model and returned resource. | | `meta` | object | Global API metadata. | Record fields may be missing or null. Treat identifiers as opaque and distinguish unavailable values from confirmed false/zero. See [data semantics](https://icecoast.us/docs/concepts/data-model). ## Errors | HTTP status | Meaning | | ----------- | ------------------------------------------- | | 400 | Invalid request parameters where validated. | | 500 | The resource could not be read. | 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](https://icecoast.us/docs/concepts/errors). ## Related resources - [Trail geometry bounds](https://icecoast.us/docs/reference/geography/bounds) - [Trail geometry](https://icecoast.us/docs/reference/geography/trails) - [Trail geometry alias](https://icecoast.us/docs/reference/geography/trail-alias) - [Combined geographic features](https://icecoast.us/docs/reference/geography/combined) - [Data freshness](https://icecoast.us/docs/concepts/freshness) - [OpenAPI specification](https://icecoast.us/openapi.json){external=""} # Combined geographic features `GET /api/v1/geo/bounds/combined` Retrieve available GeoJSON features whose bounding boxes intersect a viewport. Choose trails, areas or combined features and adjust geometry detail for your map. ## Authentication No API key is required. ## Parameters ### Query parameters | Parameter | Type | Required | Default | Description | | ------------ | ------ | -------- | ------- | ---------------------------------------------------------------------------------------------------- | | `ne_lng` | number | Yes | — | Northeast longitude in degrees. | | `ne_lat` | number | Yes | — | Northeast latitude in degrees. | | `sw_lng` | number | Yes | — | Southwest longitude in degrees. | | `sw_lat` | number | Yes | — | Southwest latitude in degrees. | | `complexity` | number | No | `1` | Geometry detail ratio: 1 preserves original; smaller positive values simplify. Zero falls back to 1. | Returns GeoJSON directly, without success/data; global hooks can add meta.version. Coordinates use longitude, latitude order. Bounds intersect feature bounding boxes, so geometry can extend beyond the viewport. /bounds and /bounds/trail alias /bounds/trails. Dataset features are not guaranteed to share operational entity IDs. Geographic completeness and crossing-antimeridian handling are not guaranteed. Missing boundary parameters return 400. ## Example request ::code-group ```bash [cURL] curl 'https://api.icecoast.us/api/v1/geo/bounds/combined?ne_lng=-72&ne_lat=45&sw_lng=-74&sw_lat=43&complexity=1' ``` ```js [JavaScript] const response = await fetch( 'https://api.icecoast.us/api/v1/geo/bounds/combined?ne_lng=-72&ne_lat=45&sw_lng=-74&sw_lat=43&complexity=1' ); 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/geo/bounds/combined?ne_lng=-72&ne_lat=45&sw_lng=-74&sw_lat=43&complexity=1', timeout=30, ) response.raise_for_status() print(response.json()) ``` :: ## Response The successful response is a GeoJSON FeatureCollection directly. 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 { "type": "FeatureCollection", "features": [], "meta": { "version": "v1" } } ``` ### Resource fields | Field | Type | Meaning | | ---------- | ------ | ----------------------------------------- | | `type` | any | See the data model and returned resource. | | `features` | array | See the data model and returned resource. | | `meta` | object | Global API metadata. | Record fields may be missing or null. Treat identifiers as opaque and distinguish unavailable values from confirmed false/zero. See [data semantics](https://icecoast.us/docs/concepts/data-model). ## Errors | HTTP status | Meaning | | ----------- | ------------------------------------------- | | 400 | Invalid request parameters where validated. | | 500 | The resource could not be read. | 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](https://icecoast.us/docs/concepts/errors). ## Related resources - [Trail geometry bounds](https://icecoast.us/docs/reference/geography/bounds) - [Trail geometry](https://icecoast.us/docs/reference/geography/trails) - [Trail geometry alias](https://icecoast.us/docs/reference/geography/trail-alias) - [Area geometry](https://icecoast.us/docs/reference/geography/areas) - [Data freshness](https://icecoast.us/docs/concepts/freshness) - [OpenAPI specification](https://icecoast.us/openapi.json){external=""} # Custom area features `GET /api/v1/geo/custom-areas` Retrieve the available custom-area GeoJSON dataset without viewport filtering. ## Authentication No API key is required. ## Parameters No resource-specific query parameters. Returns GeoJSON directly, without success/data; global hooks can add meta.version. Coordinates use longitude, latitude order. Bounds intersect feature bounding boxes, so geometry can extend beyond the viewport. /bounds and /bounds/trail alias /bounds/trails. Dataset features are not guaranteed to share operational entity IDs. Geographic completeness and crossing-antimeridian handling are not guaranteed. Missing boundary parameters return 400. ## Example request ::code-group ```bash [cURL] curl 'https://api.icecoast.us/api/v1/geo/custom-areas' ``` ```js [JavaScript] const response = await fetch('https://api.icecoast.us/api/v1/geo/custom-areas'); 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/geo/custom-areas', timeout=30, ) response.raise_for_status() print(response.json()) ``` :: ## Response The successful response is a GeoJSON FeatureCollection directly. 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 { "type": "FeatureCollection", "features": [], "meta": { "version": "v1" } } ``` ### Resource fields | Field | Type | Meaning | | ---------- | ------ | ----------------------------------------- | | `type` | any | See the data model and returned resource. | | `features` | array | See the data model and returned resource. | | `meta` | object | Global API metadata. | Record fields may be missing or null. Treat identifiers as opaque and distinguish unavailable values from confirmed false/zero. See [data semantics](https://icecoast.us/docs/concepts/data-model). ## Errors | HTTP status | Meaning | | ----------- | ------------------------------------------- | | 400 | Invalid request parameters where validated. | | 500 | The resource could not be read. | 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](https://icecoast.us/docs/concepts/errors). ## Related resources - [Trail geometry bounds](https://icecoast.us/docs/reference/geography/bounds) - [Trail geometry](https://icecoast.us/docs/reference/geography/trails) - [Trail geometry alias](https://icecoast.us/docs/reference/geography/trail-alias) - [Area geometry](https://icecoast.us/docs/reference/geography/areas) - [Data freshness](https://icecoast.us/docs/concepts/freshness) - [OpenAPI specification](https://icecoast.us/openapi.json){external=""} # Custom area bounds `GET /api/v1/geo/custom-areas/bounds` Retrieve available GeoJSON features whose bounding boxes intersect a viewport. Choose trails, areas or combined features and adjust geometry detail for your map. ## Authentication No API key is required. ## Parameters ### Query parameters | Parameter | Type | Required | Default | Description | | ------------ | ------ | -------- | ------- | ---------------------------------------------------------------------------------------------------- | | `ne_lng` | number | Yes | — | Northeast longitude in degrees. | | `ne_lat` | number | Yes | — | Northeast latitude in degrees. | | `sw_lng` | number | Yes | — | Southwest longitude in degrees. | | `sw_lat` | number | Yes | — | Southwest latitude in degrees. | | `complexity` | number | No | `1` | Geometry detail ratio: 1 preserves original; smaller positive values simplify. Zero falls back to 1. | Returns GeoJSON directly, without success/data; global hooks can add meta.version. Coordinates use longitude, latitude order. Bounds intersect feature bounding boxes, so geometry can extend beyond the viewport. /bounds and /bounds/trail alias /bounds/trails. Dataset features are not guaranteed to share operational entity IDs. Geographic completeness and crossing-antimeridian handling are not guaranteed. Missing boundary parameters return 400. ## Example request ::code-group ```bash [cURL] curl 'https://api.icecoast.us/api/v1/geo/custom-areas/bounds?ne_lng=-72&ne_lat=45&sw_lng=-74&sw_lat=43&complexity=1' ``` ```js [JavaScript] const response = await fetch( 'https://api.icecoast.us/api/v1/geo/custom-areas/bounds?ne_lng=-72&ne_lat=45&sw_lng=-74&sw_lat=43&complexity=1' ); 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/geo/custom-areas/bounds?ne_lng=-72&ne_lat=45&sw_lng=-74&sw_lat=43&complexity=1', timeout=30, ) response.raise_for_status() print(response.json()) ``` :: ## Response The successful response is a GeoJSON FeatureCollection directly. 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 { "type": "FeatureCollection", "features": [], "meta": { "version": "v1" } } ``` ### Resource fields | Field | Type | Meaning | | ---------- | ------ | ----------------------------------------- | | `type` | any | See the data model and returned resource. | | `features` | array | See the data model and returned resource. | | `meta` | object | Global API metadata. | Record fields may be missing or null. Treat identifiers as opaque and distinguish unavailable values from confirmed false/zero. See [data semantics](https://icecoast.us/docs/concepts/data-model). ## Errors | HTTP status | Meaning | | ----------- | ------------------------------------------- | | 400 | Invalid request parameters where validated. | | 500 | The resource could not be read. | 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](https://icecoast.us/docs/concepts/errors). ## Related resources - [Trail geometry bounds](https://icecoast.us/docs/reference/geography/bounds) - [Trail geometry](https://icecoast.us/docs/reference/geography/trails) - [Trail geometry alias](https://icecoast.us/docs/reference/geography/trail-alias) - [Area geometry](https://icecoast.us/docs/reference/geography/areas) - [Data freshness](https://icecoast.us/docs/concepts/freshness) - [OpenAPI specification](https://icecoast.us/openapi.json){external=""} # Data verification summary `GET /api/v1/status/summary` Retrieve public aggregate data-verification health, reliability and geographic facets. ## Authentication No API key is required. ## Parameters No resource-specific query parameters. Anonymous. These endpoints share an in-process per-IP allowance of 60 requests per 60 seconds; 429 includes Retry-After. Successful responses advertise public Cache-Control of at most 30 seconds. Health is data verification, not skiing availability. Rates are null until at least five relevant samples exist within seven days. Mountain directory includes a 90-day UTC tracker; detail adds up to 20 recent executions and 20 publication events, not raw logs. Sources returns sanitized hostnames only. ## Example request ::code-group ```bash [cURL] curl 'https://api.icecoast.us/api/v1/status/summary' ``` ```js [JavaScript] const response = await fetch('https://api.icecoast.us/api/v1/status/summary'); 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/status/summary', timeout=30, ) response.raise_for_status() print(response.json()) ``` :: ## 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": { "overall_health": "untested", "configured_sources": 1, "configured_mountains": 1, "source_health": { "untested": 1 }, "mountain_health": { "untested": 1 }, "fresh_mountains": 0, "retaining_verified_conditions": 0 }, "meta": { "version": "v1" } } ``` ### Resource fields | Field | Type | Meaning | | ------------------------------- | ------- | ----------------------------------------- | | `overall_health` | string | See the data model and returned resource. | | `configured_sources` | integer | See the data model and returned resource. | | `configured_mountains` | integer | See the data model and returned resource. | | `source_health` | object | Counts by health. | | `mountain_health` | object | Counts by health. | | `reliability` | object | Execution/publication counts and rates. | | `fresh_mountains` | integer | See the data model and returned resource. | | `retaining_verified_conditions` | integer | See the data model and returned resource. | | `facets` | object | Geographic facet values. | | `recent_executions` | array | 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](https://icecoast.us/docs/concepts/data-model). ## Errors | HTTP status | Meaning | | ----------- | ------------------------------------------------------- | | 400 | Invalid request parameters where validated. | | 429 | Per-IP request allowance exceeded; inspect Retry-After. | | 503 | Verification status 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](https://icecoast.us/docs/concepts/errors). ## Related resources - [Reporting source directory](https://icecoast.us/docs/reference/status/sources) - [Mountain verification directory](https://icecoast.us/docs/reference/status/mountains) - [Mountain verification status](https://icecoast.us/docs/reference/status/detail) - [Data freshness](https://icecoast.us/docs/concepts/freshness) - [OpenAPI specification](https://icecoast.us/openapi.json){external=""} # Reporting source directory `GET /api/v1/status/sources` Discover sanitized public source hostnames associated with reporting mountains. This directory does not expose source request URLs or credentials. ## Authentication No API key is required. ## Parameters No resource-specific query parameters. Anonymous. These endpoints share an in-process per-IP allowance of 60 requests per 60 seconds; 429 includes Retry-After. Successful responses advertise public Cache-Control of at most 30 seconds. Health is data verification, not skiing availability. Rates are null until at least five relevant samples exist within seven days. Mountain directory includes a 90-day UTC tracker; detail adds up to 20 recent executions and 20 publication events, not raw logs. Sources returns sanitized hostnames only. ## Example request ::code-group ```bash [cURL] curl 'https://api.icecoast.us/api/v1/status/sources' ``` ```js [JavaScript] const response = await fetch('https://api.icecoast.us/api/v1/status/sources'); 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/status/sources', timeout=30, ) response.raise_for_status() print(response.json()) ``` :: ## 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": { "name": "Example Mountain", "slug": "example-mountain", "href": "/mountains/example-mountain" }, "domains": ["example.com"] } ], "meta": { "version": "v1" } } ``` ### Resource fields | Field | Type | Meaning | | ---------- | ------ | -------------------------------------- | | `mountain` | object | Public mountain identity/branding. | | `domains` | array | Sanitized hostnames, not request URLs. | Record fields may be missing or null. Treat identifiers as opaque and distinguish unavailable values from confirmed false/zero. See [data semantics](https://icecoast.us/docs/concepts/data-model). ## Errors | HTTP status | Meaning | | ----------- | ------------------------------------------------------- | | 400 | Invalid request parameters where validated. | | 429 | Per-IP request allowance exceeded; inspect Retry-After. | | 503 | Verification status 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](https://icecoast.us/docs/concepts/errors). ## Related resources - [Data verification summary](https://icecoast.us/docs/reference/status/summary) - [Mountain verification directory](https://icecoast.us/docs/reference/status/mountains) - [Mountain verification status](https://icecoast.us/docs/reference/status/detail) - [Data freshness](https://icecoast.us/docs/concepts/freshness) - [OpenAPI specification](https://icecoast.us/openapi.json){external=""} # Mountain verification directory `GET /api/v1/status/mountains` Browse mountain data-verification records with health/geographic filters and a 90-day observation tracker. ## Authentication No API key is required. ## Parameters ### Query parameters | Parameter | Type | Required | Default | Description | | --------- | ------- | -------- | ------- | ---------------------------------------------------------------------------------------- | | `limit` | integer | No | `25` | Page size. Min 1; Max 100 | | `offset` | integer | No | `0` | Offset. Min 0; Max 10000 | | `q` | string | No | — | Case-insensitive mountain-name substring. Max length 80 | | `health` | string | No | — | Accepted: `healthy`, `degraded`, `failed`, `stale`, `disabled`, `off_season`, `untested` | | `state` | string | No | — | Exact stored state name. Max length 100 | | `region` | string | No | — | Exact region. Max length 100 | | `country` | string | No | — | Exact stored country name. Max length 100 | | `slug` | string | No | — | Exact slug. Pattern `^[A-Za-z0-9_-]{1,160}$` | Anonymous. These endpoints share an in-process per-IP allowance of 60 requests per 60 seconds; 429 includes Retry-After. Successful responses advertise public Cache-Control of at most 30 seconds. Health is data verification, not skiing availability. Rates are null until at least five relevant samples exist within seven days. Mountain directory includes a 90-day UTC tracker; detail adds up to 20 recent executions and 20 publication events, not raw logs. Sources returns sanitized hostnames only. ## Example request ::code-group ```bash [cURL] curl 'https://api.icecoast.us/api/v1/status/mountains?limit=2' ``` ```js [JavaScript] const response = await fetch('https://api.icecoast.us/api/v1/status/mountains?limit=2'); 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/status/mountains?limit=2', timeout=30, ) response.raise_for_status() print(response.json()) ``` :: ## Response Success is HTTP 200 with `success: true`, `data` and `meta.version: "v1"`. See [pagination](https://icecoast.us/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": [ { "mountain": { "name": "Example Mountain", "slug": "example-mountain", "href": "/mountains/example-mountain", "media": [], "brand_palette_dark": [], "brand_palette_dark_updated_at": null, "brand_palette": [], "brand_palette_updated_at": null, "state": null, "region": null, "country": null }, "health": "untested", "last_attempt_at": null, "last_verified_at": null, "freshness": { "age_seconds": null, "expected_interval_seconds": 3600, "stale": false }, "retaining_verified_conditions": false, "reliability": { "completed_observations": 0, "successful_executions": 0, "failed_executions": 0, "accepted_publications": 0, "rejected_publications": 0, "execution_sample_size": 0, "publication_sample_size": 0, "execution_success_percent": null, "publication_acceptance_percent": null }, "detection": { "trails": null, "lifts": null, "quality_score": null }, "explanations": [] } ], "meta": { "version": "v1", "total": 1, "limit": 25, "offset": 0, "count": 1, "hasMore": false, "links": { "next": null, "prev": null } } } ``` ### Resource fields | Field | Type | Meaning | | ------------------------------- | ------------- | ---------------------------------------------------------------------- | | `mountain` | object | Public name, slug, href, country, state, region and branding. | | `health` | string | See the data model and returned resource. | | `last_attempt_at` | string / null | Latest attempted update. | | `last_verified_at` | string / null | Latest accepted publication. | | `freshness` | object | Freshness assessment. | | `retaining_verified_conditions` | boolean | See the data model and returned resource. | | `reliability` | object | Execution/publication counts and rates; rates null below five samples. | | `detection` | object | Trail/lift completeness and optional quality score. | | `explanations` | array | See the data model and returned resource. | | `tracker` | array | See the data model and returned resource. | | `recent_executions` | array | See the data model and returned resource. | | `history` | array | 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](https://icecoast.us/docs/concepts/data-model). ## Errors | HTTP status | Meaning | | ----------- | ------------------------------------------------------- | | 400 | Invalid request parameters where validated. | | 429 | Per-IP request allowance exceeded; inspect Retry-After. | | 503 | Verification status 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](https://icecoast.us/docs/concepts/errors). ## Related resources - [Data verification summary](https://icecoast.us/docs/reference/status/summary) - [Reporting source directory](https://icecoast.us/docs/reference/status/sources) - [Mountain verification status](https://icecoast.us/docs/reference/status/detail) - [Data freshness](https://icecoast.us/docs/concepts/freshness) - [OpenAPI specification](https://icecoast.us/openapi.json){external=""} # Mountain verification status `GET /api/v1/status/mountains/{slug}` Retrieve one mountain’s data-verification status, freshness, public explanations and recent publication context. ## Authentication No API key is required. ## Parameters ### Path parameters | Parameter | Type | Required | Default | Description | | --------- | ------ | -------- | ------- | ----------------------------------------------- | | `slug` | string | Yes | — | Mountain slug. Pattern `^[A-Za-z0-9_-]{1,160}$` | No resource-specific query parameters. Anonymous. These endpoints share an in-process per-IP allowance of 60 requests per 60 seconds; 429 includes Retry-After. Successful responses advertise public Cache-Control of at most 30 seconds. Health is data verification, not skiing availability. Rates are null until at least five relevant samples exist within seven days. Mountain directory includes a 90-day UTC tracker; detail adds up to 20 recent executions and 20 publication events, not raw logs. Sources returns sanitized hostnames only. ## Example request ::code-group ```bash [cURL] curl 'https://api.icecoast.us/api/v1/status/mountains/killington' ``` ```js [JavaScript] const response = await fetch('https://api.icecoast.us/api/v1/status/mountains/killington'); 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/status/mountains/killington', timeout=30, ) response.raise_for_status() print(response.json()) ``` :: ## 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": { "name": "Example Mountain", "slug": "example-mountain", "href": "/mountains/example-mountain", "media": [], "brand_palette_dark": [], "brand_palette_dark_updated_at": null, "brand_palette": [], "brand_palette_updated_at": null, "state": null, "region": null, "country": null }, "health": "untested", "last_attempt_at": null, "last_verified_at": null, "freshness": { "age_seconds": null, "expected_interval_seconds": 3600, "stale": false }, "retaining_verified_conditions": false, "reliability": { "completed_observations": 0, "successful_executions": 0, "failed_executions": 0, "accepted_publications": 0, "rejected_publications": 0, "execution_sample_size": 0, "publication_sample_size": 0, "execution_success_percent": null, "publication_acceptance_percent": null }, "detection": { "trails": null, "lifts": null, "quality_score": null }, "explanations": [] }, "meta": { "version": "v1" } } ``` ### Resource fields | Field | Type | Meaning | | ------------------------------- | ------------- | ---------------------------------------------------------------------- | | `mountain` | object | Public name, slug, href, country, state, region and branding. | | `health` | string | See the data model and returned resource. | | `last_attempt_at` | string / null | Latest attempted update. | | `last_verified_at` | string / null | Latest accepted publication. | | `freshness` | object | Freshness assessment. | | `retaining_verified_conditions` | boolean | See the data model and returned resource. | | `reliability` | object | Execution/publication counts and rates; rates null below five samples. | | `detection` | object | Trail/lift completeness and optional quality score. | | `explanations` | array | See the data model and returned resource. | | `tracker` | array | See the data model and returned resource. | | `recent_executions` | array | See the data model and returned resource. | | `history` | array | 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](https://icecoast.us/docs/concepts/data-model). ## Errors | HTTP status | Meaning | | ----------- | ------------------------------------------------------- | | 400 | Invalid request parameters where validated. | | 404 | Mountain status not found. | | 429 | Per-IP request allowance exceeded; inspect Retry-After. | | 503 | Verification status 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](https://icecoast.us/docs/concepts/errors). ## Related resources - [Data verification summary](https://icecoast.us/docs/reference/status/summary) - [Reporting source directory](https://icecoast.us/docs/reference/status/sources) - [Mountain verification directory](https://icecoast.us/docs/reference/status/mountains) - [Data freshness](https://icecoast.us/docs/concepts/freshness) - [OpenAPI specification](https://icecoast.us/openapi.json){external=""} # Mountain XML feed directory `GET /api/v1/feeds/mountains.xml` Discover canonical aggregate XML feed URLs for available published mountains. ## Authentication No API key is required. ## Parameters No resource-specific query parameters. Aggregate-only UTF-8 XML; no individual terrain statuses or history. Canonical website feeds: {rel=""nofollow""} and [https://icecoast.us/mountains/{slug}/feed.xml](https://icecoast.us/mountains/%7Bslug%7D/feed.xml){rel=""nofollow""}. Unavailable values are omitted. Published mountains with slugs appear in the directory. Cache-Control: public, max-age=60, s-maxage=60. If-None-Match accepts ETag, weak ETag or wildcard and may return 304. Current source evidence is required for conditions; unknown roster statuses suppress open counts. Freshness: fresh, retained, stale or unavailable. ## Example request ::code-group ```bash [cURL] curl 'https://api.icecoast.us/api/v1/feeds/mountains.xml' ``` ```js [JavaScript] const response = await fetch('https://api.icecoast.us/api/v1/feeds/mountains.xml'); if (!response.ok) throw new Error(`HTTP ${response.status}`); const result = await response.text(); console.log(result); ``` ```python [Python] import os import requests response = requests.get( 'https://api.icecoast.us/api/v1/feeds/mountains.xml', timeout=30, ) response.raise_for_status() print(response.text) ``` :: ## Response The successful response has content type `application/xml; charset=utf-8`. 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. ```xml 00000000-0000-4000-8000-000000000001Example Mountainhttps://icecoast.us/mountains/example-mountain/feed.xml ``` ### Resource fields | Element | Meaning | | --------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------- | | `mountain_feeds/feed` | Directory identity and canonical feed URLs. | | `mountain_feed` | Mountain identity, location, optional aggregate trails/lifts, conditions, freshness and attribution. | | `trails`, `lifts` | Optional total/open counts; unknown status can omit open. | | `conditions` | Optional operational_status, surface_conditions, snow_conditions, snowfall and base_depth. Snow measurements carry unit="in" and snowfall carries period. | | `freshness` | status, observed_at, accepted_at, timestamp_basis, metadata_updated_at and expected_interval_seconds when available. | | `attribution` | Icecoast name, URL, API link and usage terms. | Record fields may be missing or null. Treat identifiers as opaque and distinguish unavailable values from confirmed false/zero. See [data semantics](https://icecoast.us/docs/concepts/data-model). ## Errors | HTTP status | Meaning | | ----------- | ------------------------------------------- | | 400 | Invalid request parameters where validated. | | 503 | Feed temporarily unavailable. | Error bodies are XML; conditional 304 responses have no body. ## Related resources - [Mountain XML feed](https://icecoast.us/docs/reference/feeds/mountain) - [Data freshness](https://icecoast.us/docs/concepts/freshness) - [OpenAPI specification](https://icecoast.us/openapi.json){external=""} # Mountain XML feed `GET /api/v1/feeds/mountains/{slug}.xml` Retrieve a mountain’s identity, available aggregate terrain counts, current report conditions and freshness as XML for syndication. ## Authentication No API key is required. ## Parameters ### Path parameters | Parameter | Type | Required | Default | Description | | --------- | ------ | -------- | ------- | --------------------------------------------------------- | | `slug` | string | Yes | — | Published mountain slug. Pattern `^[A-Za-z0-9_-]{1,160}$` | No resource-specific query parameters. Aggregate-only UTF-8 XML; no individual terrain statuses or history. Canonical website feeds: {rel=""nofollow""} and [https://icecoast.us/mountains/{slug}/feed.xml](https://icecoast.us/mountains/%7Bslug%7D/feed.xml){rel=""nofollow""}. Unavailable values are omitted. Published mountains with slugs appear in the directory. Cache-Control: public, max-age=60, s-maxage=60. If-None-Match accepts ETag, weak ETag or wildcard and may return 304. Current source evidence is required for conditions; unknown roster statuses suppress open counts. Freshness: fresh, retained, stale or unavailable. ## Example request ::code-group ```bash [cURL] curl 'https://api.icecoast.us/api/v1/feeds/mountains/killington.xml' ``` ```js [JavaScript] const response = await fetch('https://api.icecoast.us/api/v1/feeds/mountains/killington.xml'); if (!response.ok) throw new Error(`HTTP ${response.status}`); const result = await response.text(); console.log(result); ``` ```python [Python] import os import requests response = requests.get( 'https://api.icecoast.us/api/v1/feeds/mountains/killington.xml', timeout=30, ) response.raise_for_status() print(response.text) ``` :: ## Response The successful response has content type `application/xml; charset=utf-8`. 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. ```xml 00000000-0000-4000-8000-000000000001Example Mountainunavailable ``` ### Resource fields | Element | Meaning | | --------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------- | | `mountain_feeds/feed` | Directory identity and canonical feed URLs. | | `mountain_feed` | Mountain identity, location, optional aggregate trails/lifts, conditions, freshness and attribution. | | `trails`, `lifts` | Optional total/open counts; unknown status can omit open. | | `conditions` | Optional operational_status, surface_conditions, snow_conditions, snowfall and base_depth. Snow measurements carry unit="in" and snowfall carries period. | | `freshness` | status, observed_at, accepted_at, timestamp_basis, metadata_updated_at and expected_interval_seconds when available. | | `attribution` | Icecoast name, URL, API link and usage terms. | Record fields may be missing or null. Treat identifiers as opaque and distinguish unavailable values from confirmed false/zero. See [data semantics](https://icecoast.us/docs/concepts/data-model). ## Errors | HTTP status | Meaning | | ----------- | ------------------------------------------- | | 400 | Invalid request parameters where validated. | | 404 | Mountain not found | | 503 | Feed temporarily unavailable. | Error bodies are XML; conditional 304 responses have no body. ## Related resources - [Mountain XML feed directory](https://icecoast.us/docs/reference/feeds/directory) - [Data freshness](https://icecoast.us/docs/concepts/freshness) - [OpenAPI specification](https://icecoast.us/openapi.json){external=""} # Finding a ski resort Use [mountain search](https://icecoast.us/docs/reference/mountains/search) for user-entered text. Pass `q`, optionally add country/state/stateCode/region, and copy the returned `id` and `slug`. Search is limited to published resorts and returns at most 50 results. ```js const url = new URL('https://api.icecoast.us/api/v1/mountains/search'); url.searchParams.set('q', 'Killington'); url.searchParams.set('country', 'US'); url.searchParams.set('limit', '5'); const response = await fetch(url, { headers: { 'X-API-Key': process.env.ICECOAST_API_KEY }, }); if (!response.ok) throw new Error(`HTTP ${response.status}`); const { data } = await response.json(); console.log(data.map(({ id, name, slug }) => ({ id, name, slug }))); ``` For a country directory or export-like traversal, use [mountain list](https://icecoast.us/docs/reference/mountains/list) with `countryCode=US&published=true`, then [paginate](https://icecoast.us/docs/concepts/pagination). Search does not expose offset pagination. Resorts can have similar names across countries. Show state/country to users and store the returned UUID rather than matching only by name. Do not assume an empty result means a resort does not exist in the real world. Use `include=places` for discovery suggestions when needed. Geographic suggestions are not separate mountain records. Once selected, [retrieve resort information](https://icecoast.us/docs/guides/resort-information). # Retrieving resort information Retrieve details through [mountain UUID](https://icecoast.us/docs/reference/mountains/by-id) or [slug](https://icecoast.us/docs/reference/mountains/by-slug). UUID lookup validates UUID format; slug lookup uses the stored slug. ```text /api/v1/mountains/slug/killington?includePasses=true ``` Standard detail includes catalog identity, location, official website, reporting flags, available branding and resource links. Optional fields vary. List-only active-trail counts are not guaranteed on detail. Add `includeTrails=true` and/or `includeLifts=true` only when needed. Large mountain directories should generally fetch lightweight list records first, then load terrain for the selected mountain. Use standalone terrain collections for pagination and richer filtering. Mountain [media](https://icecoast.us/docs/reference/mountains/media) can be filtered by association role. Missing media returns an empty collection; use a text fallback rather than constructing a guessed logo URL. Media paths may need resolution in your application's asset handling. `includePasses` returns memberships with pass names/slugs; fetch [pass detail](https://icecoast.us/docs/reference/passes/detail) for tiers. Pass memberships are catalog information and do not independently guarantee current eligibility or access terms. Consult [data model](https://icecoast.us/docs/concepts/data-model) for coordinates, units and unavailable values. # Trail and lift operational status Use [trails](https://icecoast.us/docs/reference/trails/list) and [lifts](https://icecoast.us/docs/reference/lifts/list) filtered by `mountain`, or include relations in [mountain detail](https://icecoast.us/docs/reference/mountains/by-slug). Collection reads list active, non-retired records. ```text /api/v1/trails?mountain=killington&limit=50 /api/v1/lifts?mountain=killington&limit=50 ``` Paginate before computing totals. `open=true` is useful for showing open terrain, but an open-only response cannot supply the total roster denominator or unknown count. ```js function trailStatus(trail) { return trail.open === true ? 'Open' : trail.open === false ? 'Not open' : 'Unknown'; } function liftStatus(lift) { if (lift.operating_status) return lift.operating_status; return lift.open === true ? 'open' : lift.open === false ? 'not_open' : 'unknown'; } ``` Do not collapse delayed/on_hold/scheduled lift statuses into closed, and do not treat an unrecognized future status as open. Preserve returned labels or present an unknown fallback. Check [verification status](https://icecoast.us/docs/reference/status/detail) separately and display data age. Historical [changes](https://icecoast.us/docs/reference/history/grouped) show recorded transitions; they do not replace current terrain or guarantee complete history. See [data semantics](https://icecoast.us/docs/concepts/data-model). # Building a conditions dashboard ## Load the selected resort Find the resort through [search](https://icecoast.us/docs/guides/finding-resorts), then load detail with trails/lifts or fetch paginated terrain collections. Keep mountain identity separate from conditions so a temporary reporting outage does not erase the resort card. ## Track known and unknown values ```js function counts(rows) { const open = rows.filter((row) => row.open === true).length; const closed = rows.filter((row) => row.open === false).length; const unknown = rows.length - open - closed; return { total: rows.length, open, closed, unknown, percent: rows.length > 0 && unknown === 0 ? (open / rows.length) * 100 : null, }; } ``` This counts returned records; it does not establish source freshness or prove the roster is complete. Do not display 0/0 as a resort closure. A null percentage should display unavailable, not 0%. ## Add verification context Fetch [mountain verification status](https://icecoast.us/docs/reference/status/detail). Show last_verified_at, stale/retained state and public explanations where relevant. Verification health and skiing availability answer different questions. Use [overview](https://icecoast.us/docs/reference/reports/overview) for a US/Canada alpine aggregate dashboard with an explicit completeness/freshness policy. Follow its [scope and denominator definitions](https://icecoast.us/docs/concepts/overview). Do not mix its denominator with global catalog totals. Weather may be added only when available. Separate modeled forecasts from resort measurements and retain units and source times. Provide graceful unavailable states for logos, conditions, counts and weather. Cache the server response appropriately and revalidate rather than firing requests on every render. Review [usage](https://icecoast.us/docs/concepts/usage), [caching](https://icecoast.us/docs/guides/caching) and [terms](https://icecoast.us/terms-and-conditions). # Working with geographic data Use catalog mountain coordinates for resort markers. Convert numeric strings carefully, reject non-finite values and validate latitude/longitude ranges. GeoJSON uses `[longitude, latitude]`. Request [combined geographic features](https://icecoast.us/docs/reference/geography/combined) for a viewport: ```bash curl 'https://api.icecoast.us/api/v1/geo/bounds/combined?ne_lng=-72&ne_lat=45&sw_lng=-74&sw_lat=43&complexity=1' ``` The response is a GeoJSON FeatureCollection directly. `complexity=1` preserves full geometry; smaller positive values simplify. Features are selected by bounding-box intersection, not clipped to the viewport. Use ordinary southwest/northeast bounds; crossing the antimeridian is not a documented capability. Use [trails](https://icecoast.us/docs/reference/geography/trails), [areas](https://icecoast.us/docs/reference/geography/areas) or [custom areas](https://icecoast.us/docs/reference/geography/custom-bounds) if you only need a subset. Full custom areas can be retrieved without bounds. Geographic source coverage is independent from catalog/reporting coverage. Do not assume every resort has geometry or that feature IDs equal operational trail/lift IDs. Feature properties are dataset-specific; preserve source attribution where supplied and review [terms](https://icecoast.us/terms-and-conditions). # Efficient requests and caching ## Read only what you need Use list projections and targeted filters for discovery. Request terrain only for selected resorts. Disable pass detail's default mountain expansion with `includeMountains=false` when it is unnecessary. Follow pagination rather than assuming the first page contains the complete roster. ## Shared API payload cache The current implementation uses revision-aware payload caching with nominal TTLs of 15 seconds for mountain list/detail, trail/lift lists and pass detail; pass lists use 60 seconds. Deployment can disable caching or fall back to direct reads when cache infrastructure is unavailable. `cached` indicates a hit, not a fixed freshness guarantee. Standalone trail/lift detail reads currently bypass this shared payload cache. Verified mutations invalidate relevant revisions. Optional live enrichment can be added after a shared mountain payload is read. Do not infer that all fields in a response share the same generation time. Standard mountain routes declare `skipCache=true`. Existing cached collection/pass readers also accept cache controls through their query, but that is not a general HTTP cache invalidation API. Avoid relying on undeclared controls. Bypassing payload cache does not trigger a source collection or refresh a resort report, and still uses request allowance. ## HTTP caching Overview, status, feeds and optional weather set endpoint-specific Cache-Control. Honor those headers and inspect timestamps separately. Do not assume ETags or conditional requests work on all JSON catalog endpoints. XML feeds support ETags: ```bash curl -i 'https://icecoast.us/mountains/killington/feed.xml' # Save the returned ETag, then send it on the next request: curl -i -H 'If-None-Match: "PREVIOUS_ETAG"' \ 'https://icecoast.us/mountains/killington/feed.xml' ``` A matching ETag returns 304 with no document body; retain your previous representation. Use feed freshness fields to interpret retained/stale conditions. Feeds are aggregate-only; use the API for individual statuses and recorded changes. Apply bounded exponential backoff with jitter for transient errors, coalesce duplicate requests in your application and respect Retry-After when present. Keep API keys out of shared cache keys visible to end users and out of logs. See [error handling](https://icecoast.us/docs/concepts/errors) and [usage](https://icecoast.us/docs/concepts/usage). # Downloading dataset snapshots Exports are optional configured resources, separate from live catalog reads. Public mode allows anonymous downloads; private mode requires a secret API key. Unconfigured service returns 503, and an eligibility change can temporarily return 409 while the catalog is refreshed. ## Discover and download 1. Read the [catalog](https://icecoast.us/docs/reference/exports/catalog) with `scope=all` or `scope=us-ca`. 2. Use a catalog mountain's `download` path, or the [bulk dataset endpoint](https://icecoast.us/docs/reference/exports/dataset), to obtain download metadata. 3. Download ZIP bytes from the returned `data.url`. 4. Verify the downloaded byte count and SHA-256 against `bytes` and `sha256` before consuming the archive. The API download route returns JSON rather than redirecting or streaming ZIP data. Public URLs have `expires_at: null`. Private URLs expire; treat them as temporary credentials and request fresh metadata when needed. Do not put signed URLs in public logs or shared caches. ## Archive contents | Archive | Files | | --------------- | --------------------------------- | | Single mountain | `mountain.json` | | Dataset | `manifest.json`, `mountains.json` | Mountain records include an `export_schema_version`, available identity/geography/branding, trails, lifts, passes and `conditions_metadata`. The conditions metadata explicitly uses `status_semantics: "last_known"` and carries source context. The bulk manifest includes schema_version, scope, captured_at, count, last-known status semantics and mountain identities/revisions. `captured_at` describes snapshot capture, while `generated_at` describes archive/catalog generation. Neither proves that every source observation is current. Retain per-record/source timing and [freshness context](https://icecoast.us/docs/concepts/freshness). The `us-ca` scope contains US/Canada eligible catalog mountains; it is not the same as the overview's freshness-qualified alpine reporting subset. Snapshot files deliberately expose a curated subset of catalog fields. Do not assume archived records and live standard detail responses are byte-for-byte identical.