API_KEY
. I'm using raw node js, but you can use express or other framework to enhance it, if you enhance this contribute to this project, I will be updating this soon adding new feautures such as adding color to the photographs using AI trained with images of deserts. Happy Coding! ๐จโ๐ป
GET path: `mars-photos/api/v1/rovers/curiosity/photos?api_key=`
Abbreviation | Camera | Curiosity | Opportunity | Spirit |
---|---|---|---|---|
FHAZ | Front Hazard Avoidance Camera | โ | โ | โ |
RHAZ | Rear Hazard Avoidance Camera | โ | โ | โ |
MAST | Mast Camera | โ | ||
CHEMCAM | Chemistry and Camera Complex | โ | ||
MAHLI | Mars Hand Lens Imager | โ | ||
MARDI | Mars Descent Imager | โ | ||
NAVCAM | Navigation Camera | โ | โ | โ |
PANCAM | Panoramic Camera | โ | โ | |
MINITES | Miniature Thermal Emission Spectrometer (Mini-TES) | โ | โ |
Parameter | Type | Default | Description |
---|---|---|---|
sol | int | none | sol (ranges from 0 to max found in endpoint) |
camera | string | all | see table above for abbreviations |
page | int | 1 | 25 items per page returned |
api_key | string | DEMO_KEY | api.nasa.gov key for expanded usage |
GET https://api.nasa.gov/planetary/apod
Parameter | Type | Default | Description |
---|---|---|---|
date | YYYY-MM-DD | today | The date of the APOD image to retrieve |
start_date | YYYY-MM-DD | none | The start of a date range, when requesting date for a range of dates. Cannot be used with date . |
end_date | YYYY-MM-DD | today | The end of the date range, when used with start_date . |
count | int | none | If this is specified then count randomly chosen images will be returned. Cannot be used with date or start_date and end_date . |
thumbs | bool | False | Return the URL of video thumbnail. If an APOD is not a video, this parameter is ignored. |
api_key | string | DEMO_KEY | api.nasa.gov key for expanded usage |
To run this project, you will need to add the following environment variables to your .env file
API_KEY
โ @markkdamm