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.

Covid-19 Patient Admission Locations

Updated 3 months ago

MOH (Ministry of Health)

Sample OpenAPI query

This code can be used to test a sample API query. It retrieves the data catalogue of this dataset. For a complete guide on query parameters and syntax, please refer to the API documentation

import requests
          
datasetId = "d_51c432c1373a96d44cd2544549c2d2b3"
url = "https://api-open.data.gov.sg/v1/public/api/datasets/" + datasetId + "/poll-download"
        
response = requests.get(url)
json_data = response.json()
if json_data['code'] != 0:
    print(json_data['errMsg'])
    exit(1)

url = json_data['data']['url']
response = requests.get(url)
print(response.text)

About this dataset

Contact

feedback@data.gov.sg

Created on

19 Feb 2020

Licence

Free forever for personal or commercial use, under the Open Data Licence.

Agency

MOH (Ministry of Health)

Dataset usage

435
Views
413
Downloads
10
API calls