The SRF Weather REST API allows you to get weather forecasts. After providing either of name or zip code 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).
Read our documentation.