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

AlexandriaNews & MediaAvailable now

Library of Congress Audio · Search audio

loc-gov/audio-assets/search_audio

Get news and media data with Library of Congress Audio · Search audio from Alexandria through one Spiral API key. Find historical or ethnographic recordings: "1930s field recordings of work songs", "blues recorded in Texas", "early opera on the National Jukebox", "oral history interviews about the Dust Bowl". Use get_audio for one item's full rights text and files, list_audio_collections to pick a collection. 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
urltext—

A loc.gov/audio/?q=... or loc.gov/collections/<slug>/?q=... URL; its q, fa and dates fill any filter not given.

limitnumber
1 to 50
—

Results per page; default 10.

querytext—

Words to search titles, notes, subjects and contributors, e.g. work songs.

date_tonumber
1000 to 2100
—

Latest year.

part_oftext—

Part-of facet (collection or division name), e.g. american folklife center.

subjecttext—

Subject facet, e.g. work songs, blues, interviews.

locationtext—

Location facet, e.g. texas, mississippi, ireland.

date_fromnumber
1000 to 2100
—

Earliest year.

collectiontext—

Collection slug from list_audio_collections or a loc.gov/collections/<slug>/ URL, e.g. national-jukebox, john-and-ruby-lomax.

contributortext—

Contributor facet as loc.gov writes it, e.g. lomax, john a. (john avery).

online_onlytrue or false—

Default true: only recordings playable online. false also returns campus-only items.

continuationtext—

Cursor from a previous call.

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": "loc-gov/audio-assets/search_audio",
    "input": {
      "url": "<url>"
    }
  }'

Frequently asked questions

How much does Library of Congress Audio · Search audio 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 Library of Congress Audio · Search audio through an API?

Send `POST /v1/runs` with `"provider": "alexandria"`, `"model": "loc-gov/audio-assets/search_audio"` 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 Library of Congress Audio · Search audio?

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

Can my AI agent use Library of Congress Audio · Search audio?

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