NASA Image and Video Library · Search media
images-nasa-gov/media/search_mediaGet 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
| Field | Kind | Default | Description |
|---|---|---|---|
q | text | — | Free-text search over all metadata, e.g. rocket launch, countdown, mission control. |
url | text | — | A pasted images.nasa.gov/search or images-api.nasa.gov/search URL; its filters apply and explicit inputs override them. |
album | text | — | Album name, e.g. SpaceX_Roman_Space_Telescope (lists an album filtered by media_type). |
title | text | — | Terms to match in titles. |
center | text | — | Publishing NASA center code: KSC, JSC, GSFC, JPL, HQ, MSFC, ARC, AFRC, GRC, LaRC, SSC. |
nasa_id | text | — | Exact NASA id. |
keywords | list | — | Terms to match in the keywords field. |
location | text | — | Terms to match in locations, e.g. Launch Complex 39A. |
year_end | number 1900 to 2100 | — | year_end |
page_size | number 1 to 50 | 10 | page_size |
media_type | one of audio, image, video, all | audio | Media type to return; defaults to audio. |
year_start | number 1900 to 2100 | — | year_start |
continuation | text | — | Cursor from a previous call's continuation. |
photographer | text | — | Primary photographer/producer name. |
include_files | true 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.