A daily automated pipeline querying NASA's Astronomy Picture of the Day API, enriching descriptions with simplified key concepts, and broadcasting formatted digests across Discord and Telegram.
An automated daily media pipeline built to deliver high-resolution astronomical discoveries directly to community science channels. It fetches daily metadata from NASA's official Astronomy Picture of the Day API, parses image and video payloads, cleans scientific explanations, and posts structured cards to Discord and Telegram.
Create a completely headless, zero-maintenance distribution pipeline that broadcasts daily educational astronomy updates punctually at 06:00 UTC every morning.
1. Cron trigger executes daily at 06:00 UTC. 2. Query NASA Open API endpoint `https://api.nasa.gov/planetary/apod`. 3. Validate payload type (`image` vs. `video/youtube/vimeo`). 4. Format Discord rich embed with thumbnail, author credit, date, and simplified explanation. 5. Format Telegram photo post with HTML caption and direct high-resolution download links.
Engineered with n8n utilizing native HTTP Request nodes, conditional branching based on media type, and rate-limit backoff handling.
Current Boundaries: Relies strictly on NASA's upstream API availability. Free demo API keys have request rate limits of 30 requests per hour.
Daily 06:00 UTC Cron
│
▼
[Fetch NASA APOD API]
│
(Media Type?)
├── "image" ────► Format Discord Rich Embed + Send High-Res Photo to Telegram
└── "video" ────► Extract YouTube Embed Link + Send Video Card