Spiral gives your agent every tool with one account. Browse the tools →

AlexandriaNews & MediaAvailable now

NASA Image and Video Library · Search media

images-nasa-gov/media/search_media

Get news and media data with NASA Image and Video Library · Search media from Alexandria through one Spiral API key. Find license-clean NASA sound effects or media: "rocket launch audio", "mission control countdown", "Apollo 11 images", or an album's audio. Use get_asset next for duration, sample rate and every file rendition. It runs in the background and returns structured JSON. Pay as you go, with no subscription.

Pricing

$0.00873 per call.

Limits

Runs
In the background
Returns
json
Longest queue wait
1 hour
Run deadline
5 minutes
Longest run, end to end
225 minutes
Largest inline input
1 MB
Largest input file
2 GB
Largest output
5 GB

Input

FieldKindDefaultDescription
qtext—

Free-text search over all metadata, e.g. rocket launch, countdown, mission control.

urltext—

A pasted images.nasa.gov/search or images-api.nasa.gov/search URL; its filters apply and explicit inputs override them.

albumtext—

Album name, e.g. SpaceX_Roman_Space_Telescope (lists an album filtered by media_type).

titletext—

Terms to match in titles.

centertext—

Publishing NASA center code: KSC, JSC, GSFC, JPL, HQ, MSFC, ARC, AFRC, GRC, LaRC, SSC.

nasa_idtext—

Exact NASA id.

keywordslist—

Terms to match in the keywords field.

locationtext—

Terms to match in locations, e.g. Launch Complex 39A.

year_endnumber
1900 to 2100
—

year_end

page_sizenumber
1 to 50
10

page_size

media_typeone of
audio, image, video, all
audio

Media type to return; defaults to audio.

year_startnumber
1900 to 2100
—

year_start

continuationtext—

Cursor from a previous call's continuation.

photographertext—

Primary photographer/producer name.

include_filestrue or false—

Resolve preview_url/download_url for audio and video hits (one manifest request per hit). Images always carry them.

Same request in code

curl https://api.spiral.ai/v1/runs \
  -H "Authorization: Bearer $SPIRAL_API_KEY" \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: $(uuidgen)" \
  -d '{
    "provider": "alexandria",
    "model": "images-nasa-gov/media/search_media",
    "input": {
      "q": "<q>"
    }
  }'

Frequently asked questions

How much does NASA Image and Video Library · Search media cost?

$0.00873 per call. You pay as you go from one Spiral balance, with no subscription, and a failed run is not charged.

How do I use NASA Image and Video Library · Search media through an API?

Send `POST /v1/runs` with `"provider": "alexandria"`, `"model": "images-nasa-gov/media/search_media"` and the input fields on this page, using one Spiral API key. It runs in the background: poll the run, or name a webhook to be told when it finishes.

Do I need an account with Alexandria to use NASA Image and Video Library · Search media?

No. Spiral runs it on its own Alexandria account and charges your Spiral balance.

Can my AI agent use NASA Image and Video Library · Search media?

Yes. Agents find and run it through Spiral's MCP server, CLI or agent skill, with the same API key.