A Singapore Government Agency Website
Official website links end with .gov.sg
Government agencies communicate via .gov.sg websites (e.g. go.gov.sg/open). Trusted websites

Secure websites use HTTPS

Look for a lock () or https:// as an added precaution. Share sensitive information only on official, secure websites.

Weather Forecast

Weather forecast for next 2 hours, next 24 hours and next 4 days.

3 related datasets

Related datasets are grouped into a collection based on themes, topics or common attributes for easier access and exploration. All datasets within a collection are published and managed by the same agency.

Legacy 2-hour Weather Forecast

API5 months ago

Coverage: Mar 2016 to Nov 2024

Legacy 24-hour Weather Forecast

API5 months ago

Coverage: Mar 2016 to Nov 2024

Legacy 4-day Weather Forecast

API8 months ago

Coverage: Mar 2016 to Nov 2024

Sample OpenAPI query

This code can be used to test a sample API query. It retrieves the metadata for this collection. For a complete guide on query parameters and syntax, please refer to the API documentation. Try it out on your browser to see the response schema.

import requests
          
collection_id = 1456          
url = "https://api-production.data.gov.sg/v2/public/api/collections/{}/metadata".format(collection_id)
        
response = requests.get(url)
print(response.json())