I am trying to use the NOAA API to get data on monthly mean temperature and precipitation for the past 10 years. I wrote the following python code (the variable "token" in the code is the API token that I got:
import requests url = "http://www.ncdc.noaa.gov/cdo-web/api/v2/data?datasetid=GHCNDMS&locationid=ZIP:28801&startdate=2000-01-01&enddate=2010-01-01" response = requests.get(url, headers = token) data = response.json()
I am not able to get data for for the specified time period. I am not sure where I am going wrong.