# BeatSeek > A music discovery API for SoundCloud. Find tracks, playlists, and detailed metadata > (BPM, key, genre) without the SoundCloud UI. Built for DJs and AI agents that need > structured access to SoundCloud's catalog. BeatSeek exposes a small JSON API that AI agents can call directly. No API key is required for moderate-volume use. All endpoints return JSON and set permissive CORS headers. Responses are edge-cached for one hour. Base URL: https://beatseek.io OpenAPI spec: https://beatseek.io/openapi.json Interactive docs: https://beatseek.io/docs MCP server (Streamable HTTP, no auth): https://beatseek.io/api/mcp ## MCP server The same four operations are available as MCP tools at `https://beatseek.io/api/mcp` (Streamable HTTP, stateless, no auth; serves MCP 2025-era and 2026-07-28 clients). Tools: `search_soundcloud`, `resolve_track`, `analyze_track`, `get_playlist`. Each returns the same JSON as the matching endpoint below. `analyze_track` keeps the 6/min limit. Claude Code: `claude mcp add --transport http beatseek https://beatseek.io/api/mcp` Other clients: `{"beatseek": {"url": "https://beatseek.io/api/mcp"}}`, or for stdio-only clients `npx -y mcp-remote https://beatseek.io/api/mcp`. ## Endpoints ### GET /api/analyze Measure BPM and musical key from the audio of a SoundCloud track. BeatSeek fetches a 30-second window (progressive MP3 or AAC HLS, whichever SoundCloud serves) and runs Essentia's RhythmExtractor2013 and key detection on the server. Results are cached for 30 days per track and 10-second position bucket, and stored, so they also show up as `bpmSource: "analyzed"` in /api/search. The first call takes ~5–15 s; cached calls are near-instant. Use this when SoundCloud's uploader-provided metadata is missing or unreliable and you need BPM/key data for harmonic mixing. Query parameters: - `url` (required) — full SoundCloud track URL - `position` (optional, ms, default 0) — start of the 30 s window. Long mixes change tempo and key, so analyse the section you care about. Example: GET /api/analyze?url=https://soundcloud.com/argy-scmusic/pantheon&position=60000 Response shape: { "bpm": 124.1, "bpmConfidence": 3.6, "key": "D minor", "keyCamelot": "7A", "keyConfidence": 0.82, "firstBeatMs": 412, "danceability": 1.4, "loudnessLufs": -7.9, "windowStartMs": 60000, "windowEndMs": 90000, "trackId": 1707235524, "title": "...", "artist": "...", "genre": "Techno", "isSnippet": false, "analyzedAt": "2026-11-07T12:07:12.029Z", "cached": false } Notes: - `bpmConfidence` runs roughly 0–5.3 (not 0–1). Below ~1.5 the tempo is a guess. - `keyConfidence` is 0–1. Treat < 0.6 with caution. - BPM is folded into 70–180 and corrected for half/double-time errors using the track's genre (drum & bass reads ~172, dubstep ~140, not ~86 / ~70). - Preview snippets (tracks SoundCloud serves as <= 60 s) return 400. - Rate limit: 6 requests per minute per client (analysis is CPU-heavy). ### GET /api/resolve Resolve a known artist + title to a single best SoundCloud URL. Use this when you have a tracklist (e.g. from another source) and want to map each entry to its SoundCloud page. Returns the top match plus up to three alternates, each with a confidence score in [0, 1]. Query parameters: - `title` (required) — track title - `artist` (optional but strongly recommended) — primary artist - `limit` (optional, default 20, max 50) — candidates to score before ranking Example: GET /api/resolve?artist=Anyma&title=Abyss Response shape: { "query": { "artist": "Anyma", "title": "Abyss" }, "match": { "url": "https://soundcloud.com/.../abyss", "title": "...", "artist": "...", "bpm": 124, "key": "F# minor", "keyCamelot": "11A", "duration": 412000, "confidence": 0.92, "score": 0.88, "likes": 12345, "playbackCount": 543210 }, "alternates": [ /* up to 3 next-best results */ ], "total": 20 } Notes for agents: - Treat `confidence >= 0.6` as a reliable match. Between 0.3 and 0.6, inspect `alternates` or surface them to the user. Below 0.3, the track likely is not on SoundCloud or the artist/title is wrong — fall back to /api/search. - `keyCamelot` is the Camelot wheel notation (e.g. "8A") useful for harmonic mixing. - Duration is milliseconds. ### GET /api/search Free-text search for tracks, playlists, or albums with optional BPM and date filters. Use this for exploratory queries ("melodic techno 2026") rather than known tracks. Query parameters: - `query` (required) — search string - `type` (optional, default "playlists") — "tracks" | "playlists" | "albums" - `sort` (optional, default "both") — "both" | "date" | "likes" - `limit` (optional, default 50) — max results - `minBpm`, `maxBpm` (optional) — BPM range filter (only applies to results with BPM) - `fromDate`, `toDate` (optional, ISO 8601) — release date filter - `platform` (optional) — must be "soundcloud" (currently the only supported platform) Example: GET /api/search?query=anyma&type=tracks&sort=likes&limit=20 Response shape: { "results": [ { "id": ..., "title": "...", "url": "...", "bpm": ..., ... } ], "total": 20, "query": "anyma", "platform": "soundcloud", "filters": { "type": "tracks", "sort": "likes", "limit": 20, ... } } ### GET /api/playlist Fetch all tracks in a SoundCloud playlist by URL. Query parameters: - `url` (required) — full SoundCloud playlist URL Example: GET /api/playlist?url=https://soundcloud.com/user/sets/playlist-name Response shape: { "tracks": [ /* track objects with the same fields as /api/search */ ], "total": 14, "playlistTitle": "...", "playlistUrl": "..." } ## Track object fields Every track or result object includes (when SoundCloud has the data): - `url` — SoundCloud permalink - `title`, `artist`, `artistUrl` - `artworkUrl` — cover image - `bpm` — number, beats per minute - `bpmSource` — "analyzed" (measured from the audio by BeatSeek; prefer these) or "uploader" (SoundCloud tag, often missing or wrong) - `keySignature` (search/playlist) or `key` (resolve) — musical key, e.g. "A minor" - `keySource` — same values as `bpmSource` - `keyCamelot` — Camelot wheel notation, e.g. "8A" (when the key was measured) - `bpmConfidence`, `keyConfidence` — present on analyzed values - `downloadable` — true when the artist enabled free downloads on SoundCloud - `genre` — SoundCloud-reported genre - `duration` — milliseconds - `likes`, `playbackCount`, `reposts` — engagement metrics - `createdAt` — ISO 8601 upload date ## Rate limits The API is unauthenticated and rate-limited by IP at 30 requests per 60 seconds (sliding window); /api/analyze has its own, tighter budget of 6 per 60 seconds. Every response carries `X-RateLimit-Limit`, `X-RateLimit-Remaining`, and `X-RateLimit-Reset` (unix seconds) headers. On 429 responses, `Retry-After` gives the seconds to wait. Agents should: - Read `X-RateLimit-Remaining` and back off proactively before hitting 0 - Respect `Retry-After` on 429 responses - Batch known tracklists serially, not in parallel, to stay under the limit For agent workloads that exceed casual use, contact the maintainer for an API key tier with higher limits. ## Common agent recipes 1. Building a SoundCloud playlist from a known tracklist - For each entry, call `/api/resolve?artist=...&title=...` - Keep matches with `confidence >= 0.7` - Present `alternates` to the user for low-confidence matches 2. Finding harmonically compatible tracks for a DJ set - Call `/api/search?query=&type=tracks&limit=100` - Prefer results with `bpmSource: "analyzed"`; call `/api/analyze` for the few candidates you care about that lack it - Filter by `bpm` range and `keyCamelot`: same number, +/-1, or the A/B switch at the same number mix smoothly (see https://beatseek.io/key) 3. Discovering recent releases in a sub-genre - Call `/api/search?query=&sort=date&fromDate=2026-01-01` ## Reference pages (human-readable) - https://beatseek.io/bpm — tempo guide: genres, beat/phrase timing and measured tracks for each BPM (e.g. /bpm/128) - https://beatseek.io/key — Camelot wheel: compatible keys and measured tracks for each key (e.g. /key/8a) - https://beatseek.io/genres — genre guides with BPM ranges and common keys ## Contact Source: https://github.com/levz0r/beatseek Site: https://beatseek.io