Get NASA Astronomy Picture of the Day

PythonMedia
POST api.upapi.io/nasa-apod.get

Fetch NASA's Astronomy Picture of the Day (APOD). Today's by default, or any date from 1995-06-16 onwards. Returns title, explanation, media URL (+ HD variant), copyright. Uses DEMO_KEY by default; set NASA_API_KEY env for higher rate limits.

nasaspaceastronomypython
AuthAPI key
Cost1 unit
Timeout25s
Cache3600s

Request schema

FieldTypeDescription
hd
booleanInclude high-resolution URL when available· default: true
date
YYYY-MM-DD; omit for today. Must be on or after 1995-06-16.· default: null

Response schema

FieldTypeDescription
urlreq
string
datereq
string
hdurlreq
titlereq
string
copyrightreq
fetchedAtreq
string
mediaTypereq
string
explanationreq
string

Try it

Try it

Include high-resolution URL when available

YYYY-MM-DD; omit for today. Must be on or after 1995-06-16.

Run this endpoint live

Jump in as a guest — no signup — and run nasa-apod.get with your own inputs. Create a free account anytime to get your own API key.

Sign in

Code examples

curl -X POST https://api.upapi.io/nasa-apod.get \
  -H 'Content-Type: application/json' \
  -H 'x-api-key: YOUR_API_KEY' \
  -d '{ "hd": true, "date": "2024-07-04" }'

Developer tools

OpenAPI specImport the spec or collection into Postman, Insomnia, or any codegen tool.