Dataset ZIP metadata

GET /api/v1/exports/datasets/{scope}/download — 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.

Parameters

Path parameters

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

curl -H "X-API-Key: $ICECOAST_API_KEY" 'https://api.icecoast.us/api/v1/exports/datasets/all/download'

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

FieldTypeMeaning
urlstringDownload URL. Private-mode URLs are temporary bearer credentials; keep them out of logs.
expires_atstring / nullExpiry, or null for public URLs.
sha256stringSHA-256 checksum.
bytesintegerSee the data model and returned resource.
filenamestringArchive filename.
content_typeanySee the data model and returned resource.
captured_atstringSnapshot capture time.
mountain_idstringMountain UUID.
revisionstringMountain revision, on single-mountain downloads.
scopestringSee 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.
404Export not found
409The export catalog is being refreshed.
429Monthly API allowance exhausted when a key is used.
503Dataset 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.