Shazam Scraper

ENDPOINTS
GET/songs/popular-segments

Song Popular Segments

See which seconds of a song people Shazam most over the past 7 days, as a 5-second heat map with counts.

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",
  "popular_segments": {
    "period": "past_7_days",
    "track_length_seconds": 200,
    "most_popular": {
      "start_seconds": 165,
      "end_seconds": 170,
      "shazam_count": 1713
    },
    "description": "Blinding Lights was discovered most frequently at around 2 minutes and 45 seconds into the song during the past week",
    "segments": [
      {
        "start_seconds": 0,
        "end_seconds": 5,
        "shazam_count": 1087,
        "share_of_peak": 0.728,
        "share_of_track": 0.05
      },
      {
        "start_seconds": 5,
        "end_seconds": 10,
        "shazam_count": 737,
        "share_of_peak": 0.5201,
        "share_of_track": 0.05
      },
      {
        "start_seconds": 10,
        "end_seconds": 15,
        "shazam_count": 1019,
        "share_of_peak": 0.6876,
        "share_of_track": 0.05
      },
      {
        "start_seconds": 25,
        "end_seconds": 30,
        "shazam_count": 1220,
        "share_of_peak": 0.8071,
        "share_of_track": 0.05
      },
      {
        "start_seconds": 30,
        "end_seconds": 35,
        "shazam_count": 1087,
        "share_of_peak": 0.728,
        "share_of_track": 0.05
      },
      {
        "start_seconds": 40,
        "end_seconds": 45,
        "shazam_count": 1302,
        "share_of_peak": 0.8558,
        "share_of_track": 0.05
      },
      {
        "start_seconds": 45,
        "end_seconds": 50,
        "shazam_count": 1692,
        "share_of_peak": 1.0,
        "share_of_track": 0.05
      },
      {
        "start_seconds": 85,
        "end_seconds": 90,
        "shazam_count": 392,
        "share_of_peak": 0.3151,
        "share_of_track": 0.05
      },
      {
        "start_seconds": 90,
        "end_seconds": 95,
        "shazam_count": 506,
        "share_of_peak": 0.3828,
        "share_of_track": 0.05
      },
      {
        "start_seconds": 100,
        "end_seconds": 105,
        "shazam_count": 538,
        "share_of_peak": 0.4018,
        "share_of_track": 0.05
      },
      {
        "start_seconds": 105,
        "end_seconds": 110,
        "shazam_count": 474,
        "share_of_peak": 0.3638,
        "share_of_track": 0.05
      },
      {
        "start_seconds": 115,
        "end_seconds": 120,
        "shazam_count": 529,
        "share_of_peak": 0.3965,
        "share_of_track": 0.05
      },
      {
        "start_seconds": 120,
        "end_seconds": 125,
        "shazam_count": 457,
        "share_of_peak": 0.3537,
        "share_of_track": 0.05
      },
      {
        "start_seconds": 125,
        "end_seconds": 130,
        "shazam_count": 571,
        "share_of_peak": 0.4214,
        "share_of_track": 0.05
      },
      {
        "start_seconds": 145,
        "end_seconds": 150,
        "shazam_count": 376,
        "share_of_peak": 0.3056,
        "share_of_track": 0.05
      },
      {
        "start_seconds": 160,
        "end_seconds": 165,
        "shazam_count": 669,
        "share_of_peak": 0.4797,
        "share_of_track": 0.05
      },
      {
        "start_seconds": 165,
        "end_seconds": 170,
        "shazam_count": 1713,
        "share_of_peak": 1.0,
        "share_of_track": 0.05
      },
      {
        "start_seconds": 175,
        "end_seconds": 180,
        "shazam_count": 448,
        "share_of_peak": 0.3484,
        "share_of_track": 0.05
      },
      {
        "start_seconds": 180,
        "end_seconds": 185,
        "shazam_count": 1443,
        "share_of_peak": 0.9396,
        "share_of_track": 0.05
      },
      {
        "start_seconds": 195,
        "end_seconds": 200,
        "shazam_count": 30,
        "share_of_peak": 0.1,
        "share_of_track": 0.05
      }
    ]
  }
}