Shazam API

Shazam API

Introducing the Shazam API: Unlock the power of music identification! With just a few seconds of audio, this API can accurately identify any song. Send small audio chunks until you find a match, and get comprehensive details about the recognized track. Whether you're building a music app or want to enhance your user experience, the Shazam API is your key to seamless song recognition.

API description

About the API: 

Introducing the Shazam API, the ultimate solution for seamless song identification and music recognition. With its powerful capabilities, this API allows you to effortlessly identify any song with just a few seconds of audio input. Whether you're building a music app, integrating music recognition into your platform, or enhancing user experiences, the Shazam API provides a robust and reliable solution.

Using the API is simple yet effective. Submit audio chunks, ideally no more than 3 MB and preferably around 500 KB, until you find a match. This iterative approach ensures accurate and efficient song recognition, allowing you to retrieve the details and metadata of the recognized track.

The Shazam API leverages advanced algorithms and an extensive music database to accurately identify songs across various genres, languages, and styles. From popular hits to obscure tracks, the API's comprehensive coverage ensures a high success rate in recognizing even the most challenging songs.

Whether you're developing a music streaming platform, a social app, or a smart device with music recognition capabilities, the Shazam API adds an invaluable feature to your application. Enhance user engagement by enabling them to identify and discover new music effortlessly. You can even integrate the API into voice-enabled devices or create exciting interactive experiences centered around music recognition.

Furthermore, the Shazam API offers flexibility in how you implement song identification. You can choose to send audio chunks in real-time or batch processing, depending on your application's requirements and user experience goals. This versatility allows you to tailor the integration to suit your specific use case.

The API's documentation provides comprehensive guidance, including detailed instructions, code samples, and best practices, ensuring a smooth integration process. Additionally, the Shazam API is backed by dedicated technical support, providing assistance and prompt resolution of any queries or issues that may arise during development and implementation.

Unleash the power of music recognition and enhance your application with the Shazam API. Enable users to effortlessly identify and discover songs, elevate user experiences, and add a touch of magic to your music-related projects. Embrace the future of music identification and integration with the Shazam API today.

 

What this API receives and what your API provides (input/output)?

Pass a part of any song you want to recognize. Recommended 4 to 5 seconds. Retrieve information about the recognized song.

 

What are the most common uses cases of this API?

  1. Music Streaming Apps: Integrating the Shazam API into music streaming apps enhances the user experience by allowing users to quickly identify and add songs to their playlists. Users can simply capture a snippet of the song they hear and instantly get the details, making it easy to discover and save new tracks.

  2. Social Media Platforms: Social media platforms can leverage the Shazam API to enhance their audio-sharing capabilities. Users can identify and share the songs they're listening to directly within the platform, enabling their friends and followers to discover and listen to the same music effortlessly.

  3. Advertising and Marketing Campaigns: Brands and advertisers can incorporate the Shazam API into their campaigns to create interactive and engaging experiences. By encouraging users to Shazam-specific audio content or jingles, they can unlock exclusive offers, access additional content, or participate in contests, fostering brand engagement and driving conversions.

  4. Voice-Enabled Devices: Smart speakers, voice assistants, and other voice-enabled devices can benefit from the Shazam API's music recognition capabilities. Users can simply ask the device to identify the song playing in the background, allowing for seamless integration of music identification into their daily interactions with the device.

  5. Music Data Analytics: Music data analytics platforms can utilize the Shazam API to gather insights into popular trends, emerging artists, and user preferences. By analyzing the data of recognized songs, these platforms can provide valuable information to music labels, artists, and industry professionals to inform marketing strategies, playlist curation, and talent scouting.

 

Are there any limitations to your plans?

Besides the number of API calls, there is no other limitation

API Documentation

Endpoints


Enough 3-5 seconds of audio, no more than 3 mb. Optimally 500 kb. It is best practice to send in chunks until you find a match. Get details of recognizing track by file.



                                                                            
POST https://zylalabs.com/api/2219/shazam+api/2068/recognize+song
                                                                            
                                                                        

Recognize Song - Endpoint Features
Object Description
Request Body [Required] File Binary
Test Endpoint

API EXAMPLE RESPONSE

       
                                                                                                        
                                                                                                                                                                                                                            {"location":{"accuracy":0.01},"matches":[{"frequencyskew":-8.0525875e-05,"id":"242066661","offset":-0.21476980499999998,"timeskew":-0.001036942}],"tagid":"9960CDB8-7E69-4FE1-91F2-D2E9036A7A55","timestamp":1688138407371,"timezone":"Europe/Moscow","track":{"artists":[{"adamid":"63748","id":"42"}],"genres":{"primary":"Soundtrack"},"highlightsurls":{"artisthighlightsurl":"https://cdn.shazam.com/video/v3/en-US/GB/iphone/63748/highlights?affiliate=mttnagencyid%3Ds2n%26mttnsiteid%3D125115%26mttn3pid%3DApple-Shazam%26mttnsub1%3DShazam_ios%26mttnsub2%3D5348615A-616D-3235-3830-44754D6D5973%26itscg%3D30201%26app%3Dmusic%26itsct%3DShazam_ios"},"hub":{"displayname":"APPLE MUSIC","explicit":false,"image":"https://images.shazam.com/static/icons/hub/ios/v5/applemusic_{scalefactor}.png","options":[{"actions":[{"name":"hub:applemusic:subscribe","type":"applemusicopen","uri":"https://music.apple.com/subscribe?mttnagencyid=s2n&mttnsiteid=125115&mttn3pid=Apple-Shazam&mttnsub1=Shazam_ios&mttnsub2=5348615A-616D-3235-3830-44754D6D5973&itscg=30201&app=music&itsct=Shazam_ios"},{"name":"hub:applemusic:subscribe","type":"uri","uri":"https://music.apple.com/subscribe?mttnagencyid=s2n&mttnsiteid=125115&mttn3pid=Apple-Shazam&mttnsub1=Shazam_ios&mttnsub2=5348615A-616D-3235-3830-44754D6D5973&itscg=30201&app=music&itsct=Shazam_ios"}],"beacondata":{"providername":"applemusic","type":"open"},"caption":"OPEN IN","colouroverflowimage":false,"image":"https://images.shazam.com/static/icons/hub/ios/v5/overflow-open-option_{scalefactor}.png","listcaption":"Open in Apple Music","overflowimage":"https://images.shazam.com/static/icons/hub/ios/v5/applemusic-overflow_{scalefactor}.png","providername":"applemusic","type":"open"}],"providers":[{"actions":[{"name":"hub:spotify:searchdeeplink","type":"uri","uri":"spotify:search:Main%20Theme%20from%20Star%20Wars%20John%20Williams"}],"caption":"Open in Spotify","images":{"default":"https://images.shazam.com/static/icons/hub/ios/v5/spotify_{scalefactor}.png","overflow":"https://images.shazam.com/static/icons/hub/ios/v5/spotify-overflow_{scalefactor}.png"},"type":"SPOTIFY"},{"actions":[{"name":"hub:deezer:searchdeeplink","type":"uri","uri":"deezer-query://www.deezer.com/play?query=%7Btrack%3A%27Main+Theme+from+Star+Wars%27%20artist%3A%27John+Williams++Skywalker+Symphony+Orchestra%27%7D"}],"caption":"Open in Deezer","images":{"default":"https://images.shazam.com/static/icons/hub/ios/v5/deezer_{scalefactor}.png","overflow":"https://images.shazam.com/static/icons/hub/ios/v5/deezer-overflow_{scalefactor}.png"},"type":"DEEZER"}],"type":"APPLEMUSIC"},"images":{"background":"https://is2-ssl.mzstatic.com/image/thumb/Features125/v4/e3/c6/34/e3c6346a-108c-999b-b6ab-1ce17649d118/mzl.vycldndp.jpg/800x800cc.jpg","coverart":"https://is5-ssl.mzstatic.com/image/thumb/Music/y2004/m07/d08/h16/s05.hqdjczbp.tif/400x400cc.jpg","coverarthq":"https://is5-ssl.mzstatic.com/image/thumb/Music/y2004/m07/d08/h16/s05.hqdjczbp.tif/400x400cc.jpg"},"key":"242066661","layout":"5","relatedtracksurl":"https://cdn.shazam.com/shazam/v3/en-US/GB/iphone/-/tracks/track-similarities-id-242066661?startFrom=0&pageSize=20&connected=","sections":[{"metadata":[],"metapages":[{"caption":"John Williams","image":"https://is2-ssl.mzstatic.com/image/thumb/Features125/v4/e3/c6/34/e3c6346a-108c-999b-b6ab-1ce17649d118/mzl.vycldndp.jpg/800x800cc.jpg"},{"caption":"Main Theme from Star Wars","image":"https://is5-ssl.mzstatic.com/image/thumb/Music/y2004/m07/d08/h16/s05.hqdjczbp.tif/400x400cc.jpg"}],"tabname":"Song","type":"SONG"},{"tabname":"Video","type":"VIDEO","youtubeurl":"https://cdn.shazam.com/video/v3/-/GB/iphone/242066661/youtube/video?q=John+Williams+%26+Skywalker+Symphony+Orchestra+%22Main+Theme+from+Star+Wars%22"},{"tabname":"Related","type":"RELATED","url":"https://cdn.shazam.com/shazam/v3/en-US/GB/iphone/-/tracks/track-similarities-id-242066661?startFrom=0&pageSize=20&connected="}],"share":{"avatar":"https://is2-ssl.mzstatic.com/image/thumb/Features125/v4/e3/c6/34/e3c6346a-108c-999b-b6ab-1ce17649d118/mzl.vycldndp.jpg/800x800cc.jpg","href":"https://www.shazam.com/track/242066661/main-theme-from-star-wars","html":"https://www.shazam.com/snippets/email-share/242066661?lang=en-US&country=GB","image":"https://is5-ssl.mzstatic.com/image/thumb/Music/y2004/m07/d08/h16/s05.hqdjczbp.tif/400x400cc.jpg","snapchat":"https://www.shazam.com/partner/sc/track/242066661","subject":"Main Theme from Star Wars - John Williams & Skywalker Symphony Orchestra","text":"Main Theme from Star Wars by John Williams & Skywalker Symphony Orchestra","twitter":"I used @Shazam to discover Main Theme from Star Wars by John Williams & Skywalker Symphony Orchestra."},"subtitle":"John Williams & Skywalker Symphony Orchestra","title":"Main Theme from Star Wars","type":"MUSIC","url":"https://www.shazam.com/track/242066661/main-theme-from-star-wars","urlparams":{"{trackartist}":"John+Williams+%26+Skywalker+Symphony+Orchestra","{tracktitle}":"Main+Theme+from+Star+Wars"}}}

                                                                                                                                                                                                                    
                                                                                                    

Recognize Song - CODE SNIPPETS


    curl --location 'https://zylalabs.com/api/2219/shazam+api/2068/recognize+song' \
    --header 'Content-Type: application/json' \ 
    --form 'image=@"FILE_PATH"'


API Access Key & Authentication

After signing up, every developer is assigned a personal API access key, a unique combination of letters and digits provided to access to our API endpoint. To authenticate with the Shazam API REST API, simply include your bearer token in the Authorization header.

Headers

Header Description
Authorization [Required] Should be Bearer access_key. See "Your API Access Key" above when you are subscribed.


Simple Transparent Pricing

No long term commitments. One click upgrade/downgrade or cancellation. No questions asked.

🚀 Enterprise
Starts at $10,000/Year

  • Custom Volume
  • Dedicated account manager
  • Service-level agreement (SLA)

Customer favorite features

  • ✔︎ Only Pay for Successful Requests
  • ✔︎ Free 7-Day Trial
  • ✔︎ Multi-Language Support
  • ✔︎ One API Key, All APIs.
  • ✔︎ Intuitive Dashboard
  • ✔︎ Comprehensive Error Handling
  • ✔︎ Developer-Friendly Docs
  • ✔︎ Postman Integration
  • ✔︎ Secure HTTPS Connections
  • ✔︎ Reliable Uptime

The Shazam API is a powerful tool that provides developers with the ability to integrate song identification and music recognition capabilities into their applications. It allows users to identify songs by submitting audio snippets and retrieve details about the recognized tracks.

The Shazam API leverages advanced algorithms and a vast music database to ensure high accuracy in song identification. While it strives to accurately recognize a wide range of songs, it is important to note that certain factors such as audio quality, background noise, or uncommon tracks may affect the recognition success rate.

The Shazam API supports a variety of audio formats, including but not limited to MP3, WAV, FLAC, AAC, and OGG. It is recommended to consult the API documentation for the complete list of supported audio formats.

Yes, the Shazam API is designed to identify songs in various languages. It utilizes language-agnostic algorithms and a diverse music database to handle multilingual song recognition.

While there is no strict limit, it is recommended to keep the audio snippet size within 3 MB and ideally around 500 KB for optimal performance. Additionally, shorter audio snippets of a few seconds typically yield better results. Larger audio files or longer durations may increase processing time and affect recognition accuracy.

Zyla API Hub is, in other words, an API MarketPlace. An all-in-one solution for your developing needs. You will be accessing our extended list of APIs with only your user. Also, you won't need to worry about storing API keys, only one API key for all our products is needed.

Prices are listed in USD. We accept all major debit and credit cards. Our payment system uses the latest security technology and is powered by Stripe, one of the world’s most reliable payment companies. If you have any trouble with paying by card, just contact us at [email protected]

Sometimes depending on the bank's fraud protection settings, a bank will decline the validation charge we make when we attempt to be sure a card is valid. We recommend first contacting your bank to see if they are blocking our charges. If more help is needed, please contact [email protected] and our team will investigate further

Prices are based on a recurring monthly subscription depending on the plan selected — plus overage fees applied when a developer exceeds a plan’s quota limits. In this example, you'll see the base plan amount as well as a quota limit of API requests. Be sure to notice the overage fee because you will be charged for each additional request.

Zyla API Hub works on a recurring monthly subscription system. Your billing cycle will start the day you purchase one of the paid plans, and it will renew the same day of the next month. So be aware to cancel your subscription beforehand if you want to avoid future charges.

Just go to the pricing page of that API and select the plan that you want to upgrade to. You will only be charged the full amount of that plan, but you will be enjoying the features that the plan offers right away.

Yes, absolutely. If you want to cancel your plan, simply go to your account and cancel on the Billing page. Upgrades, downgrades, and cancellations are immediate.

You can contact us through our chat channel to receive immediate assistance. We are always online from 9 am to 6 pm (GMT+1). If you reach us after that time, we will be in contact when we are back. Also you can contact us via email to [email protected]


Related APIs