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.
{"location":{"accuracy":0.01},"matches":[{"frequencyskew":0.0003222227,"id":"299052394","offset":48.000933593,"timeskew":0.0003027916}],"tagid":"75274D5F-ECCE-4104-B963-86CDC8059A13","timestamp":2453123822,"timezone":"Europe/Moscow","track":{"albumadamid":"495924692","alias":"freak-the-freak-out","artists":[{"adamid":"367602854","alias":"victorious-cast","id":"42"},{"adamid":"422753971","alias":"victoria-justice","id":"42"}],"genres":{"primary":"Soundtrack"},"highlightsurls":{},"hub":{"actions":[{"id":"495924694","name":"apple","type":"applemusicplay"},{"name":"apple","type":"uri","uri":"https://audio-ssl.itunes.apple.com/itunes-assets/AudioPreview115/v4/44/9b/fb/449bfb1f-8f65-fc6a-61e7-61e9b3e7cfba/mzaf_75952485968949724.plus.aac.ep.m4a"}],"displayname":"APPLE MUSIC","explicit":false,"image":"https://images.shazam.com/static/icons/hub/web/v5/applemusic.png","options":[{"actions":[{"name":"hub:applemusic:deeplink","type":"applemusicopen","uri":"https://music.apple.com/gb/album/freak-the-freak-out/495924692?i=495924694&mttnagencyid=s2n&mttnsiteid=125115&mttn3pid=Apple-Shazam&mttnsub1=Shazam_web&mttnsub2=5348615A-616D-3235-3830-44754D6D5973&itscg=30201&app=music&itsct=Shazam_web"},{"name":"hub:applemusic:deeplink","type":"uri","uri":"https://music.apple.com/gb/album/freak-the-freak-out/495924692?i=495924694&mttnagencyid=s2n&mttnsiteid=125115&mttn3pid=Apple-Shazam&mttnsub1=Shazam_web&mttnsub2=5348615A-616D-3235-3830-44754D6D5973&itscg=30201&app=music&itsct=Shazam_web"}],"beacondata":{"providername":"applemusic","type":"open"},"caption":"OPEN IN","colouroverflowimage":false,"image":"https://images.shazam.com/static/icons/hub/web/v5/overflow-open-option.png","listcaption":"Open in Apple Music","overflowimage":"https://images.shazam.com/static/icons/hub/web/v5/applemusic-overflow.png","providername":"applemusic","type":"open"}],"type":"APPLEMUSIC"},"images":{"background":"https://is1-ssl.mzstatic.com/image/thumb/Features115/v4/09/9d/29/099d2956-660c-f175-2ae7-172272fdf971/mzl.whswoyuz.jpg/800x800cc.jpg","coverart":"https://is1-ssl.mzstatic.com/image/thumb/Music/2b/3c/ca/mzi.xkxafcng.jpg/400x400cc.jpg","coverarthq":"https://is1-ssl.mzstatic.com/image/thumb/Music/2b/3c/ca/mzi.xkxafcng.jpg/400x400cc.jpg","joecolor":"b:151235p:e0abacs:e39577t:b78c94q:ba7b6a"},"isrc":"USSM11004546","key":"52910892","layout":"5","relatedtracksurl":"https://cdn.shazam.com/shazam/v3/en-US/GB/web/-/tracks/track-similarities-id-52910892?startFrom=0&pageSize=20&connected=","releasedate":"19-11-2010","sections":[{"metadata":[{"text":"Victorious (Music from the Hit TV Show)","title":"Album"},{"text":"Nickelodeon/Columbia","title":"Label"},{"text":"2010","title":"Released"}],"metapages":[{"caption":"Victorious Cast","image":"https://is1-ssl.mzstatic.com/image/thumb/Features115/v4/09/9d/29/099d2956-660c-f175-2ae7-172272fdf971/mzl.whswoyuz.jpg/800x800cc.jpg"},{"caption":"Freak the Freak Out","image":"https://is1-ssl.mzstatic.com/image/thumb/Music/2b/3c/ca/mzi.xkxafcng.jpg/400x400cc.jpg"}],"tabname":"Song","type":"SONG"},{"tabname":"Related","type":"RELATED","url":"https://cdn.shazam.com/shazam/v3/en-US/GB/web/-/tracks/track-similarities-id-52910892?startFrom=0&pageSize=20&connected="}],"share":{"avatar":"https://is1-ssl.mzstatic.com/image/thumb/Features115/v4/09/9d/29/099d2956-660c-f175-2ae7-172272fdf971/mzl.whswoyuz.jpg/800x800cc.jpg","href":"https://www.shazam.com/track/52910892/freak-the-freak-out","html":"https://www.shazam.com/snippets/email-share/52910892?lang=en-US&country=GB","image":"https://is1-ssl.mzstatic.com/image/thumb/Music/2b/3c/ca/mzi.xkxafcng.jpg/400x400cc.jpg","snapchat":"https://www.shazam.com/partner/sc/track/52910892","subject":"Freak the Freak Out - Victorious Cast & Victoria Justice","text":"Freak the Freak Out by Victorious Cast & Victoria Justice","twitter":"I used @Shazam to discover Freak the Freak Out by Victorious Cast & Victoria Justice."},"subtitle":"Victorious Cast & Victoria Justice","title":"Freak the Freak Out","trackadamid":"495924694","type":"MUSIC","url":"https://www.shazam.com/track/52910892/freak-the-freak-out","urlparams":{"{trackartist}":"Victorious+Cast+%26+Victoria+Justice","{tracktitle}":"Freak+the+Freak+Out"}}}
curl --location 'https://zylalabs.com/api/2219/shazam+api/2068/recognize+song' \
--header 'Content-Type: application/json' \
--form 'image=@"FILE_PATH"'
{"location":{"accuracy":0.01},"matches":[{"frequencyskew":-0.002895534,"id":"283541677","offset":103.457421875,"timeskew":-0.02038312},{"frequencyskew":-0.008341968,"id":"430211173","offset":102.00759375,"timeskew":-0.03386116},{"frequencyskew":-0.009698927,"id":"207974733","offset":30.71655664,"timeskew":-0.0067534447},{"frequencyskew":-0.0049013495,"id":"327506332","offset":105.67110156199999,"timeskew":0.007916093},{"frequencyskew":-0.013304591,"id":"510145430","offset":113.187609375,"timeskew":-0.013328373},{"frequencyskew":-0.003987193,"id":"275553909","offset":102.8029375,"timeskew":-0.034041822},{"frequencyskew":-0.0073029995,"id":"239066768","offset":43.704875,"timeskew":-0.036669075},{"frequencyskew":-0.002069056,"id":"295317975","offset":97.04869531199999,"timeskew":0.024247527},{"frequencyskew":-0.0060228705,"id":"528475510","offset":99.186671875,"timeskew":-0.032376885},{"frequencyskew":-0.0066791177,"id":"601371774","offset":29.273625,"timeskew":0.07736254},{"frequencyskew":-0.0058894157,"id":"702112961","offset":106.32449218699999,"timeskew":0.0056016445},{"frequencyskew":0.00028192997,"id":"448075328","offset":105.005015625,"timeskew":-0.0024587512},{"frequencyskew":-0.004286647,"id":"329590746","offset":108.14959375,"timeskew":-0.019595802},{"frequencyskew":-0.013440847,"id":"224515587","offset":128.629882812,"timeskew":-0.0064364076},{"frequencyskew":-0.0047570467,"id":"208106326","offset":102.875460937,"timeskew":-0.021855235},{"frequencyskew":-0.006926,"id":"575881741","offset":104.30252343699999,"timeskew":-0.027724564},{"frequencyskew":-0.0069031715,"id":"295191966","offset":52.255535156,"timeskew":-0.015574336},{"frequencyskew":0.0003682375,"id":"455919411","offset":45.977390625,"timeskew":0.021234035},{"frequencyskew":-0.006743133,"id":"313106994","offset":109.583265625,"timeskew":-0.08104432}],"tagid":"6729B86C-7085-4266-B9F4-C991E6DFEB73","timestamp":842882073,"timezone":"Europe/Moscow","track":{"albumadamid":"1648125799","alias":"piano-sonata-no-11-in-a-major-k-331-iii-alla-turca","artists":[{"adamid":"1500915192","alias":"classical-coterie","id":"42"}],"genres":{"primary":"Instrumental"},"highlightsurls":{},"hub":{"actions":[{"id":"1648125806","name":"apple","type":"applemusicplay"},{"name":"apple","type":"uri","uri":"https://audio-ssl.itunes.apple.com/itunes-assets/AudioPreview122/v4/16/5c/8d/165c8d39-3181-666c-3008-0e47aa65ddd2/mzaf_14672895460381020655.plus.aac.ep.m4a"}],"displayname":"APPLE MUSIC","explicit":false,"image":"https://images.shazam.com/static/icons/hub/web/v5/applemusic.png","options":[{"actions":[{"name":"hub:applemusic:deeplink","type":"applemusicopen","uri":"https://music.apple.com/gb/album/piano-sonata-no-11-in-a-major-k-331-iii-alla-turca/1648125799?i=1648125806&mttnagencyid=s2n&mttnsiteid=125115&mttn3pid=Apple-Shazam&mttnsub1=Shazam_web&mttnsub2=5348615A-616D-3235-3830-44754D6D5973&itscg=30201&app=music&itsct=Shazam_web"},{"name":"hub:applemusic:deeplink","type":"uri","uri":"https://music.apple.com/gb/album/piano-sonata-no-11-in-a-major-k-331-iii-alla-turca/1648125799?i=1648125806&mttnagencyid=s2n&mttnsiteid=125115&mttn3pid=Apple-Shazam&mttnsub1=Shazam_web&mttnsub2=5348615A-616D-3235-3830-44754D6D5973&itscg=30201&app=music&itsct=Shazam_web"}],"beacondata":{"providername":"applemusic","type":"open"},"caption":"OPEN IN","colouroverflowimage":false,"image":"https://images.shazam.com/static/icons/hub/web/v5/overflow-open-option.png","listcaption":"Open in Apple Music","overflowimage":"https://images.shazam.com/static/icons/hub/web/v5/applemusic-overflow.png","providername":"applemusic","type":"open"}],"type":"APPLEMUSIC"},"images":{"background":"https://is1-ssl.mzstatic.com/image/thumb/Music122/v4/1d/96/fa/1d96fa15-d4bc-f759-940e-3fc19f035abe/5063113651205_cover.jpg/400x400cc.jpg","coverart":"https://is1-ssl.mzstatic.com/image/thumb/Music122/v4/1d/96/fa/1d96fa15-d4bc-f759-940e-3fc19f035abe/5063113651205_cover.jpg/400x400cc.jpg","coverarthq":"https://is1-ssl.mzstatic.com/image/thumb/Music122/v4/1d/96/fa/1d96fa15-d4bc-f759-940e-3fc19f035abe/5063113651205_cover.jpg/400x400cc.jpg","joecolor":"b:f0f1f3p:000000s:00165bt:303030q:30427a"},"isrc":"GX89G2273669","key":"47723750","layout":"5","relatedtracksurl":"https://cdn.shazam.com/shazam/v3/en-US/GB/web/-/tracks/track-similarities-id-47723750?startFrom=0&pageSize=20&connected=","releasedate":"10-12-2009","sections":[{"metadata":[{"text":"Collected Mozart Piano Sonatas","title":"Album"},{"text":"Classical Coterie","title":"Label"},{"text":"2009","title":"Released"}],"metapages":[{"caption":"Piano Sonata No. 11 in a Major, K. 331 - III. Alla Turca","image":"https://is1-ssl.mzstatic.com/image/thumb/Music122/v4/1d/96/fa/1d96fa15-d4bc-f759-940e-3fc19f035abe/5063113651205_cover.jpg/400x400cc.jpg"}],"tabname":"Song","type":"SONG"},{"tabname":"Related","type":"RELATED","url":"https://cdn.shazam.com/shazam/v3/en-US/GB/web/-/tracks/track-similarities-id-47723750?startFrom=0&pageSize=20&connected="}],"share":{"href":"https://www.shazam.com/track/47723750/piano-sonata-no-11-in-a-major-k-331-iii-alla-turca","html":"https://www.shazam.com/snippets/email-share/47723750?lang=en-US&country=GB","image":"https://is1-ssl.mzstatic.com/image/thumb/Music122/v4/1d/96/fa/1d96fa15-d4bc-f759-940e-3fc19f035abe/5063113651205_cover.jpg/400x400cc.jpg","snapchat":"https://www.shazam.com/partner/sc/track/47723750","subject":"Piano Sonata No. 11 in a Major, K. 331 - III. Alla Turca - Classical Coterie","text":"Piano Sonata No. 11 in a Major, K. 331 - III. Alla Turca by Classical Coterie","twitter":"I used @Shazam to discover Piano Sonata No. 11 in a Major, K. 331 - III. Alla Turca by Classical Coterie."},"subtitle":"Classical Coterie","title":"Piano Sonata No. 11 in a Major, K. 331 - III. Alla Turca","trackadamid":"1648125806","type":"MUSIC","url":"https://www.shazam.com/track/47723750/piano-sonata-no-11-in-a-major-k-331-iii-alla-turca","urlparams":{"{trackartist}":"Classical+Coterie","{tracktitle}":"Piano+Sonata+No.+11+in+a+Major%2C+K.+331+-+III.+Alla+Turca"}}}
curl --location --request GET 'https://zylalabs.com/api/2219/shazam+api/7767/recognize+song+by+url?url=https://p.scdn.co/mp3-preview/d4d9aa2c6b44dda05115e4e983e741caf4efde40' --header 'Authorization: Bearer YOUR_API_KEY'
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 simply include your bearer token in the Authorization header.
| Header | Description |
|---|---|
Authorization
|
Required
Should be Bearer access_key. See "Your API Access Key" above when you are subscribed.
|
No long-term commitment. Upgrade, downgrade, or cancel anytime. Free Trial includes up to 50 requests.
(Save 2 months with annual billing 🎉)
Trusted by leading companies
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.
Pass a part of any song you want to recognize. Recommended 4 to 5 seconds. Retrieve information about the recognized song.
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.
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.
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.
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.
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.
Besides the number of API calls, there is no other limitation
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.
Each endpoint returns detailed information about the recognized song, including track metadata such as title, artist, album, genre, and a unique track ID. Additionally, it provides match accuracy, timestamps, and links to streaming services.
Key fields in the response include "track" (containing title, artist, album), "matches" (providing match details), "location" (accuracy of recognition), and "hub" (offering actions like streaming links).
The response data is structured in JSON format, with nested objects for "track," "matches," and "hub." This organization allows easy access to specific details about the recognized song and related actions.
Each endpoint provides information such as song title, artist names, album details, genre classification, match accuracy, and links to platforms like Apple Music for further listening.
The primary parameter is the audio input, which can be submitted as a file or URL. Users can customize their requests by adjusting the audio chunk size and format, ideally keeping it around 500 KB.
Users can leverage the returned data to display song details in their applications, create playlists, or provide links to streaming services. For example, using the "hub" field, developers can direct users to listen on platforms like Apple Music.
Typical use cases include enhancing music streaming apps with song identification, enabling social media sharing of music, and integrating recognition features in voice-enabled devices for seamless user interaction.
Data accuracy is maintained through advanced algorithms and a comprehensive music database. Continuous updates and quality checks ensure that the API can recognize a wide range of songs, including new releases and obscure tracks.
To obtain your API key, first sign in to your account and navigate to the API you want to use. From the API's Pricing section, choose a plan and complete the subscription process. Once subscribed, return to the API page and you will see your API Access Key displayed at the top of the documentation page. You can use this key to authenticate your requests.
You can’t switch APIs during the free trial. If you subscribe to a different API, your trial will end and the new subscription will start as a paid plan.
The free trial lasts for 7 days and allows you to make up to 50 API requests.
No, the free trial is available only once, so we recommend using it on the API that interests you the most. Most of our APIs offer a free trial, but some may not include this option.
Yes. If the API offers a free trial, you will see a "Free 7-Day Trial" option in its Pricing section. The trial lasts for 7 days and allows up to 50 API requests, enabling you to evaluate the API before subscribing to a paid plan.
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.
You can monitor your API usage through the response headers included with every request:
x-zyla-api-calls-monthly-used: Shows the total number of API requests you have used during the current billing period.
x-zyla-api-calls-monthly-remaining: Shows the number of API requests you have remaining for the current billing period.
Yes, you can cancel your subscription at any time. Simply go to the Pricing section of the API you're subscribed to and click the "Unsubscribe" button.
Please note that upgrades, downgrades, and cancellations take effect immediately. Once your subscription is canceled, access to the service will end immediately, regardless of any remaining API calls in your quota.
Please have a look at our Refund Policy: https://zylalabs.com/terms#refund