Skip to main content
NASA open data APIs spanning astronomy, earth science, and planetary exploration — including Astronomy Picture of the Day (APOD), near-Earth object tracking (NeoWs), and space weather events (DONKI). Best for educational content, science dashboards, or workflows needing authoritative space and earth observation data. Free with generous rate limits (1,000 req/hr with registered key). 2 example endpoints available through Lava’s AI Gateway. See the NASA API docs for full documentation.
This provider is managed — no additional setup required.
This is a catch-all provider — any valid URL under https://api.nasa.gov is supported. NASA open data APIs. Construct URL as https://api.nasa.gov/{endpoint}?api_key=DEMO_KEY. Common endpoints: /planetary/apod (Astronomy Picture of the Day), /neo/rest/v1/feed (near-Earth objects), /DONKI/FLR (solar flares). The endpoints below are curated examples.

Endpoints

Get Astronomy Picture of the Day

GET https://api.nasa.gov/planetary/apod?api_key=DEMO_KEY — Free
const data = await lava.gateway('https://api.nasa.gov/planetary/apod?api_key=DEMO_KEY', { method: 'GET' });

Browse near-Earth objects by date

GET https://api.nasa.gov/neo/rest/v1/feed?start_date=2026-04-01&api_key=DEMO_KEY — Free
const data = await lava.gateway('https://api.nasa.gov/neo/rest/v1/feed?start_date=2026-04-01&api_key=DEMO_KEY', { method: 'GET' });

Next Steps

All Providers

Browse all supported AI providers

Forward Proxy

Learn how to construct proxy URLs and authenticate requests