NASA
Explore NASA astronomy, near-Earth objects, space weather, public media, and EPIC Earth imagery.
Connectors
Choose the connector that matches your authentication method. The options below use the names shown in StackAI.
NASA
API Key
NASA
Connect with a NASA API key to explore astronomy, near-Earth objects, space weather, public media, and EPIC Earth imagery.
Set up in NASA
Prepare the NASA account or service that the workflow will access. Grant access to the required resources and operations.
API Key: Create a personal key on NASA's API portal. Do not use the shared DEMO_KEY.
Set up in StackAI
Open Settings → Connections, add a connection, and select NASA.
Enter the credentials and connection details in the fields below.
Save the connection and check its connection status. Select this saved connection when configuring an action or feature that uses it.
Connection fields
API Key
Yes
Create a personal key on NASA's API portal. Do not use the shared DEMO_KEY. Provider instructions.
Verify the connection
Check that the connection is healthy. Then run a read operation against a resource the connected account can access. A successful connection check confirms authentication; it does not guarantee permission for every action.
If access is denied, check the credential or OAuth permissions, the selected account or environment, and access to the specific resource. Update expired credentials or reconnect after permissions change.
Use an action
Add the required NASA action to the workflow.
Select a connection when the action requests one.
Complete the required fields. Use the reference picker when a value comes from another workflow step.
Run the workflow and inspect the action’s output. Check the result before using it in a later step.
Actions
Get Astronomy Picture of the Day
Get NASA's astronomy picture and explanation for one date.
Inputs
Date
date
No
Choose a historical APOD date, or omit for today.
Include Video Thumbnail
boolean
No
Ask NASA for a thumbnail when the APOD entry is a video. Default: false.
Outputs
Picture
object
The Astronomy Picture of the Day and its explanation.
List Near-Earth Objects
List near-Earth objects approaching Earth in a date range.
Inputs
Start Date
date
Yes
First date in the near-Earth-object window.
End Date
date
No
Last date in the window; keep the range within seven days.
Outputs
Near-Earth Objects
object_array
Near-Earth objects approaching during the requested window.
Count
integer
Number of returned near-Earth objects.
Get Space Weather Notifications
Get NASA space-weather notifications by date and event type.
Inputs
Start Date
date
No
First notification date; provide both dates or omit both.
End Date
date
No
Last notification date; provide both dates within 30 days.
Notification Type
select (string)
No
Limit results to one DONKI notification type. Available values: All, Solar Flare (FLR), Solar Energetic Particle (SEP), Coronal Mass Ejection (CME), Interplanetary Shock (IPS), Magnetopause Crossing (MPC), Geomagnetic Storm (GST), Radiation Belt Enhancement (RBE), Report. Default: all.
Outputs
Notifications
object_array
NASA DONKI space-weather notifications.
Count
integer
Number of notifications returned.
Search NASA Image and Video Library
Search NASA's public image, video, and audio library.
Inputs
Search Query
string
Yes
Words to find in NASA media metadata.
Media Type
select (string)
No
Limit results to images, videos, or audio. Available values: Image, Video, Audio.
Start Year
integer
No
Only include media created in or after this year. Minimum: 1900.
End Year
integer
No
Only include media created in or before this year. Minimum: 1900.
Page
integer
No
Continue from a page returned by an earlier call. Minimum: 1.
Outputs
Media Items
object_array
Matching NASA image, video, or audio records.
Total Hits
integer
Total number of records matching the search.
Next Page
integer
Pass this back as Page to continue, if present.
Get EPIC Earth Imagery
Get latest or date-specific NASA EPIC Earth images.
Inputs
Image Date
select (string)
No
Select an available EPIC date or omit for latest images. Options load from the selected connection.
Outputs
Earth Images
object_array
EPIC Earth image metadata and public PNG URLs.
Count
integer
Number of returned EPIC images.
Important behavior
Actions that create, update, send, or delete data can change the connected service. Review their inputs before running them. A retry can repeat an operation; consider this when configuring retries for actions that change data.
The catalog lists the fields and capabilities available in the supplied provider definition. Availability can also depend on your deployment and organization’s Feature Access settings.
Last updated
Was this helpful?

