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

# NASA Image and Video Library

> Search NASA's public image, video and audio library and get each asset's files, metadata and captions from the free images-api.nasa.gov API.

![](https://mintcdn.com/webrouter/JBFYvcRI1PVnd4YX/logo/data-apis/nasa-images.webp?fit=max\&auto=format\&n=JBFYvcRI1PVnd4YX\&q=85\&s=5845a538551e7ec30ac0bca6c55d8e2f)

[Web Catalog · Media](https://docs.webrouter.net/data-apis.md?category=media)

No key needed

Endpoints

5

Auth

None

[Vendor docs](https://images.nasa.gov/docs/images.nasa.gov_api_docs.pdf)

## Notes

* Keyless and free.
* Search and album results are Collection+JSON: items under collection.items, the total under collection.metadata.total\_hits, and the next page as a collection.links entry with rel=next.
* metadata and captions return only a location URL; fetch that file (on images-assets.nasa.gov) for the actual metadata or VTT/SRT captions.

## Endpoints

GET

Search the media library

Images, videos and audio matching free text and/or field filters.

[Open](#nasa-images-search)

GET

Get an asset's files

Manifest of an asset's file URLs (original, medium, small, thumbnail, metadata.json).

[Open](#nasa-images-asset)

GET

Get an asset's metadata location

URL of the asset's metadata.json file.

[Open](#nasa-images-metadata)

GET

Get a video's captions location

URL of a video asset's VTT or SRT captions file.

[Open](#nasa-images-captions)

GET

List an album's contents

Assets in a named media album.

[Open](#nasa-images-album)

### Search the media library

GET

`/search`

`nasa-images.search`

Images, videos and audio matching free text and/or field filters.

Input

<table>
  <thead>
    <tr>
      <th>
        Name
      </th>

      <th>
        Type
      </th>

      <th>
        In
      </th>

      <th>
        Notes
      </th>
    </tr>
  </thead>

  <tbody>
    <tr><td>`q`</td><td>string</td><td>query</td><td>Free text matched against all indexed metadata. Example `apollo 11`</td></tr>
    <tr><td>`center`</td><td>string</td><td>query</td><td>NASA center that published the media. Example `JSC`</td></tr>

    <tr>
      <td>
        `description`
      </td>

      <td>
        string
      </td>

      <td>
        query
      </td>

      <td>
        Terms to find in Description fields.
      </td>
    </tr>

    <tr>
      <td>
        `description_508`
      </td>

      <td>
        string
      </td>

      <td>
        query
      </td>

      <td>
        Terms to find in 508 Description fields.
      </td>
    </tr>

    <tr>
      <td>
        `keywords`
      </td>

      <td>
        string
      </td>

      <td>
        query
      </td>

      <td>
        Terms to find in Keywords fields, comma-separated.
      </td>
    </tr>

    <tr>
      <td>
        `location`
      </td>

      <td>
        string
      </td>

      <td>
        query
      </td>

      <td>
        Terms to find in Location fields.
      </td>
    </tr>

    <tr><td>`media_type`</td><td>string</td><td>query</td><td>Restrict to image, video and/or audio, comma-separated. Example `image`</td></tr>

    <tr>
      <td>
        `nasa_id`
      </td>

      <td>
        string
      </td>

      <td>
        query
      </td>

      <td>
        The media asset's NASA ID.
      </td>
    </tr>

    <tr>
      <td>
        `page`
      </td>

      <td>
        integer
      </td>

      <td>
        query
      </td>

      <td>
        Page number, from 1.
      </td>
    </tr>

    <tr>
      <td>
        `page_size`
      </td>

      <td>
        integer
      </td>

      <td>
        query
      </td>

      <td>
        Results per page (default 100).
      </td>
    </tr>

    <tr>
      <td>
        `photographer`
      </td>

      <td>
        string
      </td>

      <td>
        query
      </td>

      <td>
        Primary photographer's name.
      </td>
    </tr>

    <tr>
      <td>
        `secondary_creator`
      </td>

      <td>
        string
      </td>

      <td>
        query
      </td>

      <td>
        Secondary photographer or videographer's name.
      </td>
    </tr>

    <tr>
      <td>
        `title`
      </td>

      <td>
        string
      </td>

      <td>
        query
      </td>

      <td>
        Terms to find in Title fields.
      </td>
    </tr>

    <tr>
      <td>
        `year_start`
      </td>

      <td>
        string
      </td>

      <td>
        query
      </td>

      <td>
        First year of results, YYYY.
      </td>
    </tr>

    <tr>
      <td>
        `year_end`
      </td>

      <td>
        string
      </td>

      <td>
        query
      </td>

      <td>
        Last year of results, YYYY.
      </td>
    </tr>
  </tbody>
</table>

[Vendor docs](https://images.nasa.gov/docs/images.nasa.gov_api_docs.pdf) · Same job: [ambientCG](https://docs.webrouter.net/data-apis/ambientcg.md#ambientcg-assets-search), [ccMixter](https://docs.webrouter.net/data-apis/ccmixter.md#ccmixter-uploads-search), [Openverse](https://docs.webrouter.net/data-apis/openverse.md#openverse-images-search), [Pexels](https://docs.webrouter.net/data-apis/pexels.md#pexels-photos-search), [Poly Haven](https://docs.webrouter.net/data-apis/polyhaven.md#polyhaven-assets-list), [Sketchfab](https://docs.webrouter.net/data-apis/sketchfab.md#sketchfab-models-search)

```python Python theme={null}
router.call_data_api("nasa-images.search", {'q': 'apollo 11', 'center': 'JSC', 'media_type': 'image'})
```

```text MCP theme={null}
call_data_api(endpoint="nasa-images.search", params={"q": "apollo 11", "center": "JSC", "media_type": "image"})
```

> [!NOTE]
>
> * At least one parameter is required.

### Get an asset's files

GET

`/asset/{nasa_id}`

`nasa-images.asset`

Manifest of an asset's file URLs (original, medium, small, thumbnail, metadata.json).

Input

<table>
  <thead>
    <tr>
      <th>
        Name
      </th>

      <th>
        Type
      </th>

      <th>
        In
      </th>

      <th>
        Notes
      </th>
    </tr>
  </thead>

  <tbody>
    <tr><td>`nasa_id` required</td><td>string</td><td>path</td><td>The media asset's NASA ID. Example `as11-40-5874`</td></tr>
  </tbody>
</table>

[Vendor docs](https://images.nasa.gov/docs/images.nasa.gov_api_docs.pdf) · Same job: [Openverse](https://docs.webrouter.net/data-apis/openverse.md#openverse-images-get), [Pexels](https://docs.webrouter.net/data-apis/pexels.md#pexels-photos-get), [Poly Haven](https://docs.webrouter.net/data-apis/polyhaven.md#polyhaven-assets-get), [Sketchfab](https://docs.webrouter.net/data-apis/sketchfab.md#sketchfab-models-get), [Unsplash](https://docs.webrouter.net/data-apis/unsplash.md#unsplash-photos-get)

```python Python theme={null}
router.call_data_api("nasa-images.asset", {'nasa_id': 'as11-40-5874'})
```

```text MCP theme={null}
call_data_api(endpoint="nasa-images.asset", params={"nasa_id": "as11-40-5874"})
```

### Get an asset's metadata location

GET

`/metadata/{nasa_id}`

`nasa-images.metadata`

URL of the asset's metadata.json file.

Input

<table>
  <thead>
    <tr>
      <th>
        Name
      </th>

      <th>
        Type
      </th>

      <th>
        In
      </th>

      <th>
        Notes
      </th>
    </tr>
  </thead>

  <tbody>
    <tr><td>`nasa_id` required</td><td>string</td><td>path</td><td>The media asset's NASA ID. Example `as11-40-5874`</td></tr>
  </tbody>
</table>

[Vendor docs](https://images.nasa.gov/docs/images.nasa.gov_api_docs.pdf)

```python Python theme={null}
router.call_data_api("nasa-images.metadata", {'nasa_id': 'as11-40-5874'})
```

```text MCP theme={null}
call_data_api(endpoint="nasa-images.metadata", params={"nasa_id": "as11-40-5874"})
```

### Get a video's captions location

GET

`/captions/{nasa_id}`

`nasa-images.captions`

URL of a video asset's VTT or SRT captions file.

Input

<table>
  <thead>
    <tr>
      <th>
        Name
      </th>

      <th>
        Type
      </th>

      <th>
        In
      </th>

      <th>
        Notes
      </th>
    </tr>
  </thead>

  <tbody>
    <tr><td>`nasa_id` required</td><td>string</td><td>path</td><td>The video asset's NASA ID. Example `172_ISS-Slosh`</td></tr>
  </tbody>
</table>

[Vendor docs](https://images.nasa.gov/docs/images.nasa.gov_api_docs.pdf)

```python Python theme={null}
router.call_data_api("nasa-images.captions", {'nasa_id': '172_ISS-Slosh'})
```

```text MCP theme={null}
call_data_api(endpoint="nasa-images.captions", params={"nasa_id": "172_ISS-Slosh"})
```

### List an album's contents

GET

`/album/{album_name}`

`nasa-images.album`

Assets in a named media album.

Input

<table>
  <thead>
    <tr>
      <th>
        Name
      </th>

      <th>
        Type
      </th>

      <th>
        In
      </th>

      <th>
        Notes
      </th>
    </tr>
  </thead>

  <tbody>
    <tr><td>`album_name` required</td><td>string</td><td>path</td><td>Album name (case-sensitive). Example `apollo`</td></tr>

    <tr>
      <td>
        `page`
      </td>

      <td>
        integer
      </td>

      <td>
        query
      </td>

      <td>
        Page number, from 1.
      </td>
    </tr>
  </tbody>
</table>

[Vendor docs](https://images.nasa.gov/docs/images.nasa.gov_api_docs.pdf)

```python Python theme={null}
router.call_data_api("nasa-images.album", {'album_name': 'apollo'})
```

```text MCP theme={null}
call_data_api(endpoint="nasa-images.album", params={"album_name": "apollo"})
```


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.