Discover/api.nasa.gov API
live

api.nasa.gov APIapi.nasa.gov

Access NASA's APOD, Near Earth Objects, DONKI space weather, EPIC Earth imagery, Exoplanet Archive, EONET natural events, and more via a single API.

Endpoints
11
Updated
1mo ago
Try it
Date of the APOD image in YYYY-MM-DD format. Cannot be used with start_date/end_date or count.
Return a specified number of random APOD images. Cannot be used with date or start_date/end_date.
Return URL of video thumbnail if media_type is video.
End date for a range of APODs in YYYY-MM-DD format. Used with start_date.
Start date for a range of APODs in YYYY-MM-DD format. Used with end_date.
api.parse.bot/scraper/6db36254-5228-41a6-82a1-a7102cd098e8/<endpoint>
Ready to send
Fill in the parameters and hit sign in to send to see live response data here.
Use it in your codegrab a free API key at signup
curl -X GET 'https://api.parse.bot/scraper/6db36254-5228-41a6-82a1-a7102cd098e8/get_apod?date=2026-02-25' \
  -H 'X-API-Key: $PARSE_API_KEY'
All endpoints · 11 totalclick to expand

Get the Astronomy Picture of the Day (APOD) metadata. Returns a single APOD object when date is specified, or an array when start_date/end_date or count is used.

Input
ParamTypeDescription
datestringDate of the APOD image in YYYY-MM-DD format. Cannot be used with start_date/end_date or count.
countintegerReturn a specified number of random APOD images. Cannot be used with date or start_date/end_date.
thumbsbooleanReturn URL of video thumbnail if media_type is video.
end_datestringEnd date for a range of APODs in YYYY-MM-DD format. Used with start_date.
start_datestringStart date for a range of APODs in YYYY-MM-DD format. Used with end_date.
Response
{
  "type": "object",
  "fields": {
    "url": "string — URL of the image or video",
    "date": "string — date of the APOD in YYYY-MM-DD format",
    "hdurl": "string — high-definition image URL (absent for videos)",
    "title": "string — title of the APOD",
    "media_type": "string — 'image' or 'video'",
    "explanation": "string — description of the image"
  },
  "sample": {
    "data": {
      "url": "https://apod.nasa.gov/apod/image/2602/Egg_Hubble_960.jpg",
      "date": "2026-02-25",
      "hdurl": "https://apod.nasa.gov/apod/image/2602/Egg_Hubble_2048.jpg",
      "title": "The Egg Nebula from the Hubble Telescope",
      "copyright": "ESA/Hubble & NASA",
      "media_type": "image",
      "explanation": "Ever wonder what it would look like to crack open the Sun?...",
      "service_version": "v1"
    },
    "status": "success"
  }
}

About the api.nasa.gov API

This API exposes 11 endpoints covering NASA's major open datasets — from the Astronomy Picture of the Day (get_apod) to near-Earth asteroid tracking, DONKI space weather events, EPIC Earth imagery, and the Exoplanet Archive. Each endpoint returns structured metadata including orbital parameters, geolocation coordinates, solar event timestamps, and discovery details, so you can integrate NASA science data directly into your applications without managing multiple upstream sources.

Astronomy, Asteroids, and Space Weather

get_apod returns the daily APOD record including url, hdurl, title, explanation, and media_type ('image' or 'video'). You can request a single date with the date parameter, a date range with start_date/end_date, or a random sample with count. The NEO endpoints cover asteroid tracking: get_neo_feed returns near-Earth objects grouped by close-approach date over up to 7 days, get_neo_lookup returns full orbital and diameter data for a single asteroid by SPK-ID (e.g. '2000433' for Eros), and get_neo_browse pages through the entire asteroid dataset. DONKI endpoints (get_donki_cme, get_donki_notifications) expose coronal mass ejection records with activityID, startTime, sourceLocation, and instrument data, plus typed space weather notifications filterable by event type ('FLR', 'CME', 'GST', and others).

Earth Imagery and Mars Weather

get_epic_images returns metadata for images captured by the DSCOVR spacecraft's EPIC camera, including image filenames, caption, identifier timestamps, and centroid_coordinates (lat/lon of Earth's centroid). The category parameter switches between 'natural' and 'enhanced' color processing. get_insight_mars_weather returns the last available sols of InSight lander weather data via sol_keys; note that the InSight mission ended in November 2022, so all returned data is historical (sols 675–681, October 2020).

NASA Library, Exoplanets, and Natural Events

search_nasa_library queries the NASA Image and Video Library with a free-text q parameter and optional media_type filter ('image', 'video', or 'audio'), returning paginated collection objects with item arrays and metadata links. get_exoplanet_data queries the NASA Exoplanet Archive using ADQL syntax — fields returned include pl_name, hostname, disc_year, pl_orbper, and discoverymethod. Note that SQL LIMIT is not supported; use ADQL TOP syntax (e.g. select top 10 pl_name from ps). get_eonet_events returns natural event records — wildfires, storms, volcanic eruptions — with GeoJSON geometry, categories, and source links, filterable by status ('open' or 'closed') and limit.

Common use cases
  • Display the daily Astronomy Picture of the Day with title and explanation in a science dashboard or mobile app.
  • Monitor near-Earth asteroid close approaches over a date range using get_neo_feed, with miss distances and velocity data.
  • Alert users to coronal mass ejections and geomagnetic storms by polling get_donki_cme and get_donki_notifications.
  • Embed DSCOVR Earth imagery on a map by retrieving EPIC image metadata with centroid coordinates from get_epic_images.
  • Build an exoplanet explorer filtered by discovery method or orbital period using ADQL queries against the Exoplanet Archive.
  • Track active wildfires or storm events globally with GeoJSON geometry from get_eonet_events.
  • Search and surface NASA archival images and videos programmatically using the search_nasa_library media type filter.
Pricing & limitsSee full pricing →
TierPriceCredits/monthRate limit
Free$0/mo1005 req/min
Hobby$30/mo1,00020 req/min
Developer$100/mo5,000250 req/min

One credit = one API call regardless of which marketplace API you call. Exceeding the rate limit returns a 429 response. Authenticate with the X-API-Key header.

Frequently asked questions
Does NASA provide an official developer API?+
Yes. NASA maintains an official open API portal at https://api.nasa.gov, which documents keys and endpoints including APOD, NeoWs, DONKI, EPIC, and others. This Parse API wraps those same datasets in a consistent interface.
What does get_neo_lookup return versus get_neo_feed?+
get_neo_feed returns a date-keyed list of asteroid close approaches within a window of up to 7 days, useful for bulk monitoring. get_neo_lookup takes a single SPK-ID (e.g. '2000433') and returns full detail for that asteroid: estimated diameter in four units, absolute magnitude, and a complete historical close_approach_data array with dates, velocities, and miss distances.
Is InSight Mars weather data current?+
No. The InSight lander mission ended in November 2022. get_insight_mars_weather returns historical data from sols 675–681, corresponding to October 2020. The endpoint is useful for educational or archival applications but will not update with new readings.
Does the API expose APOD image copyright or photographer credit fields?+
Not currently. The get_apod response covers url, hdurl, title, explanation, date, and media_type, but does not include a copyright field. You can fork this API on Parse and revise it to surface that field if it becomes available upstream.
Can I retrieve EONET events filtered by event category (e.g. only wildfires)?+
Not currently. get_eonet_events supports filtering by status ('open' or 'closed') and a result limit, but category-level filtering (wildfires, volcanoes, storms) is not exposed as a parameter. You can fork this API on Parse and revise it to add a category filter against the EONET dataset.
Page content last updated . Spec covers 11 endpoints from api.nasa.gov.
Related APIs in Government PublicSee all →
images.nasa.gov API
images.nasa.gov API
mars.nasa.gov API
Explore real-time images, weather data, and location tracking from NASA's Perseverance and Curiosity rovers on Mars, while discovering mission details, rock sample findings, and the latest news from the Mars Exploration Program. Access rover photos, scientific discoveries, and multimedia content to stay updated on current Mars exploration activities.
spaceweather.com API
Monitor real-time space weather conditions including solar wind, sunspots, and flares, plus track near-Earth asteroids and access daily or historical reports. Stay informed about current space weather events and search through archived data to understand patterns and trends over time.
zoom.earth API
Search Zoom Earth for places and get live environmental data including weather forecasts by coordinates, satellite imagery timestamps, active tropical storm tracks, active fires, and current platform status.
ntrs.nasa.gov API
Search and retrieve NASA technical reports, preprints, and conference papers to find scientific publications across NASA's research archives. Get detailed citation information and discovery capabilities across decades of NASA's technical documentation and scientific findings.
sentinel-hub.com API
Access satellite imagery from around the world and retrieve spectral band data, timestamps, and geographic coverage information to analyze Earth observation data. Process and generate statistics from satellite images for your specific areas of interest using powerful image processing tools.
aopa.org API
Search for general aviation airports and access detailed information including runways, real-time weather conditions, NOTAMs, and aviation procedures—all in one place. Find upcoming aviation events and get comprehensive airport overviews to plan your flights with up-to-date data.
nassgeodata.gmu.edu API
Access detailed USDA crop data including acreage statistics, satellite imagery, and crop classifications for any location across the United States. Compare agricultural patterns year-over-year, download raster data files, or retrieve specific crop information at the point level to analyze farming trends and land use.