Reputation: 1
I want to download data from the Local Climatological Database using an API, ideally through R so I can select data from many stations. However, figuring out how to format the request would work as well. NOAA seems to have a lot of different APIs (for reference), and I'm not sure if this can be downloaded from one of them.
To trial, I edited an example I found on another API page (reference). My trial used some of the following parameters/choices:
Here is the code I used for this one trial:
GET("https://www.ncei.noaa.gov/access/services/data/v1?dataset=local-climatological-data&dataTypes=DailyAverageDewPointTemperature&stations=USW0013874&startDate=2025-01-01&endDate=2025-01-31&boundingBox=90,-180,-90,180")
When I did so, this was the output I received.
Response [https://www.ncei.noaa.gov/access/services/data/v1?dataset=local-climatological-data&dataTypes=DailyAverageDewPointTemperature&stations=USW0013874&startDate=2025-01-01&endDate=2025-01-31&boundingBox=90,-180,-90,180]
Date: 2025-02-11 21:16
Status: 200
Content-Type: text/csv;charset=utf-8
Size: 74 B
"STATION","DATE","REPORT_TYPE","SOURCE","DailyAverageDewPointTemperature"
How do I correctly format this request (if it is possible)?
Thanks so much!
Upvotes: 0
Views: 66