Developers
Free music for your app
Search, stream, download and credit SoundFreely music from your own product. A public REST API, an MCP server for AI assistants, webhooks and a player you can embed anywhere. No sign-up to start.
API v1.0.0 · 24 endpoints · OpenAPI 3.1
Quickstart
The API lives at https://soundfreely.com/api/v1. Every read is a plain GET that returns JSON, allows any origin (CORS) and needs no key. Search for calm lo-fi tracks:
curl "https://soundfreely.com/api/v1/tracks?q=calm+lofi&limit=3"Ask for music that fits a video, with the version to use and how to fit it:
const res = await fetch(
'https://soundfreely.com/api/v1/recommend?brief=' + encodeURIComponent('upbeat travel vlog, no vocals') + '&duration=45'
)
const { data } = await res.json()
for (const r of data) {
console.log(r.track.title, r.version, r.fit, r.tip)
console.log('Download:', r.downloadUrl, '| Credit:', r.credit)
}Every track answer includes streamUrl (MP3 for players), downloadUrl(counts the download, then redirects to the file) and credit, the line your users must show.
Rules and limits
- Credit is the license. Wherever your users publish the music, show the track’s
creditline. Read the license. - Don’t re-host or redistribute the files as a music library; stream and download from our URLs.
- Without a key: 120 requests and 30 downloads a minute per IP. Above that the answer is
429withRetry-After. - Answers are cached for 60 seconds at the edge and carry an
ETag: send it back inIf-None-Matchand unchanged data costs a304with no body. - Errors are always JSON:
{ "error": { "code": "not_found", "message": "Track not found" } }. /api/v1never breaks: new fields are only added. A breaking change would mean/api/v2.
API keys
Everything above works without a key. A free key is for apps that call us from a server, where all of their users share one IP, and it unlocks more:
| Without a key | With a key | |
|---|---|---|
| Requests | 120 a minute per IP | 600 a minute per key (more on request) |
| Downloads | 30 a minute per IP | 150 a minute per key |
| Webhooks | — | track.published, track.updated, track.removed |
| Change sync | — | GET /changes?since=… |
| Batch reads | — | GET /tracks/batch (up to 100) |
| Whole catalog | — | GET /catalog (JSON or CSV) |
Send the key in a header. A wrong or disabled key is a 401, never ignored:
curl -H "Authorization: Bearer sf_123_…" "https://soundfreely.com/api/v1/changes?since=2026-11-01T00:00:00Z"Keep the key on your server. Answers to keyed requests are never cached by browsers or proxies.
Webhooks
With a key, give us an https URL and we POST an event whenever a track is published, edited or removed. Each request is signed with your webhook secret; check the signature before you trust the body. We try three times: at once, after 5 seconds and after 30 seconds.
POST https://your-app.example/hooks
SoundFreely-Signature: t=1764500000,v1=5f1c…
{ "id": "…", "type": "track.published", "createdAt": "2026-11-30T12:00:00Z",
"data": { "slug": "quiet-hours", "title": "Quiet Hours", … } }import { createHmac, timingSafeEqual } from 'node:crypto'
function verify(rawBody, header, secret) {
const { t, v1 } = Object.fromEntries(header.split(',').map((p) => p.split('=')))
if (Math.abs(Date.now() / 1000 - Number(t)) > 300) return false // older than 5 minutes
const expected = createHmac('sha256', secret).update(t + '.' + rawBody).digest('hex')
return timingSafeEqual(Buffer.from(expected), Buffer.from(v1))
}Embeddable player
Every track has a player you can put on any page. It plays, shows the waveform, links the free download and always keeps the credit line. Add ?theme=dark for dark pages. The code is also under “Embed this track” on each track page.
<iframe src="https://soundfreely.com/embed/quiet-hours" width="100%" height="152"
style="border:0;border-radius:14px" loading="lazy" allow="autoplay; encrypted-media"
title="Quiet Hours by SoundFreely"></iframe>Apps that support oEmbed can unfurl a track link themselves through https://soundfreely.com/api/v1/oembed?url=…; track pages advertise it.
MCP server for AI assistants
The Model Context Protocol lets assistants such as Claude, ChatGPT, Cursor and VS Code use SoundFreely directly: search the catalog, recommend music for a video, look up a track, and hand back the download link and the credit line. Read-only, no sign-up.
https://soundfreely.com/mcpAdd it to a client that supports remote (Streamable HTTP) servers, for example:
{
"mcpServers": {
"soundfreely": { "type": "http", "url": "https://soundfreely.com/mcp" }
}
}claude mcp add --transport http soundfreely https://soundfreely.com/mcpTools: search_music, recommend_music, get_track, similar_tracks, list_tags, get_credit, get_download_link. The same limits apply as for the API; an API key in the Authorization header raises them.
Endpoint reference
Generated from the contract, openapi.json. Paths are relative to https://soundfreely.com/api/v1.
Tracks
GET
/tracksList published tracks with search, filters, sort and paginationParameter In Type qFree text. Matches title, description, category and tags (title weighs most) and tolerates typos.query string categoryquery string moodComma-separated slugs. OR inside a filter, AND between filters.query string genreComma-separated slugs.query string useComma-separated slugs.query string typequery instrumental | vocal lengthshort < 1:00, medium 1:00–2:59, long ≥ 3:00.query short | medium | long instrumentInstrument slugs, comma-separated (OR).query string energyEnergy levels 1 (calm) to 5 (intense), comma-separated (OR).query string temposlow < 90 BPM, medium 90–119, fast 120–139, very-fast ≥ 140.query slow | medium | fast | very-fast bpmMinquery integer 40–250 bpmMaxquery integer 40–250 vocalLead voice of vocal tracks.query female | male | mixed | choir sort`newest` by default; `relevance` by default when `q` is given.query newest | popular | title | relevance pagequery integer 1–1000 limitquery integer 1–50 GET
/catalogKeyEvery published track with full details, as JSON or CSV (API key)Parameter In Type formatquery json | csv GET
/changesKeyTracks published, edited or removed since a time, oldest first (API key)Keep a local copy in sync. Call with the time of your last sync, then again with `meta.next` while `meta.hasMore` is true.
Parameter In Type sincerequiredquery string limitquery integer 1–200 GET
/tracks/batchKeyUp to 100 tracks with full details in one call (API key)Parameter In Type slugsrequiredComma-separated slugs, at most 100.query string GET
/tracks/{slug}One published track with every detailParameter In Type slugrequiredpath string GET
/tracks/{slug}/similarUp to 8 similar tracks (same category, shared moods first)Parameter In Type slugrequiredpath string GET
/tracks/{slug}/downloadRecord a download and redirect to the fileAnswers `302` to a presigned link valid for 5 minutes that downloads the MP3 as `SoundFreely - {Title}.mp3`. Never cached. Limit 30 a minute per IP.
Parameter In Type slugrequiredpath string versionquery full | cut60 | cut30 sourceFor statistics only.query web | api | embed GET
/tracks/{slug}/creditThe credit line as plain text, HTML and MarkdownParameter In Type slugrequiredpath string GET
/oembedoEmbed for a track page (the embeddable player as rich HTML)oEmbed 1.0 provider for `https://soundfreely.com/music/{slug}` (and `/embed/{slug}`). Track pages advertise it with `<link rel="alternate" type="application/json+oembed">`. The player itself is `https://soundfreely.com/embed/{slug}` (`?theme=dark` for dark pages), 152 px high.
Parameter In Type urlrequiredquery string formatquery json maxwidthquery integer 200–4000 maxheightquery integer 1–4000
Categories
GET
/tagsMoods, genres, uses and instruments used by published tracks, with countsParameter In Type kindquery mood | genre | use | instrument GET
/categoriesCategories (the site's "Moods") that have published tracks, with countsNo parameters.
GET
/categories/{slug}One category with description and "best for"Parameter In Type slugrequiredpath string
Blog
GET
/postsPublished blog articles, newest firstParameter In Type categoryquery string authorquery string pagequery integer 1–1000 limitquery integer 1–50 GET
/posts/{slug}One published article as plain text, with its headings, FAQ and the tracks it usesParameter In Type slugrequiredpath string
Search
GET
/recommendMusic for a video, from a short brief and its lengthSearches with the brief (same engine as `/tracks?q=`: synonyms, spelling correction, phrases such as "no vocals" or "slow") and, for each track, picks the version that fits `duration`: the shortest version at least as long as the video (`fit` = `fits` or `trim`), or the full track to loop (`fit` = `loop`).
Parameter In Type briefrequiredquery string durationLength of the video in seconds.query integer 5–3600 typequery instrumental | vocal limitquery integer 1–10 GET
/filtersFilter options with their counts for the current searchTakes the filter parameters of `/tracks`. Each facet ignores its own selection, so its options stay choosable; options with a count of 0 are shown disabled by the site.
Parameter In Type qquery string categoryquery string moodquery string genrequery string usequery string typequery instrumental | vocal lengthquery short | medium | long instrumentInstrument slugs, comma-separated (OR).query string energyEnergy levels 1 (calm) to 5 (intense), comma-separated (OR).query string temposlow < 90 BPM, medium 90–119, fast 120–139, very-fast ≥ 140.query slow | medium | fast | very-fast bpmMinquery integer 40–250 bpmMaxquery integer 40–250 vocalLead voice of vocal tracks.query female | male | mixed | choir GET
/search/suggestUp to 6 suggestions for the search fieldParameter In Type qrequiredquery string
Events
POST
/events/playSite onlyRecord a play (sent after 5 seconds of listening, once per track per visit)Site origin only.
No parameters.
Forms
POST
/requestsSite onlyContact, request a track, report a claim, or request an API keySite origin only. Includes a hidden honeypot field `website` that people leave empty.
No parameters.
POST
/claims/screenshotSite onlyGet a presigned upload for a claim screenshotSite origin only. Answers a short-lived presigned PUT to private storage; the browser uploads the file there with the given headers (the signature fixes type and size), then sends `upload` as `attachment` with the claim to POST /requests. PNG, JPG or WebP, 5 MB at most.
No parameters.
POST
/newsletterSite onlySign up for the newsletter (double opt-in)Site origin only. The address stays pending until the link in the confirmation e-mail is opened. The answer is the same whether or not the address was already signed up.
No parameters.
POST
/newsletter/confirmConfirm a newsletter sign-upCalled by the page the confirmation e-mail links to. The token may be sent in the query string, a JSON body or a form body; no Origin is required (the token is the secret). Confirming twice answers the same.
Parameter In Type tokenquery string POST
/newsletter/unsubscribeUnsubscribe from the newsletter in one clickUsed by the unsubscribe page and by mail apps' one-click button (List-Unsubscribe-Post, RFC 8058). The token may be sent in the query string, a JSON body or a form body; no Origin is required. Unsubscribing twice answers the same.
Parameter In Type tokenquery string
System
GET
/healthLiveness and database checkNo parameters.
Changelog
- November 30, 2026. Recommendations, tags, credit formats, ETags, feeds, oEmbed and the embeddable player; optional API keys with webhooks, change sync, batch reads and the catalog export; the MCP server.
- November 30, 2026. Blog articles (
/posts). - November 30, 2026. Instruments, energy, tempo, BPM range and vocal filters; natural-language search with corrections.
- November 29, 2026. API v1: tracks, categories, filters, search suggestions, downloads, plays and forms.
Request a free API key
Tell us what you’re building. We issue keys by hand, usually within two working days.