NASA Astronomy Picture of the Day
Loading...
Loading today's astronomy image...
Updated daily via AWS Lambda + NASA's APOD API
How it works
- A daily AWS Lambda function calls NASA's public API.
- The image is uploaded to an Amazon S3 bucket with public access.
- A JSON file with metadata (title, explanation, copyright) is also saved to S3.
- This static site loads the image and metadata using JavaScript - no backend or CMS required.
It's cost-effective (under $0.01/month), fully automated, and 100% serverless.
Want to build this yourself?
- Create an AWS Lambda function in Python.
- Use the NASA APOD API to fetch the image and metadata.
-
Upload the image and metadata JSON to a public S3 bucket using
boto3
. - Schedule the function with AWS EventBridge to run once per day.
- Use JavaScript to fetch and display the metadata on your static site.
No CI/CD. No servers. Just clean automation and good architecture.
Explore the APOD Gallery
View an archive of past NASA Astronomy Pictures of the Day. Our gallery automatically updates daily and allows you to browse by month.
View Gallery