Hey guys, I'm trying to build a https://images-api.nasa.gov image search app, but I'm having difficulties getting recent images to show something on the initial load.
What I've tried to do is to query only the last and current year worth of images with a query of 'a'.
Like this:/search-results?q=a&page=1&media=image&yearStart=2022&yearEnd=2023.
This would be ok if the results were chronologically ordered. As I see in the documentation, there's no way to do this - chronologically order results.
https://images.nasa.gov/ uses https://images-assets.nasa.gov/popular.json to get popular images and https://images-assets.nasa.gov/recent.json to get recent images. Is there something like this for the https://images-api.nasa.gov api?
Hey guys, I'm trying to build a
https://images-api.nasa.gov
image search app, but I'm having difficulties getting recent images to show something on the initial load.What I've tried to do is to query only the last and current year worth of images with a query of 'a'.
Like this:
/search-results?q=a&page=1&media=image&yearStart=2022&yearEnd=2023
.This would be ok if the results were chronologically ordered. As I see in the documentation, there's no way to do this - chronologically order results.
https://images.nasa.gov/
useshttps://images-assets.nasa.gov/popular.json
to get popular images andhttps://images-assets.nasa.gov/recent.json
to get recent images. Is there something like this for thehttps://images-api.nasa.gov
api?