mars-photo-api icon indicating copy to clipboard operation
mars-photo-api copied to clipboard

Mars Rover Photos API: rover properties missing?

Open tommyskott opened this issue 1 year ago • 0 comments

Hi! Huge fan of the Mars Rover Photos API and I've built an Swift app for iOS showing the latest photos (currently in development). It's been running smoothly for months but now I'm getting errors due to missing properties on the rover object.

These properties are no longer available directly on the rover object:

max_sol
max_date
total_photos

Is this a mistake or am I supposed to get these values on a different end point? Since I'm still using v1 the props shouldn't change?

I'm fetching data on this endpoint: https://api.nasa.gov/mars-photos/api/v1/rovers/perseverance/photos?sol=1381&page=1&api_key=DEMO_KEY

I was storing the max_sol as a current_sol locally on the device when I did the first fetch, I check if max_sol is larger than the current_sol to determine if there's more to fetch.

Is there a better way to get the latest photos? I noticed a section about mission manifest that has these values.

Thank you!

tommyskott avatar Jan 26 '25 13:01 tommyskott