Skip to content

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.

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.