Skip to content

NASA API

NASA (nasa.gov) has 5 public methods: get astronomy picture of the day, search media, list near-Earth asteroids, get ISS sightings and list natural events. Each costs 1 credit per completed run (1¢ with pay as you go); failed runs are free.

Unofficial. Not affiliated with or endorsed by NASA.

Methods

5
  • Returns NASA's Astronomy Picture of the Day for a date: title, explanation, featured media link, optional high-resolution link, and credit.

    Returns date, title, explanation, media type and link, high-resolution link, credit, copyright, APOD page link

    Readnasa.gov/get_astronomy_picture_of_the_day
  • Searches NASA public photos, videos or audio by words and creation year, returning matches in relevance order with thumbnails and full-size file links.

    Returns title, description, date created, NASA center, credit, keywords, thumbnail link, full-size link, page link, media id

    Readnasa.gov/search_images
  • Lists near-Earth asteroids that pass Earth between two UTC dates within a chosen distance, with approach times, size ranges, speed and hazard status.

    Returns asteroid name, closest approach time (UTC), miss distance, size range, speed, hazard status, JPL link

    Readnasa.gov/list_near_earth_asteroids
  • Finds upcoming International Space Station sightings for a city in NASA's city list, with local start times, visibility and sky directions. Cities without scheduled passes return an empty list.

    Returns matched city, and for each sighting its date, local start time, visible duration, maximum height, and where it appears and disappears

    Readnasa.gov/get_iss_sightings
  • List EONET natural events with latest observations in the past number of days, most recent first. A country or region filter matches reported event locations against mapped boundaries; locations and ongoing status are approximate, and not all events have a reported size or strength.

    Returns event name, type, latest observation date, ongoing, size or strength, source links, page link, coordinates, EONET id

    Readnasa.gov/list_natural_events