# NASA Media Library – Asset File URLs

> NASA Media Library – Asset File URLs 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).

Returns all file URLs (original, large, medium, small, thumbnail, captions, metadata) for a specific NASA media library item by its nasa_id.

## Facts

- Endpoint: GET https://nasa-media.x402tookit.com/nasa-asset?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-asset-file-urls-236d3168
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_Pvyn3m9GBW01Ufi9wIT_J

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-asset-file-urls-236d3168
```

Example prompt: Can you get me all the file URLs for NASA library item as11-40-5874, including the original, thumbnail, and any captions or metadata files?

## When to prefer this

Use this endpoint when you already have a specific NASA asset ID (nasa_id) and need to resolve its actual downloadable file URLs across all available sizes and formats. This is the right choice after a search step that returned a nasa_id, when you need the original, large, medium, small, thumbnail, captions, or metadata file links. Prefer this over the metadata endpoint when you need file download links rather than EXIF-style descriptive metadata.

## Known failure modes

- Invalid or unknown nasa_id returns empty files array or error
- NASA upstream API unavailable causes degraded flag to be true
- nasa_id exceeds 120 characters causes input validation failure
- Item exists but has no associated files returns fileCount of 0
- Captions or metadata files absent for some media types (e.g. images may lack captions)

## How this service works

List the file URLs for a NASA library item by nasa_id: original, large, medium, small, thumbnail, captions, metadata.

## Output

Returns a list of file objects each with a URL, role (original, large, medium, small, thumb, metadata, captions), and format. Also includes the best download URL, total file count, a breakdown of files by role, the source URL, a rights note, disclaimer, and optional summary/verdict about asset availability. May indicate if the response is degraded or if some checks were skipped.

## 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": [
      "nasa_id"
     ],
     "properties": {
      "nasa_id": {
       "type": "string",
       "description": "NASA library id such as as11-40-5874 (from /nasa-search), up to 120 characters"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object",
     "properties": {
      "asOf": {
       "type": [
        "null",
        "string"
       ]
      },
      "files": {
       "type": [
        "array",
        "null"
       ],
       "items": {
        "type": "object",
        "properties": {
         "url": {
          "type": [
           "null",
           "string"
          ]
         },
         "role": {
          "type": [
           "null",
           "string"
          ]
         },
         "format": {
          "type": [
           "null",
           "string"
          ]
         }
        }
       }
      },
      "byRole": {
       "type": [
        "null",
        "object"
       ],
       "properties": {
        "large": {
         "type": [
          "null",
          "number"
         ]
        },
        "small": {
         "type": [
          "null",
          "number"
         ]
        },
        "thumb": {
         "type": [
          "null",
          "number"
         ]
        },
        "medium": {
         "type": [
          "null",
          "number"
         ]
        },
        "metadata": {
         "type": [
          "null",
          "number"
         ]
        },
        "original": {
         "type": [
          "null",
          "number"
         ]
        }
       }
      },
      "nasaId": {
       "type": [
        "null",
        "string"
       ]
      },
      "source": {
       "type": [
        "null",
        "string"
       ]
      },
      "reasons": {
       "type": [
        "array",
        "null"
       ],
       "items": {
        "type": "string"
       }
      },
      "summary": {
       "type": [
… (truncated)
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/nasa-media-library-asset-file-urls-236d3168/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)
