Posts

Showing posts from March, 2021

Getting Photos from Mars with the NASA API

Image
  Get the Latest Mars Photos, on the Web and In Your Inbox Everyone's waiting on the next photos from Perseverance, NASA's latest Mars rover. I'll show you how to use NASA's API to get the latest images as soon as they arrive - and send them straight to your inbox! We don't need our own  Deep Space Network  -- NASA provides a  public API  for all of its Mars rovers. So I wrote an app to fetch the latest photos from Perseverance, and its older sibling Curiosity. I built the web app with  Anvil , which means I could build  everything  in Python -- that includes the "front-end" parts (displaying images, choosing your rovers, entering your email address, and so on), as well as the "back-end" (accessing NASA's APIs and sending out emails). Take a look: Open the app: Pictures from Mars See the latest photos from all the Mars rovers, and get an email as soon as new ones arrive. Getting the Photos According to the  API docs , you can get all Persever