aviationweather.gov changed API
The old access point www.aviationweather.gov/adds/dataserver_current/httpparam?dataSource=metars&requestType=retrieve&format=xml&hoursBeforeNow=3&mostRecent=true&fields=raw_text&stationString=KBOS
currently ends with 403 Forbidden
:
<!DOCTYPE html PUBLIC '-//W3C//DTD XHTML 1.0 Transitional//EN' 'http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd'>
<html xmlns='http://www.w3.org/1999/xhtml'><head>
<meta content='text/html; charset=utf-8' http-equiv='content-type'/>
<style type='text/css'>body { font-family:Arial; margin-left:40px; }
img { border:0 none; }#content { margin-left: auto; margin-right: auto }
#message h2 { font-size: 20px; font-weight: normal; color: #000000; margin: 34px 0px 0px 0px }
#message p { font-size: 13px; color: #000000; margin: 7px 0px 0px 0px }
#errorref { font-size: 11px; color: #737373; margin-top: 41px }</style>
<title>Microsoft</title></head><body>
<div id='content'><div id='message'>
<h2>The request is blocked.</h2></div>
<div id='errorref'><span>xxxxxxxx=</span></div>
</div></body></html>
Their new API points are listed here: https://aviationweather.gov/data/api/