Get NASA Astronomy Picture of the Day
PythonMediaPOST api.upapi.io/nasa-apod.getFetch 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
| Field | Type | Description |
|---|---|---|
hd | boolean | Include 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
| Field | Type | Description |
|---|---|---|
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.
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.