TRY FOR FREE
SIGN IN

How to Optimize the Performance of a High-Speed Weather API

A few tips and tricks of how to design your API queries to make sure the stormglass API is performing at its peak

If you have tested the stormglass API you already know it’s extremely fast. During the past months our platform has been optimized even further to increase the speed. There are however a few tips and tricks to keep in mind when designing your API queries to optimize the performance even further.

In short – it’s all about making sure you only request the weather data you actually are interested in.

The stormglass API gives you direct access to the world’s most accurate weather data – and there is a lot of it. Our service is also very generous in the sense that you are able to receive a lot of data in each response:

  • 10 days of data in hourly resolution (historical and forecasts)
  • all parameters (200+) from each available data source (10+) separately

As you can imagine it’s easy to design queries that will generate responses with a lot of data, which is great in many cases. But to optimize the performance, the key is to make sure you only request the data you actually need – whether it’s a few or many data points you are interested in. How to achieve this?

Use the Filter Parameters in Your Queries

Make sure to add all relevant filter parameters in your queries to make sure you streamline the payload:

  • parameters: define exactly which data parameters you want to receive in the API response, i.e temperature, waveHeight and/or currentSpeed

     

  • time period: set the start- and end timestamps to only get data for the relevant time period

     

  • source: make sure to specify which sources to receive weather data from

(All details around the filter parameters is available in the documentation)

Combining the usage of all three filter parameters will ensure you only receive the data you are interested in which will streamline the response size and make a blazing fast API perform at its peak!

Weather Data from ECMWF and ECMWF AIFS

Quick note to make sure you haven’t missed that data from the top performing European model ECMWF and their AI model, AIFS, was added to stormglass a few months back. Coverage is global and the spatial resolution is 0.25°. All details available in the documentation.

Give it a spin!

The stormglass API is always free to test. Full feature – no hassle.

Sign up for free
Privacy Settings
We use cookies to enhance your experience while using our website. If you are using our Services via a browser you can restrict, block or remove cookies through your web browser settings. We also use content and scripts from third parties that may use tracking technologies. You can selectively provide your consent below to allow such third party embeds. For complete information about the cookies we use, data we collect and how we process them, please check our Privacy Policy
Youtube
Consent to display content from - Youtube
Vimeo
Consent to display content from - Vimeo
Google Maps
Consent to display content from - Google
Spotify
Consent to display content from - Spotify
Sound Cloud
Consent to display content from - Sound