Skip to content

Latest commit

 

History

History
23 lines (19 loc) · 1.22 KB

README.md

File metadata and controls

23 lines (19 loc) · 1.22 KB

Planets API

Simple RESTful API for our Solar System Planets.

Live URL: https://plan3ts.onrender.com

How to Use

  • 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.

Data Sources

FAQs

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.