space/apod

Get NASA's Astronomy Picture of the Day, by date or as a random set.

0.1 credits / call ($0.0001)
charged on success

What it does

Returns the Astronomy Picture of the Day: title, explanation, image or video URL, and copyright (if any). Can return a single day, a date range, or a random selection.

Primary use cases

  • Fetching today's (or a specific date's) astronomy image and explanation.
  • Pulling a range or random set of past entries.

Good to know

Use date (YYYY-MM-DD) for one day, start_date/end_date for a range, or count for N random entries (mutually exclusive with the date range). Set thumbs=true to get a thumbnail URL for video entries. Imagery is US public domain; some entries carry a third-party copyright noted in the response.

Parameters

datestringoptional

Single date, YYYY-MM-DD.

countintegeroptional

Return N random entries (do not combine with a date range).

thumbsbooleanoptionaldefault: false

Return a thumbnail URL for video entries.

end_datestringoptional

Range end date, YYYY-MM-DD.

start_datestringoptional

Range start date, YYYY-MM-DD.

space/apod — Faro