Need help with your APIs? I offer API discovery, governance & evangelism services. Explore services →
API Evangelist API Evangelist
Discovery
Learnings
Guidance
Toolbox
Alignment
API Evangelist LLC

NASA Mars Photos API

The Mars Photos API from NASA — 3 operation(s) for mars photos.

NASA Mars Photos API is one of 9 APIs that NASA publishes on the APIs.io network, described by a machine-readable OpenAPI specification.

Tagged areas include Mars Photos. The published artifact set on APIs.io includes an OpenAPI specification and API documentation.

This API exposes 3 operations across 3 paths, and defines 4 schemas. It is described by OpenAPI 3.0.3, at version 1.0.0.

Requests are made against a single base URL, https://api.nasa.gov.

3 operations 3 paths 4 schemas 3 GET

Metadata

The identity and technical contract details declared by the specification.

Specification
OpenAPI 3.0.3
API Version
1.0.0
Server
https://api.nasa.gov
Resource Areas
1

Paths & Operations 3

Across 3 paths, the API surfaces 3 operations — 3 GET. Each is listed below with its method, path, parameters, and response codes.

Mars Photos 3
GET
/mars-photos/api/v1/rovers/{rover}/photos
NASA Get photos from a Mars rover
getRoverPhotos 6 params → 200
GET
/mars-photos/api/v1/rovers/{rover}/latest_photos
NASA Get the latest photos from a Mars rover
getLatestRoverPhotos 2 params → 200
GET
/mars-photos/api/v1/manifests/{rover}
NASA Get mission manifest for a rover
getRoverManifest 2 params → 200

Schemas 4

The contract defines 4 schemas that model the data the API accepts and returns. The most detailed are RoverManifest (8 properties), RoverPhoto (6 properties), Rover (5 properties), Camera (4 properties). Each schema is shown below with its type and property counts.

Camera
object
4 properties
Rover
object
5 properties
RoverPhoto
object
6 properties
RoverManifest
object
8 properties

Specification

The full machine-readable OpenAPI contract behind this narrative.

Source

nasa-mars-photos-api-openapi.yml Raw ↑

Other APIs NASA publishes across the network.

NASA Asset API
NASA Captions API
NASA DONKI API
NASA EPIC API
NASA Metadata API
NASA Neo API
NASA Planetary API
NASA Search API