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
| 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
curl -H "X-API-Key: $ICECOAST_API_KEY" 'https://api.icecoast.us/api/v1/exports/datasets/all/download'
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);
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.
{
"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.
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.
