NASA Mars Rovers · Schema

Photo

A single Mars rover photo record returned by the NASA Mars Rover Photos API.

NASAMarsRoversPhotosImageSpacePlanetary ScienceOpen Data

Properties

Name Type Description
id integer Unique identifier for the photo.
sol integer Martian rotation (sol) on which the photo was taken, counting from the rover's landing date.
camera object
img_src string URL of the full-resolution image hosted on NASA servers.
earth_date string Earth date on which the photo was taken (YYYY-MM-DD).
rover object
View JSON Schema on GitHub

JSON Schema

photo.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/nasa-mars/main/json-schema/photo.json",
  "title": "Photo",
  "description": "A single Mars rover photo record returned by the NASA Mars Rover Photos API.",
  "type": "object",
  "properties": {
    "id": {
      "type": "integer",
      "description": "Unique identifier for the photo."
    },
    "sol": {
      "type": "integer",
      "minimum": 0,
      "description": "Martian rotation (sol) on which the photo was taken, counting from the rover's landing date."
    },
    "camera": {
      "$ref": "#/$defs/Camera"
    },
    "img_src": {
      "type": "string",
      "format": "uri",
      "description": "URL of the full-resolution image hosted on NASA servers."
    },
    "earth_date": {
      "type": "string",
      "format": "date",
      "description": "Earth date on which the photo was taken (YYYY-MM-DD)."
    },
    "rover": {
      "$ref": "#/$defs/RoverSummary"
    }
  },
  "required": ["id", "sol", "camera", "img_src", "earth_date", "rover"],
  "$defs": {
    "Camera": {
      "title": "Camera",
      "description": "Camera that captured the photo.",
      "type": "object",
      "properties": {
        "id": {
          "type": "integer"
        },
        "name": {
          "type": "string",
          "description": "Camera abbreviation (e.g., FHAZ, NAVCAM, MAST)."
        },
        "rover_id": {
          "type": "integer"
        },
        "full_name": {
          "type": "string",
          "description": "Full camera name (e.g., Front Hazard Avoidance Camera)."
        }
      },
      "required": ["id", "name", "rover_id", "full_name"]
    },
    "RoverSummary": {
      "title": "RoverSummary",
      "description": "Summary rover metadata embedded in photo records.",
      "type": "object",
      "properties": {
        "id": {
          "type": "integer"
        },
        "name": {
          "type": "string",
          "enum": ["Curiosity", "Opportunity", "Spirit", "Perseverance"]
        },
        "landing_date": {
          "type": "string",
          "format": "date"
        },
        "launch_date": {
          "type": "string",
          "format": "date"
        },
        "status": {
          "type": "string",
          "enum": ["active", "complete"]
        }
      },
      "required": ["id", "name", "landing_date", "launch_date", "status"]
    }
  }
}

Work with this as data

Every JSON Schema here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for schemas

4 MCP tools reach this
  • find_json_schemasBrowse and filter every JSON Schema in the catalog.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This JSON Schema
curl "https://apis.io/api/v1/json-schemas/photo"
All schemas
curl "https://apis.io/api/v1/json-schemas?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.