About NASA
NASA offers a suite of APIs providing access to a wide range of data, including Earth science, planetary imagery, and technology transfer information.
Say what should happen in NASA, in plain words. Whenever builds it and runs it on a schedule, webhook or app event.
Connection requirements, provider permissions and optional AI usage apply. Read the runtime limits.
No credit card needed.
NASA offers a suite of APIs providing access to a wide range of data, including Earth science, planetary imagery, and technology transfer information.
Through its API, with the provider’s credentials and permissions.
Connect Claude, Cursor or Codex to the Whenever MCP server. Your coding agent builds and deploys the NASA workflow. It then runs on Whenever, with the chat closed.
Set up the Whenever MCP serverapi.nasa.gov is a gateway to a set of public data services rather than one product: Astronomy Picture of the Day (APOD), Near Earth Object Web Service (NeoWs), the space weather database DONKI, the Earth Observatory natural events tracker EONET, EPIC imagery of the whole Earth, and the Techport and technology transfer catalogues, among others. Most people who automate it want a recurring digest or a watch on a particular kind of event, not a one-off lookup.
Access is free. A personal API key from the signup form on api.nasa.gov raises the limit well above the shared DEMO_KEY, which is meant for quick exploration and is throttled per IP address. The published default for a registered key is 1,000 requests per hour, and responses carry headers showing how many requests remain. A daily or hourly schedule reading a handful of endpoints stays far inside that, so a brief rarely needs to think about limits unless it backfills years of data.
Each service has its own shape and update rhythm. APOD has one entry per date, sometimes a video instead of an image, so a brief should handle a media type other than "image". NeoWs returns approaches grouped by date, each object flagged as potentially hazardous or not, with miss distance in several units. DONKI separates solar flares, coronal mass ejections and geomagnetic storms into different endpoints. EONET events stay open until closed and can gain new geometry over time, which matters if you only want to post an event once.
Decide what counts as new before the first run. Storing the APOD date, the NeoWs object ID with its approach date, or the DONKI activity ID lets a scheduled check skip what it has already reported. Remember that a schedule runs whether or not NASA has published anything since the last check.
Starter briefs to set up with your accounts, not finished workflows.
A daily post with the title, explanation and image, handling days when the entry is a video.
Read NeoWs for the coming week and list only objects flagged as potentially hazardous.
Check DONKI for flares above a class threshold and notify once per flare.
DEMO_KEY works for trying endpoints but has tight hourly and daily limits shared per IP address. A scheduled workflow should use a free personal key from api.nasa.gov.
The documented default for a registered key is 1,000 requests per hour. Check the X-RateLimit-Remaining header on responses if a workflow makes many calls in one run.
Some APOD entries are videos. The response has a media_type field; a video entry gives a video URL instead of an image, so your workflow should branch on it.
These are request-and-response APIs without webhooks. A workflow checks on a schedule and compares against what it stored last time.
EONET, the Earth Observatory Natural Event Tracker, lists natural events by category with their locations and whether they are still open.
One workflow free. No card. Weekly AI-building limits.