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.
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'
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.
| Param | Type | Description |
|---|---|---|
| date | string | Date of the APOD image in YYYY-MM-DD format. Cannot be used with start_date/end_date or count. |
| count | integer | Return a specified number of random APOD images. Cannot be used with date or start_date/end_date. |
| thumbs | boolean | Return URL of video thumbnail if media_type is video. |
| end_date | string | End date for a range of APODs in YYYY-MM-DD format. Used with start_date. |
| start_date | string | Start date for a range of APODs in YYYY-MM-DD format. Used with end_date. |
{
"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.
- 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.
| Tier | Price | Credits/month | Rate limit |
|---|---|---|---|
| Free | $0/mo | 100 | 5 req/min |
| Hobby | $30/mo | 1,000 | 20 req/min |
| Developer | $100/mo | 5,000 | 250 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.