
Storm Glass Marine Weather API
WeatherGlobal marine weather data from multiple sources in one single API! The Storm Glass API allows you to fetch weather data for any coordinate on the globe in a simple, programmatic way using conventional HTTP requests. When a request is successful, a response will be sent back in the form of a JSON object.
📚 Documentation & Examples
Everything you need to integrate with Storm Glass Marine Weather API
🚀 Quick Start Examples
// Storm Glass Marine Weather API API Example
const response = await fetch('https://docs.stormglass.io/', {
method: 'GET',
headers: {
'Content-Type': 'application/json'
}
});
const data = await response.json();
console.log(data);
Are you looking for a reliable and efficient weather API? Then look no further than Storm Glass. With its comprehensive and user-friendly documentation, integrating weather data into your application has never been easier.
Here's an example of how to use the Storm Glass API in Javascript:
First, create an account at https://api.stormglass.io/register to obtain your API key.
Next, install the Storm Glass npm package using the following command:
npm install stormglass --save
Once installed, you can use the API to retrieve weather data in your application like this:
const stormglass = require('stormglass');
const { Point, Time } = require('stormglass-classes');
const API_KEY = 'your_api_key_here';
const point = new Point(41.38879, 2.15899);
const time = new Time('2021-11-01T00:00:00.000Z');
const params = {
params: 'windDirection,windSpeed,waveHeight',
source: 'sg'
};
stormglass
.pointTimeSeries(point, params, [time], API_KEY)
.then(response => {
// Handle the response here
})
.catch(error => {
// Handle errors here
});
This code retrieves weather data for a specific location at a specific time. You can customize the data you want to retrieve by changing the params
object.
Storm Glass offers a wide range of weather data including wind speed, wave height, air pressure, and more. You can discover all the available parameters in the documentation.
So, start integrating Storm Glass into your application today and provide your users with reliable weather data.
📊 30-Day Uptime History
Daily uptime tracking showing online vs offline minutes