# NASA Media Library Search

> NASA Media Library Search is a paid API for AI agents from nasa-media.x402tookit.com, paid per call via x402, $0.02/call, status unknown (last checked 2026-11-02).

Search NASA's Image and Video Library by keywords, media type, year range, and NASA center, returning titles, dates, thumbnails, rights, and collection URLs.

## Facts

- Endpoint: GET https://nasa-media.x402tookit.com/nasa-search?utm_source=zero.xyz
- Price: $0.02/call
- Payment: x402
- Status: unknown
- Last checked: 2026-11-02
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/nasa-media-library-search-0ff92bfa
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_N7gq9BbLXpTyuvXK8oSX6

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability nasa-media-library-search-0ff92bfa
```

Example prompt: Search the NASA media library for images of the Hubble Space Telescope from JPL between 1990 and 2000, and return the first 15 results.

## When to prefer this

Use this endpoint when you need to search NASA's official media archive by keyword across images, videos, and audio, optionally scoped to a specific NASA center or date range. Prefer this over sibling endpoints when you want broad keyword-based discovery rather than mission-specific (Apollo, Mars rover) or center-specific browsing. Choose this over general web image search when you need official NASA provenance, rights information, and structured metadata like NASA IDs and collection URLs.

## Known failure modes

- Missing required query parameter 'q' returns a validation error
- Query string exceeding 100 characters may be rejected or truncated
- Invalid center code returns empty results or an error
- Year range outside 1900–2100 may cause a validation error
- Page number above 100 returns an error
- No matching results returns an empty items array
- Upstream NASA API unavailability causes a degraded or error response

## How this service works

Search NASA's Image and Video Library by words, media type, year range and center; titles, dates, centers, thumbnails, rights.

## Output

Returns a paginated list of NASA media items matching the query, each containing: NASA ID, title, description, date created, year, media type (image/video/audio), NASA center, thumbnail URL, collection URL, keywords, photographer, copyright/rights review status, and secondary creator info. Also includes a summary, total result count, and source attribution.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "GET"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "required": [
      "q"
     ],
     "properties": {
      "n": {
       "type": "integer",
       "description": "Results to return, 1 to 25, default 10"
      },
      "q": {
       "type": "string",
       "description": "Search words, up to 100 characters"
      },
      "page": {
       "type": "integer",
       "description": "Result page, 1 to 100, default 1"
      },
      "center": {
       "type": "string",
       "description": "NASA center code such as JSC, GSFC, JPL, ARC, KSC, MSFC (see /nasa-media-by-center)"
      },
      "year_end": {
       "type": "integer",
       "description": "Last year of date created, 1900 to 2100"
      },
      "media_type": {
       "type": "string",
       "description": "image, video or audio (comma-separate for several); default all"
      },
      "year_start": {
       "type": "integer",
       "description": "First year of date created, 1900 to 2100"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object",
     "properties": {
      "asOf": {
       "type": [
        "null",
        "string"
       ]
      },
      "items": {
       "type": [
        "array",
        "null"
       ],
       "items": {
        "type": "object",
        "properties": {
         "year": {
          "type": [
           "null",
           "number"
          ]
         },
         "title": {
          "type": [
           "null",
           "string"
          ]
         },
         "center": {
          "type": [
           "null",
           "string"
          ]
         },
         "nasaId": {
          "type": [
           "null",
           "string"
          ]
         },
         "keywords": {
          "type": [
           "array",
           "null"
          ]
         },
         "location": {
          "type": [
           "null",
           "string"
          ]
         },
         "copyright": {},
         "mediaType": {
     
… (truncated)
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/nasa-media-library-search-0ff92bfa/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from nasa-media.x402tookit.com](https://www.zero.xyz/host/nasa-media.x402tookit.com/llms.txt)
