Welcome! This page provides live weather data from NOAA. Developers can use it for their own projects.
Loading...
To access the data programmatically:
fetch('https://weather-arkansas.github.io/api.html')
.then(res => res.text())
.then(html => {
// Extract the weatherData variable from the page
const dataMatch = html.match(/const weatherData = (\[.*\]);/s);
if(dataMatch){
const weatherData = JSON.parse(dataMatch[1]);
console.log(weatherData);
}
});
Each record has: