NASA Planetary API

The Planetary API from NASA — 1 operation(s) for planetary.

Operations 1

GET /planetary/apod NASA Get Astronomy Picture of the Day #

Work with this as data

Every API 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 apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • 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 API
curl "https://apis.io/api/v1/apis/nasa-planetary-api"
All apis
curl "https://apis.io/api/v1/apis?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.

OpenAPI Specification

nasa-planetary-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: NASA Astronomy Picture of the Day (APOD) Planetary API
  description: The Astronomy Picture of the Day (APOD) API provides access to NASA's popular APOD service, returning the astronomy picture or video of the day along with a brief explanation written by a professional astronomer.
  version: 1.0.0
  contact:
    name: NASA API Support
    url: https://api.nasa.gov
servers:
- url: https://api.nasa.gov
tags:
- name: Planetary
paths:
  /planetary/apod:
    get:
      operationId: getApod
      summary: NASA Get Astronomy Picture of the Day
      description: Returns the astronomy picture of the day. Can retrieve a specific date, a date range, or random images.
      parameters:
      - name: api_key
        in: query
        required: true
        description: API key for authentication. Use DEMO_KEY for testing.
        schema:
          type: string
          default: DEMO_KEY
      - name: date
        in: query
        required: false
        description: The date of the APOD image to retrieve (YYYY-MM-DD).
        schema:
          type: string
          format: date
      - name: start_date
        in: query
        required: false
        description: The start of a date range for multiple APOD images.
        schema:
          type: string
          format: date
      - name: end_date
        in: query
        required: false
        description: The end of a date range. Defaults to today.
        schema:
          type: string
          format: date
      - name: count
        in: query
        required: false
        description: Return a specified number of random APOD images.
        schema:
          type: integer
      - name: thumbs
        in: query
        required: false
        description: Return URL of video thumbnail if media type is video.
        schema:
          type: boolean
          default: false
      responses:
        '200':
          description: Successful response
          content:
            application/json:
              schema:
                oneOf:
                - $ref: '#/components/schemas/ApodImage'
                - type: array
                  items:
                    $ref: '#/components/schemas/ApodImage'
        '400':
          description: Bad request
        '403':
          description: Forbidden - invalid API key
      tags:
      - Planetary
components:
  schemas:
    ApodImage:
      type: object
      properties:
        date:
          type: string
          format: date
          description: The date of the APOD image.
        explanation:
          type: string
          description: Explanation of the image by a professional astronomer.
        hdurl:
          type: string
          format: uri
          description: URL of the high-resolution image.
        media_type:
          type: string
          enum:
          - image
          - video
          description: The type of media returned.
        service_version:
          type: string
          description: The service version.
        title:
          type: string
          description: Title of the APOD image.
        url:
          type: string
          format: uri
          description: URL of the image or video.
        copyright:
          type: string
          description: Copyright holder of the image, if not public domain.
        thumbnail_url:
          type: string
          format: uri
          description: URL of the video thumbnail (if applicable).