---
title: "Astronomy Picture of the Day"
description: "How nasa-mcp reaches APOD through the science.nasa.gov WordPress API: YYMMDD dates, image and video URLs, copyright and citation."
type: Reference
tags:
  - apod
  - images
  - astronomy
  - service
generated:
  by: "claude/opus-5.5"
  at: "2026-11-27T00:00:00Z"
sources:
  - id: design
    resource: "DESIGN.md"
    title: "nasa-mcp design"
    author: "team:nasa-mcp"
  - id: research
    resource: "RESEARCH.md"
    title: "nasa-mcp research notes (upstream services, 2026-11-27)"
    author: "team:nasa-mcp"
  - id: catalog
    resource: "src/nasa_mcp/providers/catalog.py"
    title: "nasa-mcp service catalogue"
    author: "team:nasa-mcp"
  - id: apod-docs
    resource: "https://api.nasa.gov/#apod"
    title: "api.nasa.gov APOD entry"
    author: "team:nasa"
status: stable
stale_after: "2027-05-27T00:00:00Z"
---

<!--
SPDX-FileCopyrightText: 2026 Tyson Lee Swetnam
SPDX-License-Identifier: CC-BY-4.0
-->

# Astronomy Picture of the Day (`apod`)

A daily image or video of the cosmos with an astronomer's explanation, since 1995-06-16. The
archive has gaps in its early years.

## Endpoint

`https://science.nasa.gov/wp-json/wp/v2/apod-basic` (a list, newest first) and
`.../apod-basic/{YYMMDD}` (one day). The legacy `api.nasa.gov/planetary/apod` goes offline on
**2026-12-01** and on 2026-11-27 already returned wrong content (title "NASA Science", the NASA logo
as image, another day's explanation), so nasa-mcp does not use it (RESEARCH.md §2).

## Key use

None. This service is called on its own host; it does not spend api.nasa.gov quota.

## Tools

| Tool | What it returns |
| --- | --- |
| `nasa_apod_get` | the latest picture, one `date`, or a `start_date`/`end_date` range (25 per page): title, date, `imageUrl`, `videoUrl`, article link, credit, copyright and the explanation |

Inputs and result fields: [Tool reference](../tools/reference.md).

## Quirks handled

* The live parameters are `page`, `per_page` (1-25; larger values silently return 25) and
  `date_from`/`date_to` in **YYMMDD** (two-digit years 95-99 mean 1995-1999). The documented
  `date`, `start_date`, `end_date` and `count` are silently ignored. The server converts your
  `YYYY-MM-DD` dates.
* A missing day answers 404 `apod_basic_not_found`, reported as `not_found` ("no APOD for this
  date").
* The upstream `url` is the **article page**, not the image: `imageUrl` comes from `hdurl`. For
  videos `hdurl` is a still; the MP4 is read from the embedded `basic_html`, which is then dropped
  (about 90 % of the payload).
* HTML is stripped from `explanation`, `credit` and `copyright`.
* Past days are cached 7 days (`archive`), today's for 1 hour.
* Not offered: the legacy `count` (random pictures), `thumbs` and `concept_tags`.

Every result also notes that APOD images may be copyrighted by their authors (see `copyright`).

## Citation

`source.citation`:

> Astronomy Picture of the Day, NASA / Michigan Technological University (https://apod.nasa.gov/). Credit the image author named in the copyright field.
