Shazam Scraper

ENDPOINTS
GET/songs/audio-analysis

Song Audio Analysis

Get a song's BPM, energy, danceability, valence, acousticness and melodicness from Shazam's audio analysis.

QUERY PARAMS

Song to look up: a Shazam key, apple:<Apple song id>, an ISRC, or any shazam.com / music.apple.com song link.

Examples:

  • Shazam key: 503576063
  • Apple song id: apple:1488408568
  • ISRC: USUG11904206
  • URL: https://www.shazam.com/track/503576063/blinding-lights

2-letter Apple Music storefront the metadata is read from. Shazam keys, ISRCs and Apple ids are the same everywhere.

Default: US

Allowed values: any ISO 3166-1 alpha-2 code (US, GB, IN, DE, FR, JP, ...)

Language for names, genres and editorial text.

Default: en-US

Allowed values: an ISO 639-1 code (en, es, fr) or a locale tag (en-US, pt-BR, ja-JP)

{
  "shazam_key": "503576063",
  "apple_id": "1499378607",
  "title": "Blinding Lights",
  "artist_name": "The Weeknd",
  "link": "https://www.shazam.com/track/503576063/blinding-lights",
  "isrc": "USUG11904206",
  "label": "Republic Records",
  "genre": "R&B/Soul",
  "release_date": "2020-03-20",
  "duration_ms": 250057,
  "album_name": "After Hours",
  "is_explicit": false,
  "badges": [
    "On Tour"
  ],
  "audio_analysis": {
    "bpm": 171,
    "energy": 0.68,
    "danceability": 0.76,
    "valence": 0.66,
    "acousticness": 0.42,
    "melodicness": 0.63
  },
  "is_ai_generated": true
}