Lodol Docs

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

ParameterTypeRequiredDescription
datestringNoDate of the picture, in YYYY-MM-DD format (for example, 2026-01-15). Leave blank to get today's picture.
hdbooleanNoSet 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

ParameterTypeRequiredDescription
datestringNoDate of the images, in YYYY-MM-DD format (for example, 2026-01-15). Leave blank to get the most recent images.
limitnumberNoMaximum 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

ParameterTypeRequiredDescription
roverstringNoName of the rover: Curiosity, Opportunity, Spirit, or Perseverance.
earth_datestringNoEarth date the photos were taken, in YYYY-MM-DD format (for example, 2026-01-15). You can use the Martian day (sol) instead.
solnumberNoMartian day (sol) of the rover's mission to get photos from (for example, 1000).
camerastringNoCamera to filter by, using its short code (for example, FHAZ, RHAZ, or NAVCAM).
limitnumberNoMaximum number of photos to return.
pagenumberNoWhich 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

ParameterTypeRequiredDescription
start_datestringYesFirst date of the range, in YYYY-MM-DD format (for example, 2026-01-15).
end_datestringNoLast date of the range, in YYYY-MM-DD format. Leave blank to cover 7 days from the start date.

Response

{
  "status": "mock_value"
}

On this page