Browse Resorts
Fetch European resorts sorted by fresh snow, most snowfall first.
cURL
curl -H "x-api-key: YOUR_API_KEY" \
"https://apibarn.com/v1/ski-resort/api/resorts?continent=Europe&sortBy=snowfall24hCm&sortOrder=desc&limit=10"
Compare Two Resorts
Side-by-side comparison of conditions, trails, lifts, and weather.
cURL
curl -H "x-api-key: YOUR_API_KEY" \
"https://apibarn.com/v1/ski-resort/api/resorts/niseko-united/compare?with=whistler-blackcomb"
Top Snow Right Now
Find the resorts with the highest fresh snowfall in the last 24 hours.
cURL
curl -H "x-api-key: YOUR_API_KEY" \
"https://apibarn.com/v1/ski-resort/api/conditions/top-snow?limit=5"
Storm Watch
Get resorts with significant incoming snowfall — useful for planning ahead.
cURL
curl -H "x-api-key: YOUR_API_KEY" \
"https://apibarn.com/v1/ski-resort/api/conditions/storm-watch?limit=5"
Open Now
Resorts where at least 70% of trails are currently open.
cURL
curl -H "x-api-key: YOUR_API_KEY" \
"https://apibarn.com/v1/ski-resort/api/conditions/open-now?minOpenTrailsPct=70"
Resort Weather Forecast
7-day weather forecast for a specific resort.
cURL
curl -H "x-api-key: YOUR_API_KEY" \
"https://apibarn.com/v1/ski-resort/api/resorts/whistler-blackcomb/weather"
JavaScript (fetch)
Fetch top-snow resorts from a browser or Node.js app.
JavaScript
const res = await fetch(
'https://apibarn.com/v1/ski-resort/api/conditions/top-snow?limit=5',
{ headers: { 'x-api-key': 'YOUR_API_KEY' } }
);
const data = await res.json();
console.log(data.results); // array of resort objects
Python (requests)
Look up a resort's conditions using the requests library.
Python
import requests
BASE = 'https://apibarn.com/v1/ski-resort'
HEADERS = {'x-api-key': 'YOUR_API_KEY'}
r = requests.get(f'{BASE}/api/resorts/whistler-blackcomb/conditions',
headers=HEADERS)
c = r.json()
print(c['snowDepthCm'], 'cm base depth')
print(c['openLifts'], '/', c['totalLifts'], 'lifts open')
API Health
Check API status — no key required.
cURL
curl https://apibarn.com/v1/ski-resort/health