Skip to the content.

Welcome to Eris

Eris is an open source weather API for getting the current weather condition across the globe.

Quick access:


Eris is a simple Spring Boot Java API service that is developed as a consolidation of the following services:

The technology stack solely consists of Spring Boot framework. The live version of the API service is hosted on Heroku. The service can be hosted in any platform that supports Spring Boot.

Feel free to fork the project and create your own private API instance.


All the project dependencies exist in pom.xml file and once you run the project, all dependencies will be downloaded.

API documentation

Eris has two APIs which both do the same thing, getting the current weather condition.

Each API designed for its own use case, though both give the same response.

To access the APIs need to perform get request on the following URLs:

API documentation as well as interaction with APIs can be found at /apidocs/ which implemented with Swagger.


This endpoint is suitable for the case that coordinates (latitude, longitude) are available. To use this API three URL parameters are required which two are compulsory and another one is optional.

The list of parameters with their description can be found in below table

Parameter Description Type Compulsory
lat Latitude Decimal
lon Longitude Decimal
fahrenheit Temperature scale, supported Fahrenheit (true) and Celsius (false, default). If Fahrenheit sets to true, the distance unit will be changed to mile, otherwise kilometer Boolean

The JSON response of the call is something similar to below:

   "geoLocation":"Suria KLCC, Jalan Ampang, Taman U-Thant, Kampung Baru, Selangor-Kuala Lumpur Borders, 50088, Malaysia",

         "description":"broken clouds",

If none numeric or empty lat and/or lon given to the endpoint, the API returns 400 Bad Request with appropriate error response similar to the following payload structure. Same is true if the API fails to process the request except 500 Internal Server Error returns.

  "country": null,
  "geoLocation": null,
  "temperature": null,
  "icon": null,
  "iconName": null,
  "feelsLike": 0,
  "errors": [
    "Appropriate error message"
  "apiVersion": "v1.0",
  "coord": null,
  "weather": null,
  "base": null,
  "main": null,
  "visibility": null,
  "wind": null,
  "clouds": null,
  "dt": null,
  "sys": null,
  "id": null,
  "name": null,
  "cod": null


This point suits when no coordinates are available. As a result, the weather condition retrieved via the caller IP address location. Obviously, compare with the /current, this endpoint has lower accuracy. The reason for this is because coordinates acquired based on IP address which is usually not the same with the user’s location. In most cases, the location of the IP refers to the nearest ISP center that the user is connected to. The API parameters are as follows:

Parameter Description Type Compulsory
fahrenheit Temperature scale, supported Fahrenheit (true) and Celsius (false, default). If Fahrenheit sets to true, the distance unit will be changed to mile, otherwise kilometer Boolean

The IP address retrieved automatically from request header and as it can be seen, no parameter is defined to manually determine it. The response of this endpoint is identical with the /current one.


To call the endpoints, you need to send get request with appropriate URL parameters.

The request URL for /current should be something similar to this.

Consequently, the request URL for /currentbyip should be similar to below:

In Unix/Linux, you can use curl command to call the service.

curl -i -H "Accept: application/json" -H "Content-Type: application/json" -X GET ''


curl -i -H "Accept: application/json" -H "Content-Type: application/json" -X GET ''

Deploy your own Eris instance

To run and deploy the project on your local or any desired server, first clone the project and then follow the below instructions.

One-click Heroku deployment

You can deploy to Heroku by clicking the below button.


Free public Eris instance

We have a free running public instance of Eris hosted on Heroku. The instance is available from the following link:


Authors and Contributors

This API is developed and maintained by Kasra Madadipouya (@kasramp). Anyone is welcome to contribute to this project.


Running and mainining a free public API instance 24/7 bears some costs, besides time dedication, even though the service is deployed to a lowcost PaaS such as Heroku.

In order to maintain a high quality free service that is publicly available to everyone, any amount of montary donation or hosting offer is highly appreciated.

If you are interested to donate money, click on the Paypal donate button in below

For help, inquiries, bug report, or hosting offer, just drop an email to: [email protected]



Eris Weather API is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License version 3 as published by the Free Software Foundation.

Eris Weather API is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.


© 2017-2022 Kasra Madadipouya [email protected]