Discover/NASA API
live

NASA APIapi.nasa.gov ↗

Access NASA's APOD, Near Earth Objects, EPIC Earth imagery, Exoplanet Archive, EONET natural events, and Mars weather data via a single structured API.

Endpoint health
verified 7h ago
get_insight_mars_weather
get_apod
get_neo_feed
get_neo_lookup
get_exoplanet_data
9/9 passing latest checkself-healing
Endpoints
9
Updated
12d ago

What is the NASA API?

This API exposes 9 endpoints covering NASA's core open data services, from daily astronomy imagery to asteroid tracking and natural event feeds. The get_apod endpoint returns the Astronomy Picture of the Day with title, explanation, media URL, and HD image link. Other endpoints cover Near Earth Object orbital data, EPIC Earth photos from the DSCOVR spacecraft, exoplanet records queried via ADQL, and geolocated natural events from the EONET tracker.

This call costs1 credit / call— charged only on success
Try it
Date of the APOD image in YYYY-MM-DD format. Cannot be used with start_date/end_date or count. Takes priority if multiple are provided.
Return a specified number of random APOD images wrapped in {items: [...]}. 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. Cannot be used with date or count.
Start date for a range of APODs in YYYY-MM-DD format. Used with end_date. Cannot be used with date or count.
→ 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.
Call it over HTTPgrab a free API key at signup
curl -X GET 'https://api.parse.bot/scraper/6db36254-5228-41a6-82a1-a7102cd098e8/get_apod?date=2026-09-06&end_date=2026-09-08&start_date=2026-09-06' \
  -H 'X-API-Key: $PARSE_API_KEY'
All endpoints · 9 totalmissing one? ·

Get the Astronomy Picture of the Day (APOD) metadata. Returns a single APOD object when date is specified, or a wrapped array ({items: [...]}) when start_date/end_date or count is used. The primary use case is fetching by a single date. Parameters date, count, and start_date/end_date are mutually exclusive; date takes priority. Every record carries updated_at, an ISO-8601 UTC timestamp of when NASA's API served the record (taken from the response's Date header; NASA publishes no per-record modification time), so it reflects the moment of retrieval rather than an editorial change date. Dates outside NASA's published range (Jun 16, 1995 to today) return an upstream error with NASA's message.

Input
ParamTypeDescription
datestringDate of the APOD image in YYYY-MM-DD format. Cannot be used with start_date/end_date or count. Takes priority if multiple are provided.
countintegerReturn a specified number of random APOD images wrapped in {items: [...]}. 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. Cannot be used with date or count.
start_datestringStart date for a range of APODs in YYYY-MM-DD format. Used with end_date. Cannot be used with date or count.
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 (null for videos)",
    "title": "string — title of the APOD",
    "media_type": "string — 'image' or 'video'",
    "updated_at": "string — ISO-8601 UTC timestamp (YYYY-MM-DDTHH:MM:SSZ) of when NASA's API served this record; also present on each item in {items: [...]} range/count responses",
    "explanation": "string — description of the image"
  },
  "sample": {
    "data": {
      "url": "https://apod.nasa.gov/apod/image/2608/Comet220P_SA_960.jpg",
      "date": "2026-08-24",
      "hdurl": "https://apod.nasa.gov/apod/image/2608/Comet220P_SA_4104.jpg",
      "title": "Comet 220P in Outburst",
      "copyright": "Spilios Asimakopoulos",
      "media_type": "image",
      "updated_at": "2026-09-24T10:50:43Z",
      "explanation": "Comet 220P is unexpectedly bright. Normally, periodic Comet 220P/McNaught is so dim that to see it requires a telescope.",
      "service_version": "v1"
    },
    "status": "success"
  }
}

About the NASA API

Astronomy and Earth Imagery

The get_apod endpoint accepts a single date (YYYY-MM-DD), a start_date/end_date range, or a random count. A single-date request returns one object with url, hdurl, title, explanation, and media_type (image or video). Range and count requests return {items: [...]}. The thumbs parameter adds a video thumbnail URL when media_type is video. The get_epic_images endpoint returns metadata from the DSCOVR spacecraft's Earth Polychromatic Imaging Camera, including identifier, image filename, caption, and centroid_coordinates. Pass category as natural or enhanced; omit date to get the most recent available set.

Asteroid and Space Object Data

get_neo_feed returns Near Earth Objects grouped by date under near_earth_objects, covering up to a 7-day window between start_date and end_date. get_neo_lookup accepts a NASA JPL SPK-ID (e.g. 2000433 for Eros) and returns full detail: estimated_diameter in four units, close_approach_data with velocities and miss distances, absolute_magnitude_h, and the is_potentially_hazardous_asteroid flag. get_neo_browse pages through the full asteroid database with orbital summaries.

Exoplanets, Weather, and Natural Events

get_exoplanet_data queries the NASA Exoplanet Archive via ADQL. Use the query parameter for full control (e.g. select top 10 pl_name,hostname from ps where disc_year > 2020), or provide table and where separately. Note: SQL LIMIT is not supported — use ADQL TOP syntax. Results arrive in a results array. get_eonet_events returns active or closed natural events (wildfires, storms, eruptions) with GeoJSON geometry, filterable by status and limit. get_insight_mars_weather returns historical InSight lander data for sols 675–681 (October 2020); the mission ended November 2022, so no new data will be added.

NASA Image and Video Library

search_nasa_library takes a required q query string and optional media_type filter (image, video, or audio). Results come back under collection.items, each with associated metadata and asset links. Pagination is controlled via the page parameter (1-based). The metadata.total_hits field in the response tells you how many total records match.

Reliability & maintenanceVerified

The NASA API is a managed, monitored endpoint for api.nasa.gov — not a raw scraper you maintain. Every endpoint is automatically health-checked on a schedule, and when api.nasa.gov changes and a check fails, the API is automatically queued for repair and re-verified. It is built to keep working as the site underneath it changes.

This isn't an official api.nasa.gov API — it's an independent, maintained REST wrapper over public data. Where the source has no official API (or only a limited one), Parse gives you a stable contract over a source that never promised one, and keeps it current. Need a new endpoint or field? You can revise it yourself in plain English and the agent rebuilds it against the live site in minutes — contributing the change back to the shared API is free.

Last verified
7h ago
Latest check
9/9 endpoints passing
Maintenance
Monitored & self-healing
Will this API break when the source site changes?+
It's built not to. Every endpoint is health-checked on a schedule with automated test probes. When the source site changes and a check fails, the API is automatically queued for repair and re-verified — that's the self-healing layer. Each API page shows when its endpoints were last verified. And because marketplace APIs are shared, any fix reaches everyone using it.
Is this an official API from the source site?+
No — Parse APIs are independent, managed REST wrappers over publicly available data. That is the point: where a site has no official API (or only a limited one), Parse gives you a maintained, monitored endpoint for that data and keeps it working as the site changes — so you get a stable contract over a source that never promised one.
Can I fix or extend this API myself if I need a new endpoint or field?+
Yes — and you don't have to wait on us. This API was generated by the Parse agent, which stays attached. Describe the change in plain English ("add an endpoint that returns reviews", "fix the price field") in the revise box on the API page or via the revise_api MCP tool, and the agent rebuilds it against the live site in minutes. Contributing the change back to the public API is free.
What happens if I call an endpoint that has an issue?+
Errors are machine-readable: a bad call returns a clean status with the list of available endpoints and a repair hint, so an agent (or you) can recover or trigger a fix instead of failing silently. Confirmed failures feed the automatic repair queue.
Common use cases
  • Build a daily astronomy feed app using get_apod with title, explanation, and hdurl fields
  • Track potentially hazardous asteroids by polling get_neo_feed and filtering on is_potentially_hazardous_asteroid
  • Map active wildfires and storm events with GeoJSON geometry from get_eonet_events
  • Query confirmed exoplanets discovered after a given year using ADQL TOP syntax in get_exoplanet_data
  • Display real-time Earth imagery from the DSCOVR spacecraft via get_epic_images centroid coordinates and filenames
  • Build a NASA media search tool using search_nasa_library filtered by media_type and paginated results
  • Look up orbital and close-approach history for a specific asteroid using its SPK-ID in get_neo_lookup
Pricing & limitsSee full pricing →
TierPriceCredits/monthRate limit
Free$0/mo2005 req/min
Hobby$30/mo1,00020 req/min
Developer$100/mo5,000100 req/min
Team$300/mo20,000300 req/min
Company$1,000/mo100,000500 req/min

Each endpoint has a fixed posted price per successful call — most fall between 1 and 10 credits — shown on this API's page before you run it. Exceeding the rate limit returns a 429 response. Authenticate with the X-API-Key header.

Frequently asked questions
Does NASA have an official developer API?+
Yes. NASA publishes its official open APIs at https://api.nasa.gov, including APOD, NeoWs, EPIC, and others. This Parse API surfaces those datasets in a unified, structured interface.
What does `get_neo_feed` return and how do I narrow the date range?+
It returns Near Earth Objects grouped under near_earth_objects keyed by date string, plus an element_count and navigation links. Provide start_date and end_date in YYYY-MM-DD format; the window must be 7 days or fewer. If you omit end_date, it defaults to start_date plus 7 days.
Is InSight Mars weather data current?+
No. The InSight lander mission ended in November 2022. The get_insight_mars_weather endpoint returns historical data for sols 675–681 from October 2020. The sol_keys array tells you which sols are in the response, and validity_checks provides per-sol metadata.
Does the API return DONKI space weather events (solar flares, CMEs, geomagnetic storms)?+
Not currently. The API covers APOD, NEO asteroids, EPIC Earth imagery, InSight Mars weather (historical), NASA Image Library, Exoplanet Archive, and EONET natural events. You can fork it on Parse and revise to add DONKI endpoints from the NASA open API.
Can I filter `get_exoplanet_data` by planet name or host star?+
Yes, through the where parameter or a full query string using ADQL syntax. For example, set where to pl_name like '%Kepler%' or write a full query like select top 20 pl_name,hostname from ps where hostname = 'Kepler-90'. Use ADQL TOP instead of SQL LIMIT — LIMIT is not supported by the Exoplanet Archive TAP service.
Page content last updated . Spec covers 9 endpoints from api.nasa.gov.
Related APIs in Government PublicSee all →
images.nasa.gov API
Access data from images.nasa.gov.
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.
api.weather.gov API
Access data from api.weather.gov.
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.
apnews.com API
Search for news articles from Associated Press on any topic and retrieve complete article details including headlines, summaries, and content with easy pagination. Stay informed with current news stories by finding and reading articles on subjects that matter to you.
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.