Using Python, I want to fetch data from this API (https://data.gov.sg/api/action/datastore\_search?resource\_id=a252963a-e3b5-4dfc-8f84-3c307a6968d6&limit=67986) which gives air quality readings from five locations (north, west, central, east, south) every hour, and save the data to a CSV file.

This is an example response from the API:
{"help": "https://data.gov.sg/api/3/action/help\_show?name=datastore\_search", "success": true, "result": {"resource\_id": "a252963a-e3b5-4dfc-8f84-3c307a6968d6", "fields": [{"type": "int4", "id": "\_id"}, {"type": "text", "id": "24-hr\_psi"}, {"type": "numeric", "id": "north"}, {"type": "numeric", "id": "south"}, {"type": "numeric", "id": "east"}, {"type": "numeric", "id": "west"}, {"type": "numeric", "id": "central"}], "records": [{"\_id": 1, "north": "55", "west": "58", "24-hr\_psi": "1/4/2014 1:00", "central": "54", "east": "54", "south": "54"}, {"\_id": 2, "north": "55", "west": "59", "24-hr\_psi": "1/4/2014 2:00", "central": "54", "east": "54", "south": "54"}, {"\_id": 3, "north": "55", "west": "60", "24-hr\_psi": "1/4/2014 3:00", "central": "55", "east": "54", "south": "55"}, {"\_id": 4, "north": "56", "west": "62", "24-hr\_psi": "1/4/2014 4:00", "central": "55", "east": "55", "south": "55"}, {"\_id": 5, "north": "57", "west": "63", "24-hr\_psi": "1/4/2014 5:00", "central": "56", "east": "56", "south": "55"}], "\_links": {"start": "/api/action/datastore\_search?limit=5&resource\_id=a252963a-e3b5-4dfc-8f84-3c307a6968d6", "next": "/api/action/datastore\_search?offset=5&limit=5&resource\_id=a252963a-e3b5-4dfc-8f84-3c307a6968d6"}, "limit": 5, "total": 67968}}
user