# NASA Media Library - Search by Center

> NASA Media Library - Search by Center 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, video, and audio library filtered by a specific NASA center (e.g. JPL, JSC, KSC) with optional keyword and year range filters.

## Facts

- Endpoint: GET https://nasa-media.x402tookit.com/nasa-media-by-center?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-by-center-779bf047
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_TuDRLXvstX8NbZvuWZVO1

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-by-center-779bf047
```

Example prompt: Can you find me up to 15 images from JPL about Mars rovers created between 2010 and 2020?

## When to prefer this

Use this endpoint when you need to narrow NASA media results to a specific NASA center (JPL, JSC, KSC, GSFC, etc.) rather than searching all centers at once. Ideal for research tasks tied to a particular facility's missions or projects. Prefer this over the general search endpoint when center attribution is important.

## Known failure modes

- Invalid center code returns error or empty results
- Search query exceeding 100 characters rejected
- year_start or year_end outside 1900-2100 range causes validation error
- n parameter outside 1-25 range returns error
- Network timeout or NASA API upstream unavailability
- Payment failure returns 402 before query is executed

## How this service works

Media from one NASA center (JSC, GSFC, JPL, ARC, KSC, MSFC...) with optional words and years; returns the center code list.

## Output

Returns a list of NASA media items from the specified center, each including NASA ID, title, description, date created, media type (image/video/audio), thumbnail URL, collection URL, keywords, year, center code, copyright info, and photographer details. Also returns metadata about the center and a list of available center codes.

## 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": [
      "center"
     ],
     "properties": {
      "n": {
       "type": "integer",
       "description": "Results to return, 1 to 25, default 10"
      },
      "q": {
       "type": "string",
       "description": "Optional search words, up to 100 characters"
      },
      "center": {
       "type": "string",
       "description": "Center code: HQ, ARC, AFRC, GRC, GSFC, JPL, JSC, KSC, LARC, MSFC, SSC, STScI, LRC"
      },
      "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"
          ],
          "items": {
           "type": "string"
          }
         },
         "location": {},
         "copyright": {},
         "mediaType": {
          "type": [
           "null",
           "string"
          ]
         },
         "thumbnail": {
          "ty
… (truncated)
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/nasa-media-library-search-by-center-779bf047/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)
