A Python + Flask backend service that fetches and serves live NASA EPIC Earth imagery.
It automatically refreshes data, caches the latest images, and exposes clean JSON + image endpoints.
- Flask API with
GET /api/latestand/images/<file>routes - Automated NASA EPIC fetch every few hours via APScheduler
- CORS-enabled for frontend access (Vercel)
- Persistent caching of image + metadata in
/data - Manual refresh endpoint (
/api/refresh) to trigger fetch on demand
Render: https://earth-telemetry-api.onrender.com
| Endpoint | Method | Description |
|---|---|---|
/ |
GET | Health check + endpoint list |
/api/latest |
GET | Returns the latest metadata.json (Earth image + date/time) |
/api/refresh |
GET/POST | Manually triggers an image refresh |
/images/<file> |
GET | Serves cached image from /data/images |
Example:
curl https://earth-telemetry-api.onrender.com/api/latestPython 3.10+ Flask Flask-CORS APScheduler Render Web Service
git clone https://github.com/Neo9Phoenix/earth-telemetry.git
cd earth-telemetry
python -m venv venv
venv\Scripts\activate
pip install -r requirements.txt
python backend/app.pyThen open → http://127.0.0.1:5000/api/latest
Data provided by NASA EPIC API Developed by Neo