Reports

Top open mountains in a region

GET /api/v1/reports/regions/{slug}/top-open — 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 explains public origin and secret IP restrictions.

Parameters

Path parameters

ParameterTypeRequiredDefaultDescription
slugstringYes—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

curl -H "X-API-Key: $ICECOAST_API_KEY" 'https://api.icecoast.us/api/v1/reports/regions/new-england/top-open'

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.

{
  "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

FieldTypeMeaning
idstringMountain UUID.
namestringName.
slugstringSlug.
total_trailsintegerSee the data model and returned resource.
open_trailsintegerSee the data model and returned resource.
percent_opennumberSee 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.

Errors

HTTP statusMeaning
400Invalid request parameters where validated.
401Missing, invalid, expired or revoked API key.
403Origin/IP restriction or endpoint key-type restriction denied the request.
429Monthly API allowance exhausted when a key is used.
500The resource could not be read.
503API-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.