# NASA Image and Video Library Search

> NASA Image and Video Library Search is a paid API for AI agents from nasa-x402.vercel.app, paid per call via x402, $0.002/call, status down (last checked 2026-10-13, last successful call 2026-06-04).

Searches NASA's archive of 140,000+ space images and videos by keyword, returning titles, descriptions, thumbnails, and metadata

## Facts

- Endpoint: GET https://nasa-x402.vercel.app/nasa/images?utm_source=zero.xyz
- Price: $0.002/call
- Payment: x402
- Status: down
- Last checked: 2026-10-13
- Last successful call: 2026-06-04
- Success rate: 100% of calls made through Zero
- Activations on Zero: 5
- Tags: x402
- Canonical page: https://www.zero.xyz/c/nasa-x402-vercel-app-03d6c9ea
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_LrMCqTs45K5xHU6jQUPst

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-x402-vercel-app-03d6c9ea
```

Example prompt: Search NASA's image archive for Hubble nebula photos and show me the top 10 results with thumbnails and descriptions.

## When to prefer this

Use this endpoint when an agent needs to find real NASA space imagery, historical mission photos, or astronomical images by keyword — it provides direct access to NASA's canonical 140,000+ item archive with thumbnails and metadata, making it ideal for any space-related visual content discovery task.

## Known failure modes

- Missing required 'q' query parameter returns an error
- Empty result set when query matches no archived items
- Limit value exceeding 100 may be clamped or cause an error
- Network timeout if NASA's upstream image library API is slow
- Payment failure (402) if USDC balance is insufficient

## How this service works

NASA Image and Video Library search. Search NASA's entire archive of 140,000+ space images — Mars rovers, Apollo missions, Hubble, James Webb, Earth from space, astronauts, and more.

## Output

Returns a list of matching NASA media items including title, NASA ID, originating center, keywords, thumbnail image URL, description text, and creation date, plus a total_hits count indicating how many records matched the query.

## Example request

```json
{
 "input": {
  "type": "http",
  "method": "GET",
  "queryParams": {
   "q": "Saturn rings",
   "limit": "10"
  }
 }
}
```

## 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": {
      "q": {
       "type": "string",
       "description": "Search query — e.g. 'Mars Curiosity rover', 'Apollo 11', 'Hubble nebula', 'James Webb telescope'"
      },
      "limit": {
       "type": "string",
       "description": "Number of results (default 10, max 100)"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object",
     "properties": {
      "query": {
       "type": "string"
      },
      "results": {
       "type": "array"
      },
      "total_hits": {
       "type": "number"
      }
     }
    }
   }
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/nasa-x402-vercel-app-03d6c9ea/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from nasa-x402.vercel.app](https://www.zero.xyz/host/nasa-x402.vercel.app/llms.txt)
