What is it?

 

The SRG-SSR Weather REST API allows you to get weather forecasts and reports from more than 25.000 locations across Switzerland.

After providing the decimal latitude and longitude parameters of the chosen location, the API sends a response that contains a JSON object with the weather forecast of the location for the chosen time period (current, hourly, daily, weekly).

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.

 

Weather info at a glance
Get weather forecast of the next hour, day, or week of your region of choice.
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 can help!

  • Easy integration
  • Wide coverage in Switzerland
  • Weather forecast by the location of choice
  • Current weather, and daily, hourly, weekly 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 object.

How to use

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

 

Step 1. Register and login
You need to be a registered user to access the SRG-SSR APIs. Log in after registration.
Step 2. Create an App
On your dashboard, create an application that will use the API.
Step 3. Check your credentials
Your application has a consumer key and a consumer secret that authorizes you to use the API. You can find it on the page of the application.

Requirements

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

Get API key View reference documentation