> ## Documentation Index
> Fetch the complete documentation index at: https://lava.so/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# NASA

> 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).

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](https://api.nasa.gov/) for full documentation.

<Info>This provider is **managed** — no additional setup required.</Info>

<Info>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/\&#123;endpoint\&#125;?api\_key=DEMO\_KEY](https://api.nasa.gov/\&#123;endpoint\&#125;?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.</Info>

## Endpoints

### Get Astronomy Picture of the Day

**GET** `https://api.nasa.gov/planetary/apod?api_key=DEMO_KEY` — Free

<Tabs>
  <Tab title="SDK">
    ```typescript theme={null}
    const data = await lava.gateway('https://api.nasa.gov/planetary/apod?api_key=DEMO_KEY', { method: 'GET' });
    ```
  </Tab>

  <Tab title="cURL">
    ```bash theme={null}
    curl "https://api.lava.so/v1/forward?u=https%3A%2F%2Fapi.nasa.gov%2Fplanetary%2Fapod%3Fapi_key%3DDEMO_KEY" \
      -H "Authorization: Bearer $LAVA_SECRET_KEY"
    ```
  </Tab>
</Tabs>

### 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

<Tabs>
  <Tab title="SDK">
    ```typescript theme={null}
    const data = await lava.gateway('https://api.nasa.gov/neo/rest/v1/feed?start_date=2026-04-01&api_key=DEMO_KEY', { method: 'GET' });
    ```
  </Tab>

  <Tab title="cURL">
    ```bash theme={null}
    curl "https://api.lava.so/v1/forward?u=https%3A%2F%2Fapi.nasa.gov%2Fneo%2Frest%2Fv1%2Ffeed%3Fstart_date%3D2026-04-01%26api_key%3DDEMO_KEY" \
      -H "Authorization: Bearer $LAVA_SECRET_KEY"
    ```
  </Tab>
</Tabs>

## Next Steps

<CardGroup cols={2}>
  <Card title="All Providers" icon="grid" href="/gateway/supported-providers">
    Browse all supported AI providers
  </Card>

  <Card title="Forward Proxy" icon="route" href="/gateway/forward-proxy">
    Learn how to construct proxy URLs and authenticate requests
  </Card>
</CardGroup>
