What is it?

 

The SRG-SSR Weather REST API  (commercial use) allows you to get weather forecasts.

After providing the decimal latitude and longitude parameters of the chosen location, the API sends a response that contains a JSON or CSV object based on the request with the weather forecast of the location for the chosen time period (hourly, 5 day).

Example value:

  • Zürich latitude: 47.36667
  • Zürich longitude: 8.5

     How to find out the latitude and longitude parameters of a place by using Google Maps.

     Download weather icons

     Download the weather icons description file

Weather info at a glance
We offer the options of receiving weather data for the next 5 days with hourly forecasts for each individual day, or one single core statement per day for 5 days (no hourly progression). Both options include parameters like "Sun, Wind, Temperature, Precipitation".
book
Wide coverage
SRG SSR Weather API provides you with weather data from all over Switzerland.
compass
Flexible usability
Use the received data on your websites, or in your apps to provide reliable weather forecast for your customers.
life-buoy

Why use it?

Do you want to get a weather forecast feature on your site or in your app?  Do you want to provide a possibility to check if the weather is suitable for planned activities? SRG-SSR Weather API (commercial use) can help!

  • Easy integration
  • Wide coverage in Switzerland
  • Weather forecast by the location of choice
  • Hourly or 5 day forecast

How it works?

This API consists of a bunch of GET methods that you can request for weather data of a particular location of Switzerland applied for a given time frame. After successful authorization, the API sends back the requested data as a JSON/CSV object.

In the interest of the customer, we would like to provide interested companies with a so-called sample data record for the "Weekly" and "Hourly" options before they log in, so that they can better understand what data is included.

   Sample response files to download:

How to use

If you’d like to use SRG-SSR Weather API commercial use, follow these three steps to get started.

Requirements

To access the SRG-SSR Weather API commercial use, you need to be a registered user with a valid API key.

Get API key View reference documentation