All free APIs
Free APIScienceAPI keyOfficial

NASA Open APIs

One free key unlocks APOD, Mars rover photos, near-Earth asteroids, EPIC and more

NASA's developer portal exposes a suite of space and Earth-science APIs behind a single free key, including the Astronomy Picture of the Day (APOD), Mars Rover Photos, Near Earth Object Web Service (NeoWs), EPIC Earth imagery, and the DONKI space-weather feed. All endpoints share api.nasa.gov and the same api_key query parameter. Responses are JSON (APOD can also return image/video URLs).

Free tier

Free; register for a key (no card). DEMO_KEY works for testing.

Rate limits

DEMO_KEY: 30 req/hour, 50 req/day per IP. Registered key: 1,000 req/hour.

Auth

API key

Base URL

https://api.nasa.gov

What you'd build with it

  • Daily space-image bot or newsletter pulling APOD
  • Asteroid close-approach alerts from NeoWs for a skill
  • Mars rover photo gallery enrichment for an automation
  • Pull EPIC Earth imagery for a geo/weather visualization

Key endpoints

  • GET/planetary/apodAstronomy Picture of the Day (image/video + explanation)
  • GET/mars-photos/api/v1/rovers/curiosity/photosMars rover photos by sol or Earth date
  • GET/neo/rest/v1/feedNear-Earth objects approaching in a date range
  • GET/EPIC/api/naturalLatest full-disc Earth images from DSCOVR EPIC
Members

Members get the runnable recipe

Sign in free to copy the example request, see a sample response, and read the gotchas.

Tags

spaceastronomyimagerynasaearth-science