Simple REST API that gives an access to entire photo base of NASA MER mission rovers Spirit and Opportunity
Deployed on deno.com
Base URL: https://nasa-mer-photos-api.deno.dev/
GET /metadata
Parameter | Type | Description | Default |
---|---|---|---|
rover |
string |
Required. spirit or opportunity | - |
GET /photos
Parameter | Type | Description | Default |
---|---|---|---|
rover |
string |
Required. spirit or opportunity | - |
sol |
Array<string> |
One sol or more, or range of sols. Examples: [1], [13,23,7,5], [13:22], [:23], [65:] | All sols |
cameras |
Array<string> |
List of needed cameras. Available FHAZ, RHAZ, NAVCAM, PANCAM, MICRO | All cameras |
page_limit |
number |
Limits how many links will be in one response. Range is unlimited | - |
page |
number |
Page number of paginated data | - |
Look here for examples
If You need an API for Perseverance and Curiosity rovers too, have a look at my postman collection which exposes original NASA API. It has almost the same rich filters but has way more side information.
This API is used in the following project: