Astronomy Picture of the Day

nasa.apod
ActionBusiness appsconnection required

Calls the NASA API with the connection's credentials.

Read the Astronomy Picture of the Day and its explanation.

Connection

Required
Yes — the node will not save without one
Auth type
API key
Providers
NASA
Secret shape
the API key, or {"api_key": "…"}
Config it needs
base_url, images_base_url
Resolved by
config.connection_id, else node.connection_id

Configuration

5 fields, none required. A dotted path is a nested object and name[] an array of objects — the editor renders the same tree.

FieldTypeRequiredDefaultConstraintsExample
date
The day whose picture to read; NASA uses today when it is blank. The archive starts on 1995-06-16.
stringNo—matches ^\d{4}-\d{2}-\d{2}$2015-09-07
start_date
First day of a range of pictures to read.
stringNo—matches ^\d{4}-\d{2}-\d{2}$2015-09-01
end_date
Last day of a range of pictures to read; NASA uses today when a start date is given without one.
stringNo—matches ^\d{4}-\d{2}-\d{2}$2015-09-07
count
Ask NASA for this many randomly chosen pictures instead. It cannot be combined with a date or a date range.
numberNo—1–100—
thumbs
Include a thumbnail URL for entries whose media is a video.
booleanNofalse——

Example configuration

Every value below is the contract’s own example or default — nothing invented.

{
  "date": "2015-09-07",
  "end_date": "2015-09-07",
  "start_date": "2015-09-01",
  "thumbs": false
}

Output

One shape.

result

FieldTypeExample
entries
Every picture NASA returned, newest request order.
array—
count
How many pictures are in this response.
number—
date
The first entry's date.
string—
title
The first entry's title.
string—
url
The first entry's image or video URL.
string—
hdurl
The first entry's high-resolution image URL.
string—
media_type
Whether the first entry is an image or a video.
string—
explanation
The first entry's written explanation.
string—
copyright
The first entry's copyright holder, when not public.
string—
thumbnail_url
The first entry's video thumbnail, when asked.
string—
{
  "copyright": "",
  "count": 0,
  "date": "",
  "entries": [],
  "explanation": "",
  "hdurl": "",
  "media_type": "",
  "thumbnail_url": "",
  "title": "",
  "url": ""
}

See Astronomy Picture of the Day run in a workflow.

In a technical demo we add the NASA connection, drop the node on the canvas and let Workflow Health pre-flight it before the first real run.