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.

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":"718852812","offset":5.014970703,"timeskew":0.00018584728},{"frequencyskew":-8.0525875e-05,"id":"697714300","offset":18.274070312,"timeskew":-0.00045192242},{"frequencyskew":-0.00025773048,"id":"699834925","offset":5.330720214,"timeskew":-9.36389e-05},{"frequencyskew":0.0,"id":"708657372","offset":138.22809375,"timeskew":-0.00014919043},{"frequencyskew":0.0011820793,"id":"696675624","offset":58.792453125,"timeskew":-0.00066304207},{"frequencyskew":-0.0003221631,"id":"716594779","offset":5.043858886,"timeskew":-0.0002245307}],"tagid":"07A7DDFE-474B-4010-85F2-9C3C0DE3461D","timestamp":1731824821122,"timezone":"Europe/Moscow","track":{"albumadamid":"1775897260","artists":[{"adamid":"1775516399","id":"42"}],"genres":{"primary":"Hip-Hop/Rap"},"highlightsurls":{},"hub":{"actions":[{"id":"1775897359","name":"apple","type":"applemusicplay"},{"name":"apple","type":"uri","uri":"https://audio-ssl.itunes.apple.com/itunes-assets/AudioPreview221/v4/1e/46/5c/1e465c7f-6b57-574f-ff62-3ed96ffb779e/mzaf_703932048631625343.plus.aac.p.m4a"}],"displayname":"APPLE MUSIC","explicit":true,"image":"https://images.shazam.com/static/icons/hub/android/v5/applemusic_{scalefactor}.png","options":[{"actions":[{"name":"hub:applemusic:deeplink","type":"intent","uri":"intent://music.apple.com/gb/album/how/1775897260?i=1775897359&mttnagencyid=s2n&mttnsiteid=125115&mttn3pid=Apple-Shazam&mttnsub1=Shazam_android_am&mttnsub2=5348615A-616D-3235-3830-44754D6D5973&itscg=30201&app=music&itsct=Shazam_android_am#Intent;scheme=http;package=com.apple.android.music;action=android.intent.action.VIEW;end"},{"id":"1775897359","name":"hub:applemusic:connect","type":"applemusicconnect","uri":"https://unsupported.shazam.com"},{"name":"hub:applemusic:androidstore","type":"uri","uri":"https://play.google.com/store/apps/details?id=com.apple.android.music&referrer=utm_source=https%3A%2F%2Fmusic.apple.com%2Fsubscribe%3Fmttnagencyid%3Ds2n%26mttnsiteid%3D125115%26mttn3pid%3DApple-Shazam%26mttnsub1%3DShazam_android_am%26mttnsub2%3D5348615A-616D-3235-3830-44754D6D5973%26itscg%3D30201%26app%3Dmusic%26itsct%3DShazam_android_am"}],"beacondata":{"providername":"applemusic","type":"open"},"caption":"OPEN IN","colouroverflowimage":false,"image":"https://images.shazam.com/static/icons/hub/android/v5/overflow-open-option_{scalefactor}.png","listcaption":"Open in Apple Music","overflowimage":"https://images.shazam.com/static/icons/hub/android/v5/applemusic-overflow_{scalefactor}.png","providername":"applemusic","type":"open"}],"providers":[{"actions":[{"name":"hub:spotify:searchdeeplink","type":"uri","uri":"spotify:search:How%3F%20ZekeTheDon"}],"caption":"Open in Spotify","images":{"default":"https://images.shazam.com/static/icons/hub/android/v5/spotify_{scalefactor}.png","overflow":"https://images.shazam.com/static/icons/hub/android/v5/spotify-overflow_{scalefactor}.png"},"type":"SPOTIFY"},{"actions":[{"name":"hub:youtubemusic:androiddeeplink","type":"uri","uri":"https://music.youtube.com/search?q=How%3F+ZekeTheDon&feature=shazam"}],"caption":"Open in YouTube Music","images":{"default":"https://images.shazam.com/static/icons/hub/android/v5/youtubemusic_{scalefactor}.png","overflow":"https://images.shazam.com/static/icons/hub/android/v5/youtubemusic-overflow_{scalefactor}.png"},"type":"YOUTUBEMUSIC"},{"actions":[{"name":"hub:deezer:searchdeeplink","type":"uri","uri":"deezer-query://www.deezer.com/play?query=%7Btrack%3A%27How%3F%27%20artist%3A%27ZekeTheDon%27%7D"}],"caption":"Open in Deezer","images":{"default":"https://images.shazam.com/static/icons/hub/android/v5/deezer_{scalefactor}.png","overflow":"https://images.shazam.com/static/icons/hub/android/v5/deezer-overflow_{scalefactor}.png"},"type":"DEEZER"}],"type":"APPLEMUSIC"},"images":{"background":"https://is1-ssl.mzstatic.com/image/thumb/Music211/v4/ee/ae/6e/eeae6e9e-8380-eb22-a92f-d5442f45d349/artwork.jpg/400x400cc.jpg","coverart":"https://is1-ssl.mzstatic.com/image/thumb/Music211/v4/ee/ae/6e/eeae6e9e-8380-eb22-a92f-d5442f45d349/artwork.jpg/400x400cc.jpg","coverarthq":"https://is1-ssl.mzstatic.com/image/thumb/Music211/v4/ee/ae/6e/eeae6e9e-8380-eb22-a92f-d5442f45d349/artwork.jpg/400x400cc.jpg","joecolor":"b:1c1c2ep:ddb461s:d7a849t:b69656q:b28c43"},"isrc":"QZWFT2489324","key":"718852812","layout":"5","sections":[{"metadata":[{"text":"No Trust vol. 1","title":"Album"},{"text":"N.C.K.G","title":"Label"},{"text":"2024","title":"Released"}],"metapages":[{"caption":"How?","image":"https://is1-ssl.mzstatic.com/image/thumb/Music211/v4/ee/ae/6e/eeae6e9e-8380-eb22-a92f-d5442f45d349/artwork.jpg/400x400cc.jpg"}],"tabname":"Song","type":"SONG"}],"share":{"href":"https://www.shazam.com/track/718852812/how","html":"https://www.shazam.com/snippets/email-share/718852812?lang=en-US&country=GB","image":"https://is1-ssl.mzstatic.com/image/thumb/Music211/v4/ee/ae/6e/eeae6e9e-8380-eb22-a92f-d5442f45d349/artwork.jpg/400x400cc.jpg","snapchat":"https://www.shazam.com/partner/sc/track/718852812","subject":"How? - ZekeTheDon","text":"How? by ZekeTheDon","twitter":"I used @Shazam to discover How? by ZekeTheDon."},"subtitle":"ZekeTheDon","title":"How?","type":"MUSIC","url":"https://www.shazam.com/track/718852812/how","urlparams":{"{trackartist}":"ZekeTheDon","{tracktitle}":"How%3F"}}}

                                                                                                                                                                                                                    
                                                                                                    

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
  • Specialized Customer Support
  • Real-Time API Monitoring

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 like a big store for APIs, where you can find thousands of them all in one place. We also offer dedicated support and real-time monitoring of all APIs. Once you sign up, you can pick and choose which APIs you want to use. Just remember, each API needs its own subscription. But if you subscribe to multiple ones, you'll use the same key for all of them, making things easier for you.

Prices are listed in USD (United States Dollar), EUR (Euro), CAD (Canadian Dollar), AUD (Australian Dollar), and GBP (British Pound). 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 paying by card, just contact us at [email protected]

Additionally, if you already have an active subscription in any of these currencies (USD, EUR, CAD, AUD, GBP), that currency will remain for subsequent subscriptions. You can change the currency at any time as long as you don't have any active subscriptions.

The local currency shown on the pricing page is based on the country of your IP address and is provided for reference only. The actual prices are in USD (United States Dollar). When you make a payment, the charge will appear on your card statement in USD, even if you see the equivalent amount in your local currency on our website. This means you cannot pay directly with your local currency.

Occasionally, a bank may decline the charge due to its fraud protection settings. We suggest reaching out to your bank initially to check if they are blocking our charges. Also, you can access the Billing Portal and change the card associated to make the payment. If these does not work and you need further assistance, please contact our team at [email protected]

Prices are determined by a recurring monthly or yearly subscription, depending on the chosen plan.

API calls are deducted from your plan based on successful requests. Each plan comes with a specific number of calls that you can make per month. Only successful calls, indicated by a Status 200 response, will be counted against your total. This ensures that failed or incomplete requests do not impact your monthly quota.

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.

To upgrade your current subscription plan, simply go to the pricing page of the API and select the plan you want to upgrade to. The upgrade will be instant, allowing you to immediately enjoy the features of the new plan. Please note that any remaining calls from your previous plan will not be carried over to the new plan, so be aware of this when upgrading. You will be charged the full amount of the new plan.

To check how many API calls you have left for the current month, look at the β€˜X-Zyla-API-Calls-Monthly-Remaining’ header. For example, if your plan allows 1000 requests per month and you've used 100, this header will show 900.

To see the maximum number of API requests your plan allows, check the β€˜X-Zyla-RateLimit-Limit’ header. For instance, if your plan includes 1000 requests per month, this header will display 1000.

The β€˜X-Zyla-RateLimit-Reset’ header shows the number of seconds until your rate limit resets. This tells you when your request count will start fresh. For example, if it displays 3600, it means 3600 seconds are left until the limit resets.

Yes, you can cancel your plan anytime by going to your account and selecting the cancellation option on the Billing page. Please note that upgrades, downgrades, and cancellations take effect immediately. Additionally, upon cancellation, you will no longer have access to the service, even if you have remaining calls left in your quota.

You can contact us through our chat channel to receive immediate assistance. We are always online from 8 am to 5 pm (EST). If you reach us after that time, we will get back to you as soon as possible. Additionally, you can contact us via email at [email protected]

To let you experience our APIs without any commitment, we offer a 7-day free trial that allows you to make API calls at no cost during this period. Please note that you can only use this trial once, so make sure to use it with the API that interests you the most. Most of our APIs provide a free trial, but some may not support it.

After 7 days, you will be charged the full amount for the plan you were subscribed to during the trial. Therefore, it’s important to cancel before the trial period ends. Refund requests for forgetting to cancel on time are not accepted.

When you subscribe to an API trial, you can make only 25% of the calls allowed by that plan. For example, if the API plan offers 1000 calls, you can make only 250 during the trial. To access the full number of calls offered by the plan, you will need to subscribe to the full plan.


Related APIs