APOD API

Astronomy Picture of the Day, served from NASA's APOD feeds. Compatible with the original NASA APOD API; no API key required..

Endpoint

GET https://apod-api.sudos.site/v1/apod/

With no parameters, returns the current APOD as a JSON object. Requests that ask for several APODs (start_date, count) return a JSON array.

Query parameters

ParameterTypeDescription
dateYYYY-MM-DDThe APOD for this date. Earliest is 1995-06-16.
start_dateYYYY-MM-DDStart of a date range. Cannot be combined with date or count.
end_dateYYYY-MM-DDEnd of a date range (defaults to today). Ranges are limited to 366 days.
countintegerReturn this many random APODs (1–100). Cannot be combined with dates.
randombooleanReturn one random APOD, or count random APODs.
thumbsbooleanAdd thumbnail_url for YouTube video APODs.
markdownflagReturn links in explanation, copyright and editor as markdown [text](url) instead of plain text.
concept_tagsbooleanNot supported; adds a concepts notice.
hd, api_key—Accepted for compatibility with the NASA API and ignored.

Booleans accept true, 1 or yes. Flags can also be passed bare, e.g. &markdown. Any other parameter returns a 400.

Response fields

FieldDescription
dateAPOD date, YYYY-MM-DD.
titleAPOD title.
explanationExplanation text.
media_typeimage, video or other.
urlImage or video URL.
hdurlFull-resolution image URL (images only).
thumbnail_urlVideo thumbnail, when thumbs is set and one is available.
copyrightImage or video credit, or null.
editorThat day's editor, or null for archive posts that don't name one.
article_urlThe APOD article on science.nasa.gov.

Examples

Errors

Errors return JSON with the matching HTTP status:

{ "msg": "No data available for date: 2026-12-25", "code": 404 }

400 for invalid parameters or combinations, 404 when no APOD exists for the date, 500 for upstream failures.