PASAR API
Monthly total rainfall (in mm) at the Changi Climate Station. Keyless JSON via data.gov.sg datastore. SG-first.
View docs ↗ More Environment & climate APIs All Singapore APIscurl --fail-with-body --location --max-time 30 'https://data.gov.sg/api/action/datastore_search?resource_id=d_b16d06b83473fdfcc92ed9d37b66ba58&limit=10'
I'm building an app using a public Singapore API (no private credentials needed). API: Rainfall - Monthly Total Provider: National Environment Agency Endpoint: GET https://data.gov.sg/api/action/datastore_search?resource_id=d_b16d06b83473fdfcc92ed9d37b66ba58&limit=10 Response format: JSON Source: National Environment Agency via data.gov.sg (https://data.gov.sg/datasets/d_b16d06b83473fdfcc92ed9d37b66ba58/view) Source type: Official open-data catalogue Endpoint type: Open-data catalogue JSON Integration difficulty: Copy-paste ready Production caveat: Still handle empty rows, schema changes, pagination, stale coverage, and temporary upstream failures. Help me fetch and display this data. Follow the documented format and handle errors, empty responses, stale coverage, caching and rate limits.