Skip to main content

SRF Weather 2.0.1

Our offers

We offer five packages, to suit your business needs. If none of the standard packages comply with your business needs, custom packages may be created. Please get in contact with us for further details:  meteo.api@srgssr.ch

Package freemium micro small medium large enterprise

Location

reference

points (max)

1 2 5 20 40 unlimited

 

Quota

 

50 requests / 1 day 500 requests / 1 day

1000 requests / 1 day

3000 requests / 1 day 5'000 requests / 1 day 20'000 requests / 1 day

Price (CHF)

Free 45 / month 70 / month 210 / month 380 / month upon request

Pricing information net excluding VAT. All data, products, and prices are subject to change.

What is it?

The SRF Weather REST API allows you to get weather forecasts.
And you find also, an example about how the API could be used to build weather widgets in WordPress

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

The new Meteo V2 supports:

  • Perceived temperature (1h, 3h) 

  • Fresh snow (1h, 3h) 

  • Sunshine duration (1h, 3h, day) 

  • UV index (1h, 3h, day) 

  • Relative humidity (1h, 3h) 

  • Mean Sealevel Pressure (1h, 3h) 

  • Dewpoint (1h, 3h) 

  • Irradiance (1h, 3h) 

 

See full documentation Get started

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".

Wide coverage

SRG SSR Weather API provides you with weather data from all over Switzerland.

Flexible usability

Use the received data on your websites, or in your apps to provide reliable weather forecast for your customers.

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? SRF Weather API can help!

  • Easy integration
  • Wide coverage in Switzerland
  • Weather forecast by the location of choice
  • Hourly or daily 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.

Important: the geolocationId is an identifier that must first be obtained via the name / the postal code or the radius search (since we do not offer a forecast for all points in CH). We do not have every point in CH in our forecast data. So it is not enough to simply round any geo-coordinates. To find geolocationIds you can:

- use the radius search for a point (/geolocations?latitude=47.3797111&longitude=8.5342111)

- search by zip code or name

 

We provide sample data record for the "Weekly" and "Hourly" for better understanding what data is included. 

Confidence: only for precipitation we have the probabilities

Updates: basically all data are updated every 6 hours. There are no fixed times as the calculations take different times from run to run. And data in the short term (next hours) data can be updated every few minutes.

Day-Icons and Hourly-icons are calculated separately, so no formula for Day-icon from Hour-icons.

 

Sample Response forecast by day in JSON Data-Format

 Read the reference documentation

How to use?

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

steps

1. Register and login

You need to be a registered user to access to SRG-SSR APIs. Log in after registration.

2. Create an App

On your dashboard, create an application that will use the API.
For standard access and most use-cases you can use the product SRG SSR PUBLIC API V2.

3. Get an API key

Your application has an API key that authorize you to use the API. You can find it on the page of the application.

Next steps

No next development steps are planned. Do you have inputs? Get in touch via meteo.api@srgssr.ch

Requirements

 
To access the SRF Weather API, you need to be a registered user with a valid API key.

 

Get API key View reference documentation

About us

The SRG SSR API team is proud to share our data for the friends, community, customer and partners.