Using this API you can retrieve monthly temperature averages by country name. The measurements range from around 1750 at the earliest to 2013.
Features planned during development:
- Ability to retrieve any country and easily access its temperature data by month
- Ability to add new data
- Ability to delete data
- MongoDB & Mongoose
- Express
- Node.js
- Clone the library to your computer
- Use
npm installto install the dependencies - Run the seed file at
global-temperature-api/lib/db/seeds/country.js - From the
lib/directory run a local server withnodemon - Open
http://localhost:4000/countryto bring up the index
The API is currently deployed here. The site has the following routes:
Where path = http://global-temperature-api.herokuapp.com
-
path/country: the index will return a list of all countries in the API with the number of month values within theirmonthsarray -
path/country/:name: this path can be used to access any one country by name. This will return the full object including the fullmonthsarray.
The data is retrieved from Berkeley Earth an organization that has systematically re-done climate research in order to disprove climate change skeptists' theories on biases in the data. Due to the open nature of their work they release all of their data to the public on their data page. This is where all of the data sets used in this API are retrieved from.
Pull requests are welcome. For any bigger changes please submit an issue.
- Add temperature data by city, state, and major city
- Add more routes to allow searches by dates and more searchability of the data
