Skip to content

w3bdev1/planets-api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.