How to use your API Key
To authenticate, include your API key in the request header as follows:
Curl
curl -X GET "https://api-production.data.gov.sg/v2/public/api/collections" \
-H "x-api-key: YOUR_API_KEY"
Python
import requests
headers = {"x-api-key": "YOUR_API_KEY"}
response = requests.get("https://api-production.data.gov.sg/v2/public/api/collections", headers=headers)
print(response.json())
Last updated
Was this helpful?