NASA
API actions for the NASA integration.
NASA
Explore NASA's space imagery: the Astronomy Picture of the Day, Mars rover photos, near-Earth object updates, and photos of Earth from space.
Get the Astronomy Picture of the Day
Get NASA's Astronomy Picture of the Day, including its title, explanation, and a link to the image or video.
Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
date | string | No | Date of the picture, in YYYY-MM-DD format (for example, 2026-01-15). Leave blank to get today's picture. |
hd | boolean | No | Set to true to get the high-definition version of the image when one is available. |
Response
{
"status": "mock_value"
}Get natural color Earth images
Get recent natural color photos of Earth taken from space by NASA's EPIC camera.
Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
date | string | No | Date of the images, in YYYY-MM-DD format (for example, 2026-01-15). Leave blank to get the most recent images. |
limit | number | No | Maximum number of images to return. |
Response
{
"status": "mock_value"
}Search Mars rover photos
Find photos taken by NASA's Mars rovers, filtered by Earth date or Martian day (sol).
Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
rover | string | No | Name of the rover: Curiosity, Opportunity, Spirit, or Perseverance. |
earth_date | string | No | Earth date the photos were taken, in YYYY-MM-DD format (for example, 2026-01-15). You can use the Martian day (sol) instead. |
sol | number | No | Martian day (sol) of the rover's mission to get photos from (for example, 1000). |
camera | string | No | Camera to filter by, using its short code (for example, FHAZ, RHAZ, or NAVCAM). |
limit | number | No | Maximum number of photos to return. |
page | number | No | Which page of results to return when there are many photos. |
Response
{
"status": "mock_value"
}List near-Earth objects
List asteroids and other objects passing near Earth during a date range, with hazard and speed details.
Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
start_date | string | Yes | First date of the range, in YYYY-MM-DD format (for example, 2026-01-15). |
end_date | string | No | Last date of the range, in YYYY-MM-DD format. Leave blank to cover 7 days from the start date. |
Response
{
"status": "mock_value"
}