Simple RESTful API for our Solar System Planets.
Live URL: https://plan3ts.onrender.com
- For all planets data, hit at
/all
endpoint. - For specific planet data, hit at
/<planet-name>
endpoint. For example/earth
. - Planet name is not case-sensitive.
/urANUS
is a valid endpoint.
- For data related to Planets
- For data related to Moons, NASA - Moons
- For data related to temperatures, NASA - Solar System Temperatures
Why only daytime temperature for Mercury?
- The temperature (tempC) property was originally thought to be taken as average temperature.
- But unlike other planets, for Mercury the temperature range is so huge (430°C during the day, -180°C at night), average value would lose the extremeness.
- I also checked another API which also outputs only daytime temperature of Mercury. So I also stayed with it.
- If you have better solution, a PR is appreciated.