What is it?
The SRF Weather REST API allows you to get weather forecasts.
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).
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.
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 SRF Weather API, follow these three steps to get started.