Royalty-Free Music (and Sounds) for Your Games
There’s no single “Spotify for game music” API, but there are good options the bot can use. Openverse needs no key at all, so it’s the easiest place to start.
| Source | API? | Key? | Licenses | Best for |
|---|---|---|---|---|
| Openverse | ✅ | ❌ None needed | CC0, CC BY, more (filterable) | Start here. Searches Jamendo, Freesound, Wikimedia, and others at once |
| Jamendo | ✅ | Client ID | Per-track CC, many are NonCommercial | Full songs, lots of genres |
| Freesound | ✅ | API key | CC0, CC BY, CC BY-NC | Sound effects, loops, ambience |
| OpenGameArt | ❌ | — | Mostly CC0 / CC BY | Music made for games |
| Incompetech (Kevin MacLeod) | ❌ | — | CC BY 4.0 | Classic game and video background tracks |
| Pixabay Music | ❌ (no music API) | — | Pixabay Content License | Modern tracks, no credit required |
For sites without an API, download the file yourself and drop it into the Bash chat. The bot will add it
to www/assets/music/ and write the credit.
Licenses: the short version
| License | Use in a free game | Use in a paid or ad-supported game | Credit needed |
|---|---|---|---|
| CC0 / Public Domain | ✅ | ✅ | No |
| CC BY | ✅ | ✅ | Yes |
| CC BY-SA | ✅ | ✅ | Yes, and changes to the music itself must be shared under the same license |
| CC BY-NC | ✅ | ❌ | Yes |
| CC BY-ND | ✅ as-is | ✅ as-is | Yes, and the track can’t be edited or remixed |
Safe default for the bot: CC0 and CC BY only. Always keep www/CREDITS.md up to date.
Openverse (no key)
Just ask:
Find calm looping background music on Openverse, CC0 or CC BY only, and add it to the game with a mute button.
The bot searches:
https://api.openverse.org/v1/audio/?q=calm+loop&category=music&license=cc0,by
Every result includes the creator, the license, and a ready-made attribution line for CREDITS.md.
Limits without a key: about 20 searches a minute / 200 a day, and 20 results per page. That’s plenty for picking music. Openverse also offers free registered access for higher limits. It uses short-lived tokens, so ask the bot if you need it.
Jamendo (client ID)
- Sign up at https://devportal.jamendo.com and create an application.
- Copy its Client ID.
- Jamendo expects the Client ID in the address (
?client_id=...), which Bash keys can’t fill in. A Client ID is not a password (Jamendo’s own docs share a test one), so you can paste it in the chat or put it in the bot’s tips.
Then:
Search Jamendo for upbeat chiptune music with client ID
…, only tracks that allow downloads and have CC BY or CC BY-SA.
The bot calls https://api.jamendo.com/v3.0/tracks/?client_id=…&tags=chiptune&include=licenses&audiodownload_allowed=true
and checks each track’s license before using it.
Commercial note: Jamendo’s API is free for non-commercial apps. Many Jamendo tracks are NonCommercial. For a paid game, stick to CC BY tracks, or buy a Jamendo Licensing license.
Credits file
The bot keeps one file, www/CREDITS.md:
## Music
- "Calm Loop" by Jane Doe (https://openverse.org/audio/...) — CC BY 4.0
## Sound effects
- "Coin" by sfxuser (https://freesound.org/s/12345/) — CC0
Show the credits in the game too, for example on a small Credits screen.
Links
- Openverse API: https://api.openverse.org/v1/
- Jamendo API: https://developer.jamendo.com/v3.0
- Creative Commons licenses explained: https://creativecommons.org/licenses/