Reference

Endpoints

Complete reference for all available endpoints. All requests require an x-api-key header.

https://apibarn.com/v1/ski-resort Try Live Calls ↓

Authentication

Pass your API key in the x-api-key request header on every call. Keys are provisioned instantly at signup.

Request header
x-api-key: YOUR_API_KEY
Don't have a key? Sign up free — no credit card required.

Health

Service health check.

GET/healthService health check.
cURL
curl https://apibarn.com/v1/ski-resort/health \
  -H "x-api-key: YOUR_API_KEY"

Resorts

Query individual resorts or paginate the full catalog. Resort IDs are stable slugs (e.g. vail, whistler).

GET/api/resortsPaginated list of all resorts with current conditions summary.
ParamTypeDefaultDescription
limitnumber20Results per page (max 200)
offsetnumber0Pagination offset
countrystringISO country code, e.g. US
continentstringFilter by continent name
qstringSearch by resort name
cURL
curl "https://apibarn.com/v1/ski-resort/api/resorts?limit=10&country=US" \
  -H "x-api-key: YOUR_API_KEY"
GET/api/resorts/:idFull details for a single resort — snow, weather, lifts, trails, and forecasts.
ParamTypeDescription
idpathResort slug, e.g. vail or whistler
cURL
curl https://apibarn.com/v1/ski-resort/api/resorts/vail \
  -H "x-api-key: YOUR_API_KEY"
GET/api/resorts/:id/weatherCurrent weather and 7-day forecast for a specific resort.
GET/api/resorts/:id/trailsTrail list with difficulty ratings, grooming status, and open/closed state.
GET/api/resorts/:id/liftsLift and gondola operating status, type, and capacity.
GET/api/resorts/:id/compareSide-by-side comparison of two resorts.
ParamTypeRequiredDescription
withqueryYesID of the resort to compare against
cURL
curl "https://apibarn.com/v1/ski-resort/api/resorts/vail/compare?with=whistler" \
  -H "x-api-key: YOUR_API_KEY"

Conditions

Ranked and filtered resort lists based on live snow and operational data.

GET/api/conditions/top-snowResorts ranked by highest recent snowfall (24h and 72h).
ParamTypeDefaultDescription
limitnumber10Number of resorts to return (max 50)
cURL
curl "https://apibarn.com/v1/ski-resort/api/conditions/top-snow?limit=5" \
  -H "x-api-key: YOUR_API_KEY"
GET/api/conditions/open-nowResorts currently operating above a minimum open-trails threshold.
ParamTypeDefaultDescription
minOpenTrailsPctnumber50Minimum % of trails that must be open (0–100)
GET/api/conditions/storm-watchResorts with significant snowfall forecasted in the next 48 hours.
ParamTypeDefaultDescription
limitnumber10Number of resorts to return

Insights

Aggregated trend data across the resort network.

GET/api/insights/snowRolling snowfall totals and network-wide averages.
ParamTypeDefaultDescription
daysnumber7Rolling window in days (1–30)

Sync

Inspect the data pipeline. Conditions are pulled from Open-Meteo every 15 minutes automatically.

GET/api/sync/statusCurrent sync state — last run time, duration, and next scheduled run.
POST/api/sync/runTrigger an immediate sync. Throttled to one manual trigger per minute.
GET/api/sync/historyRecent sync run log with status, duration, and resorts updated per run.
ParamTypeDefaultDescription
limitnumber20Number of recent runs to return (max 100)

Live Demo

Run real requests against the API directly from your browser. Paste your API key to get started.

Resorts: | Last: None
Response
Enter your API key above to load the resort list and run live requests.