capabilities.work

Mars Rover Photo Harvest

A 3-step recipe with NASA. We can help you get access.

Recipe · 3 steps

Mars Rover Photo Harvest

with NASA

Harvest photos from a Mars rover using its mission manifest to pick a productive sol.

  1. Read the rover's mission manifest. This reports whether the rover is still active, the highest sol for which imagery exists, the corresponding Earth date, and the total photo count, which is the only reliable way to pick a sol that will ret
  2. Request photos for the most recent sol reported by the manifest, optionally narrowed to a single camera. Results are paginated at 25 photos per page.
  3. When the manifest sol returns no photos for the requested camera or page, fall back to the rover's dedicated latest photos endpoint, which always returns the most recently available imagery without needing a sol.
What you'll need to have ready
  • rover: The Mars rover to harvest photos from.
  • apiKey: NASA API key from api.nasa.gov. DEMO_KEY works for low-volume testing.
  • camera: Optional camera abbreviation to filter photos by.
  • page: Page of photo results to harvest, 25 photos per page.
For your developer

Arazzo workflow nasa:mars-rover-photo-harvest, 3 operations: getRoverManifest → getRoverPhotos → getLatestRoverPhotos. Specs on APIs.io.