Openverse · Search audio
openverse-org/audio-assets/search_audioGet news and media data with Openverse · Search audio from Alexandria through one Spiral API key. Find reusable sound effects or music under a licence: "CC0 whoosh sound effects", "rain on window, CC BY or CC0, under 2 minutes", "commercially usable piano music". Use get_audio for one item, related_audio for similar ones. 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 |
|---|---|---|---|
url | text | — | An openverse.org/search/audio?q=... or api.openverse.org/v1/audio/?q=... URL; its q, license, license_type, source, category, length and extension fill any filter not given. |
limit | number 1 to 20 | — | Results per page; default 10. Anonymous access allows at most 20. |
query | text | — | Words to search titles, tags and descriptions, e.g. rain on window. |
length | list | — | Keep only these lengths: shortest (under 30 s), short (30 s to 2 min), medium (2 to 10 min), long (over 10 min). |
source | list | — | Keep only these collections (names from list_sources): freesound for sound effects and samples, jamendo for music, wikimedia_audio for Wikimedia Commons. |
license | list | — | Keep only these licences. |
category | list | — | Keep only these categories. Mostly set on Jamendo music; most Freesound sound effects are uncategorised, so prefer source: freesound for sound effects. |
extension | list | — | Keep only these file types, e.g. wav, mp3, flac, ogg (matches the original or the preview). |
continuation | text | — | Cursor from a previous call. |
commercial_use | true or false | — | true keeps only licences that allow commercial use (drops every NC licence). false applies no filter. |
modification_allowed | true or false | — | true keeps only licences that allow remixing (drops ND licences). false applies no filter. |
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": "openverse-org/audio-assets/search_audio",
"input": {
"url": "<url>"
}
}'Frequently asked questions
How much does Openverse · 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 Openverse · Search audio through an API?
Send `POST /v1/runs` with `"provider": "alexandria"`, `"model": "openverse-org/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 Openverse · Search audio?
No. Spiral runs it on its own Alexandria account and charges your Spiral balance.
Can my AI agent use Openverse · Search audio?
Yes. Agents find and run it through Spiral's MCP server, CLI or agent skill, with the same API key.