Free with credit · No sign-up
Browse music

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

Start in a minuteRequest a free keyopenapi.json

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 credit line. 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 429 with Retry-After.
  • Answers are cached for 60 seconds at the edge and carry an ETag: send it back in If-None-Match and unchanged data costs a 304 with no body.
  • Errors are always JSON: { "error": { "code": "not_found", "message": "Track not found" } }.
  • /api/v1 never 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 keyWith a key
Requests120 a minute per IP600 a minute per key (more on request)
Downloads30 a minute per IP150 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/mcp

Add 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/mcp

Tools: 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 pagination
    ParameterInType
    qFree text. Matches title, description, category and tags (title weighs most) and tolerates typos.querystring
    categoryquerystring
    moodComma-separated slugs. OR inside a filter, AND between filters.querystring
    genreComma-separated slugs.querystring
    useComma-separated slugs.querystring
    typequeryinstrumental | vocal
    lengthshort < 1:00, medium 1:00–2:59, long ≥ 3:00.queryshort | medium | long
    instrumentInstrument slugs, comma-separated (OR).querystring
    energyEnergy levels 1 (calm) to 5 (intense), comma-separated (OR).querystring
    temposlow < 90 BPM, medium 90–119, fast 120–139, very-fast ≥ 140.queryslow | medium | fast | very-fast
    bpmMinqueryinteger 40–250
    bpmMaxqueryinteger 40–250
    vocalLead voice of vocal tracks.queryfemale | male | mixed | choir
    sort`newest` by default; `relevance` by default when `q` is given.querynewest | popular | title | relevance
    pagequeryinteger 1–1000
    limitqueryinteger 1–50
  • GET/catalogKeyEvery published track with full details, as JSON or CSV (API key)
    ParameterInType
    formatqueryjson | 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.

    ParameterInType
    since requiredquerystring
    limitqueryinteger 1–200
  • GET/tracks/batchKeyUp to 100 tracks with full details in one call (API key)
    ParameterInType
    slugs requiredComma-separated slugs, at most 100.querystring
  • GET/tracks/{slug}One published track with every detail
    ParameterInType
    slug requiredpathstring
  • GET/tracks/{slug}/similarUp to 8 similar tracks (same category, shared moods first)
    ParameterInType
    slug requiredpathstring
  • GET/tracks/{slug}/downloadRecord a download and redirect to the file

    Answers `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.

    ParameterInType
    slug requiredpathstring
    versionqueryfull | cut60 | cut30
    sourceFor statistics only.queryweb | api | embed
  • GET/tracks/{slug}/creditThe credit line as plain text, HTML and Markdown
    ParameterInType
    slug requiredpathstring
  • 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.

    ParameterInType
    url requiredquerystring
    formatqueryjson
    maxwidthqueryinteger 200–4000
    maxheightqueryinteger 1–4000

Categories

  • GET/tagsMoods, genres, uses and instruments used by published tracks, with counts
    ParameterInType
    kindquerymood | genre | use | instrument
  • GET/categoriesCategories (the site's "Moods") that have published tracks, with counts

    No parameters.

  • GET/categories/{slug}One category with description and "best for"
    ParameterInType
    slug requiredpathstring

Blog

  • GET/postsPublished blog articles, newest first
    ParameterInType
    categoryquerystring
    authorquerystring
    pagequeryinteger 1–1000
    limitqueryinteger 1–50
  • GET/posts/{slug}One published article as plain text, with its headings, FAQ and the tracks it uses
    ParameterInType
    slug requiredpathstring

Search

  • GET/recommendMusic for a video, from a short brief and its length

    Searches 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`).

    ParameterInType
    brief requiredquerystring
    durationLength of the video in seconds.queryinteger 5–3600
    typequeryinstrumental | vocal
    limitqueryinteger 1–10
  • GET/filtersFilter options with their counts for the current search

    Takes 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.

    ParameterInType
    qquerystring
    categoryquerystring
    moodquerystring
    genrequerystring
    usequerystring
    typequeryinstrumental | vocal
    lengthqueryshort | medium | long
    instrumentInstrument slugs, comma-separated (OR).querystring
    energyEnergy levels 1 (calm) to 5 (intense), comma-separated (OR).querystring
    temposlow < 90 BPM, medium 90–119, fast 120–139, very-fast ≥ 140.queryslow | medium | fast | very-fast
    bpmMinqueryinteger 40–250
    bpmMaxqueryinteger 40–250
    vocalLead voice of vocal tracks.queryfemale | male | mixed | choir
  • GET/search/suggestUp to 6 suggestions for the search field
    ParameterInType
    q requiredquerystring

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 key

    Site origin only. Includes a hidden honeypot field `website` that people leave empty.

    No parameters.

  • POST/claims/screenshotSite onlyGet a presigned upload for a claim screenshot

    Site 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-up

    Called 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.

    ParameterInType
    tokenquerystring
  • POST/newsletter/unsubscribeUnsubscribe from the newsletter in one click

    Used 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.

    ParameterInType
    tokenquerystring

System

  • GET/healthLiveness and database check

    No 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.

New releases are also available as JSON Feed and RSS.

Request a free API key

Tell us what you’re building. We issue keys by hand, usually within two working days.

Free. We reply within two working days.