API DOCUMENTATION
GET
ENDPOINT
/api/v1/public/search/{query}
get search mountain peaks by name or keyword.
Parameter
‘query’ String - required : the search query
sample responses:
query = mount lafayette : returns one peak.
[{“peak_id”:5972,“peak_name”:“Mount Lafayette”}]
query = mount washington : returns several peaks, all peaks named Mount Washington.
[{“peak_name”:“Mount Washington (Arizona)”,“peak_id”:632},{“peak_id”:724,“peak_name”:“Mount Washington (Nevada)”},{“peak_name”:“Mount Washington (New Hampshire)”,“peak_id”:5822},{“peak_name”:“Mount Washington (British Columbia)”,“peak_id”:6680},{“peak_id”:6885,“peak_name”:“Mount Washington (Oregon)”},{“peak_id”:6982,“peak_name”:“Mount Washington (Olympic)”},{“peak_name”:“Mount Washington (Cascades)”,“peak_id”:7253},{“peak_name”:“Mount Washington (Nevada)”,“peak_id”:8623},{“peak_name”:“Mount Washington (Arizona)”,“peak_id”:8681}]
GET
ENDPOINT
/api/v1/rapid/report/daily/{mountain id}
get one day forecast by mountain id
Parameter
‘peak id’ String - required : the id String of the peak
Header
‘Temp-format’ - optional-defaults to F : specifies the temperature unit format for weather reports. options are F or C,
for Imperial/Fahrenheit units or Metric/Celsius units respectively.
sample responses:
[1 item
0:{1 item
“forecastData”:{3 items
“Night”:{8 items
“peakId”:1123
“maxTemp”:“59.0”
“minTemp”:“57.2”
“expectedRainfall”:0
“expectedSnowfall”:0
“weatherConditions”:“clear”
“windConditions”:“Wind Conditions: 15 S”
}
“AM”:{8 items
“peakId”:1123
“maxTemp”:“59.0”
“minTemp”:“53.6”
“expectedRainfall”:0
“expectedSnowfall”:0
“weatherConditions”:“clear”
“windConditions”:“Wind Conditions: 20 W”
}
“PM”:{8 items
“peakId”:1123
“maxTemp”:“62.6”
“minTemp”:“62.6”
“expectedRainfall”:0
“expectedSnowfall”:0
“weatherConditions”:“clear”
“windConditions”:“Wind Conditions: 25 W”
}
}
}
]
GET
ENDPOINT:
/api/v1/rapid/report/extended/{mountain id}
**get extended six day forecast by mountain id **
Parameter
‘peak id’ String - required : the id String of the peak
Header
‘Temp-format’ - optional-defaults to F : specifies the temperature unit format for weather reports. options are F or C,
for Imperial/Fahrenheit units or Metric/Celsius units respectively.
sample responses:
[6 items
0:{1 item
"forecastData":{3 items
"Night":{8 items
"peakId":3
"maxTemp":"-18"
“minTemp”:"-19"
“expectedRainfall”:0
"expectedSnowfall":0
"weatherConditions":“cloudy”
“windConditions”:“Wind Conditions: 5 SW”
}
“AM”:{8 items
"peakId":3
"maxTemp":"-13"
“minTemp”:"-15"
“expectedRainfall”:0
"expectedSnowfall":1
"weatherConditions":“light snow”
“windConditions”:“Wind Conditions: 30 E”
}
“PM”:{8 items
"peakId":3
"maxTemp":"-16"
“minTemp”:"-17"
“expectedRainfall”:0
"expectedSnowfall":0
"weatherConditions":“cloudy”
“windConditions”:“Wind Conditions: 0 S”
}
}
}
1:{1 item
"forecastData":{…}3 items
}
2:{1 item
"forecastData":{…}3 items
}
3:{1 item
"forecastData":{…}3 items
}
4:{1 item
"forecastData":{…}3 items
}
5:{1 item
"forecastData":{…}3 items
}
]