♪

X CASPER Shazam API

Identify the music playing in any audio or video.

Free. No key. No login.

What it does

🎧 Identify any song

Send an audio or video file, or a link to one, and get the song back: title, artist, album, label, year, genre and ISRC.

🔊 Hear it first

Every match comes with a 30-second preview you can play right here, plus the cover art.

🔗 Links included

Apple Music, Spotify and Deezer links, and our own YouTube, YouTube Music and Spotify lookups for the same track.

🔧 No key, no account

Upload a file or paste a link. Nothing to sign up for, nothing to install.

Try it

Identify from a link

Paste an audio file link, a video link or a YouTube link.


  

Identify from a file

MP3, WAV, M4A, MP4, WebM and more. Up to 100 MB. Only the first 40 seconds are used.


  

Endpoints

GET /api/identify?url=<audio or video URL>

Identify the music at a URL. Works with direct audio files, video pages and YouTube links.


  
POST /api/identify

Identify music from an uploaded file (multipart form, field file) or a JSON body {"url": "..."}. Optional query: start (seconds in), slices (1-5, default 3), ours=0 to skip our own service lookups.

{
  "provider": "XCASPER SPACE",
  "creator": "Casper",
  "success": true,
  "found": true,
  "match": {
    "title": "Faded",
    "artist": "Alan Walker",
    "album": "Faded - EP",
    "label": "MER Recordings",
    "year": "2015",
    "genre": "Dance",
    "isrc": "NOG841549010",
    "cover": "https://.../400x400cc.jpg",
    "url": "https://www.shazam.com/track/297103602/faded",
    "appleMusic": "https://music.apple.com/us/album/faded/...",
    "preview": "https://audio-ssl.itunes.apple.com/...m4a",
    "matches": 20,
    "votes": 2,
    "foundAt": 12.0
  },
  "ours": {
    "youtube": { "watch": "https://www.youtube.com/watch?v=60ItHLz5WEA", "download": "https://ytv.xcasper.space/api/download/60ItHLz5WEA" },
    "youtubeMusic": { "watch": "https://music.youtube.com/watch?v=60ItHLz5WEA" },
    "spotify": { "open": "https://open.spotify.com/track/7gHs73wELdeycvS48JfIos", "download": "https://sportify.xcasper.space/api/download/7gHs73wELdeycvS48JfIos" }
  }
}
GET /api/health

Service health and uptime.


  
GET /api

This index: every endpoint.


  

How it works

Your audio is turned into a fingerprint: the sound is broken into tiny slices, the loudest notes in each slice are picked out, and those notes become a signature. The signature is matched against a catalogue of millions of songs, and the best match comes back with its details and links. A quiet intro can mislead a single slice, so the service listens to up to three slices and takes the majority answer.

MP3WAVM4AMP4WebMYouTube links