Shazam Search API Documentation
The Shazam Search API returns the songs and artists the search box on shazam.com lists for a query. Each song carries its title, artist_name, Apple Music song id, and links to shazam.com and Apple Music. Album name and id, duration in milliseconds, genres, artwork, audio previews, ISRC, release date, track number and disc number are included when available. When present, artist_ids lists the artists Apple Music links to the song in its catalog. Each artist comes with its Apple Music id and links, plus genres when available.
Each country has its own catalog and ranking, so set country to the market you want and lang to one of its languages for genre names in that language. A page holds up to 25 songs and 25 artists. Shazam returns at most 100 of each, and a later page can repeat a song from an earlier one.
API Parameters
Localization
-
- Name
-
country - Required
- Optional
- Description
-
Parameter defines the country whose catalog is searched, as a lowercase two-letter code. Each country has its own catalog and ranking, so the same search can return different songs in Japan and in the United States. Head to the Shazam countries page for the supported values.
-
- Name
-
lang - Required
- Optional
- Description
-
Parameter defines the language of genre names and other labels, such as
jaorde-de. Each country takes its own languages, listed on the Shazam countries page, and defaults to the first of them, such asen-usforus.
Pagination
-
- Name
-
page - Required
- Optional
- Description
-
Parameter defines the page of results, with up to 25 songs and 25 artists each. Shazam returns at most 100 of each, so the last page is 4. Follow
pagination.nextwhen it is present, including on an empty page.
Engine
-
- Name
-
engine - Required
- Required
- Description
-
Parameter defines an engine that will be used to retrieve real-time data. It must be set to
shazam_search.
API key
-
- Name
-
api_key - Required
- Required
- Description
-
The
api_keyauthenticates your requests. Use it as a query parameter (https://www.searchapi.io/api/v1/search?api_key=YOUR_API_KEY) or in the Authorization header (Bearer YOUR_API_KEY).
Zero Data Retention
-
- Name
-
zero_retention - Enterprise Only
- Enterprise Only
- Required
- Optional
- Description
-
Set this parameter to
trueto keep request parameters, HTML, and JSON responses out of storage and logs. Suitable for high-compliance use cases. Debugging and support may be limited while enabled.
API Examples
Full Response
https://www.searchapi.io/api/v1/search?engine=shazam_search&q=adele
- Python
- Node
- Ruby
- Java
- Go
- PHP
- Bash
- R
- Kotlin
- Swift
- C#
- C
- C++
- requests
import requests
url = "https://www.searchapi.io/api/v1/search"
params = {
"engine": "shazam_search",
"q": "adele"
}
response = requests.get(url, params=params)
print(response.text)
{
"search_metadata": {
"id": "search_VJ0S0hcxj727BdwwnEN21bjC",
"status": "Success",
"created_at": "2026-11-26T12:20:04Z",
"request_time_taken": 1.26,
"parsing_time_taken": 0.02,
"total_time_taken": 1.29,
"json_url": "https://www.searchapi.io/api/v1/searches/search_VJ0S0hcxj727BdwwnEN21bjC"
},
"search_parameters": {
"engine": "shazam_search",
"q": "adele",
"country": "us",
"lang": "en-us",
"page": 1
},
"search_information": {
"top_result_type": "song"
},
"songs": [
{
"position": 1,
"title": "Someone Like You",
"song_id": "1544491998",
"link": "https://www.shazam.com/song/1544491998/someone-like-you",
"apple_music_link": "https://music.apple.com/us/album/someone-like-you/1544491232?i=1544491998",
"artist_name": "Adele",
"artist_ids": [
"262836961"
],
"album_name": "21",
"album_id": "1544491232",
"duration_ms": 285240,
"release_date": "2011-01-19",
"isrc": "GBBKS1000351",
"genres": [
"Pop",
"Music"
],
"composer": "Adele Adkins & Dan Wilson",
"track_number": 11,
"disc_number": 1,
"has_lyrics": true,
"preview": "https://audio-ssl.itunes.apple.com/itunes-assets/AudioPreview211/v4/08/22/2e/08222e25-43f5-20e6-a442...",
"thumbnail": "https://is1-ssl.mzstatic.com/image/thumb/Music221/v4/eb/ca/25/ebca2596-cd1e-b295-91a3-771c868d0a79/1..."
},
"..."
],
"artists": [
{
"position": 1,
"name": "Adele",
"artist_id": "262836961",
"link": "https://www.shazam.com/artist/adele/262836961",
"apple_music_link": "https://music.apple.com/us/artist/adele/262836961",
"genres": [
"Pop"
],
"thumbnail": "https://is1-ssl.mzstatic.com/image/thumb/Features125/v4/a2/2d/df/a22ddf71-9254-043c-c162-11fbc25c5ff..."
},
"..."
],
"pagination": {
"current": 1,
"next": 2
}
}
Songs
https://www.searchapi.io/api/v1/search?engine=shazam_search&q=kendrick+lamar&type=songs
- Python
- Node
- Ruby
- Java
- Go
- PHP
- Bash
- R
- Kotlin
- Swift
- C#
- C
- C++
- requests
import requests
url = "https://www.searchapi.io/api/v1/search"
params = {
"engine": "shazam_search",
"q": "kendrick lamar",
"type": "songs"
}
response = requests.get(url, params=params)
print(response.text)
{
"search_metadata": {
"id": "search_Ff0vDiBQQkNAFLOIvH80U0oY",
"status": "Success",
"created_at": "2026-11-26T12:20:05Z",
"request_time_taken": 0.89,
"parsing_time_taken": 0.0,
"total_time_taken": 0.89,
"json_url": "https://www.searchapi.io/api/v1/searches/search_Ff0vDiBQQkNAFLOIvH80U0oY"
},
"search_parameters": {
"engine": "shazam_search",
"q": "kendrick lamar",
"type": "songs",
"country": "us",
"lang": "en-us",
"page": 1
},
"search_information": {
"top_result_type": "song"
},
"songs": [
{
"position": 1,
"title": "Not Like Us",
"song_id": "1744776167",
"link": "https://www.shazam.com/song/1744776167/not-like-us",
"apple_music_link": "https://music.apple.com/us/album/not-like-us/1744776162?i=1744776167",
"artist_name": "Kendrick Lamar",
"artist_ids": [
"368183298"
],
"album_name": "Not Like Us - Single",
"album_id": "1744776162",
"duration_ms": 274192,
"release_date": "2024-05-04",
"isrc": "USUG12400910",
"genres": [
"Hip-Hop/Rap",
"Music"
],
"composer": "Kendrick Lamar, Ray Charles, Sean Momberger, Dijon McFarlane & Mark Anthony Spears",
"track_number": 1,
"disc_number": 1,
"is_explicit": true,
"has_lyrics": true,
"preview": "https://audio-ssl.itunes.apple.com/itunes-assets/AudioPreview221/v4/96/f8/f8/96f8f80b-dbb5-f2ca-714e...",
"thumbnail": "https://is1-ssl.mzstatic.com/image/thumb/Music221/v4/d0/ef/b6/d0efb685-73be-fdee-58c9-be655f4cd4fd/2..."
},
"..."
],
"pagination": {
"current": 1,
"next": 2
}
}
Artists
https://www.searchapi.io/api/v1/search?engine=shazam_search&q=john&type=artists
- Python
- Node
- Ruby
- Java
- Go
- PHP
- Bash
- R
- Kotlin
- Swift
- C#
- C
- C++
- requests
import requests
url = "https://www.searchapi.io/api/v1/search"
params = {
"engine": "shazam_search",
"q": "john",
"type": "artists"
}
response = requests.get(url, params=params)
print(response.text)
{
"search_metadata": {
"id": "search_Ny2DWYnWuAnaoU976ldupFXt",
"status": "Success",
"created_at": "2026-11-26T12:20:06Z",
"request_time_taken": 2.26,
"parsing_time_taken": 0.0,
"total_time_taken": 2.26,
"json_url": "https://www.searchapi.io/api/v1/searches/search_Ny2DWYnWuAnaoU976ldupFXt"
},
"search_parameters": {
"engine": "shazam_search",
"q": "john",
"type": "artists",
"country": "us",
"lang": "en-us",
"page": 1
},
"search_information": {
"top_result_type": "artist"
},
"artists": [
{
"position": 1,
"name": "John Mayer",
"artist_id": "472054",
"link": "https://www.shazam.com/artist/john-mayer/472054",
"apple_music_link": "https://music.apple.com/us/artist/john-mayer/472054",
"genres": [
"Rock"
],
"thumbnail": "https://is1-ssl.mzstatic.com/image/thumb/AMCArtistImages221/v4/5a/97/de/5a97de2b-2881-3ec1-095f-3ac5..."
},
"..."
],
"pagination": {
"current": 1,
"next": 2
}
}
Japan in Japanese
https://www.searchapi.io/api/v1/search?country=jp&engine=shazam_search&lang=ja&q=love
- Python
- Node
- Ruby
- Java
- Go
- PHP
- Bash
- R
- Kotlin
- Swift
- C#
- C
- C++
- requests
import requests
url = "https://www.searchapi.io/api/v1/search"
params = {
"engine": "shazam_search",
"q": "love",
"country": "jp",
"lang": "ja"
}
response = requests.get(url, params=params)
print(response.text)
{
"search_metadata": {
"id": "search_SsbHGLDFQxPMBSyft2lwnWkB",
"status": "Success",
"created_at": "2026-11-26T12:20:09Z",
"request_time_taken": 1.43,
"parsing_time_taken": 0.0,
"total_time_taken": 1.43,
"json_url": "https://www.searchapi.io/api/v1/searches/search_SsbHGLDFQxPMBSyft2lwnWkB"
},
"search_parameters": {
"engine": "shazam_search",
"q": "love",
"country": "jp",
"lang": "ja",
"page": 1
},
"search_information": {
"top_result_type": "song"
},
"songs": [
{
"position": 1,
"title": "Love",
"song_id": "1442921742",
"link": "https://www.shazam.com/song/1442921742/love",
"apple_music_link": "https://music.apple.com/jp/album/love/1442921207?i=1442921742",
"artist_name": "キーシャ・コール",
"artist_ids": [
"5305761"
],
"album_name": "Just Like You (International Deluxe Version)",
"album_id": "1442921207",
"duration_ms": 254773,
"release_date": "2005-06-21",
"isrc": "USAM10500210",
"genres": [
"R&B/ソウル",
"ミュージック"
],
"composer": "キーシャ・コール & グレーゴ・カーティス",
"track_number": 4,
"disc_number": 1,
"has_lyrics": true,
"preview": "https://audio-ssl.itunes.apple.com/itunes-assets/AudioPreview221/v4/f4/bd/4e/f4bd4ef2-3682-bddc-b69a-d29a6a922476/mzaf_4255882440563573885.plus.aac.p.m4a",
"thumbnail": "https://is1-ssl.mzstatic.com/image/thumb/Music211/v4/8a/26/1e/8a261e86-9ccc-821b-9a4c-0a8fe13ede1c/09UMGIM44536.rgb.jpg/400x400bb.jpg"
},
{
"position": 2,
"title": "LOVE",
"song_id": "1128292663",
"link": "https://www.shazam.com/song/1128292663/love",
"apple_music_link": "https://music.apple.com/jp/album/love/1128292575?i=1128292663",
"artist_name": "C.O.S.A. × KID FRESINO",
"artist_ids": [
"419374955",
"597838190"
],
"album_name": "Somewhere",
"album_id": "1128292575",
"duration_ms": 219652,
"release_date": "2016-07-06",
"isrc": "JPU651500310",
"genres": [
"ヒップホップ/ラップ",
"ミュージック"
],
"composer": "JJJ",
"track_number": 2,
"disc_number": 1,
"has_lyrics": true,
"preview": "https://audio-ssl.itunes.apple.com/itunes-assets/AudioPreview221/v4/9f/7b/30/9f7b30f1-3958-c00a-8fa8-d6d34cb5219e/mzaf_13088052731513804842.plus.aac.p.m4a",
"thumbnail": "https://is1-ssl.mzstatic.com/image/thumb/Music125/v4/65/35/0b/65350beb-0a08-ee99-ed9a-f77a0d6bf828/4538182630259_cov.jpg/400x400bb.jpg"
},
"..."
],
"artists": [
{
"position": 1,
"name": "Love",
"artist_id": "432307585",
"link": "https://www.shazam.com/artist/love/432307585",
"apple_music_link": "https://music.apple.com/jp/artist/love/432307585",
"genres": [
"ロック"
],
"thumbnail": "https://is1-ssl.mzstatic.com/image/thumb/AMCArtistImages221/v4/42/c4/a8/42c4a845-5f30-f50a-ec15-d9b6def76822/ami_U003aidentity_U003a4691e9fbc24e591c845e51a0118b9ea5-2026-10-01T22-00-10.848Z_cropped.png/400x400bb.jpg"
},
{
"position": 2,
"name": "=LOVE",
"artist_id": "1273762750",
"link": "https://www.shazam.com/artist/love/1273762750",
"apple_music_link": "https://music.apple.com/jp/artist/love/1273762750",
"genres": [
"J-Pop"
],
"thumbnail": "https://is1-ssl.mzstatic.com/image/thumb/Features221/v4/76/4f/90/764f90d2-3565-f432-bfff-a3c664c793c7/mzl.xodyxxiq.jpg/400x400bb.jpg"
}
],
"pagination": {
"current": 1,
"next": 2
}
}
Second Page of Songs
https://www.searchapi.io/api/v1/search?engine=shazam_search&page=2&q=love
- Python
- Node
- Ruby
- Java
- Go
- PHP
- Bash
- R
- Kotlin
- Swift
- C#
- C
- C++
- requests
import requests
url = "https://www.searchapi.io/api/v1/search"
params = {
"engine": "shazam_search",
"q": "love",
"page": "2"
}
response = requests.get(url, params=params)
print(response.text)
{
"search_metadata": {
"id": "search_mRj3AIwSiq79x7FHNTe6LA1A",
"status": "Success",
"created_at": "2026-11-26T12:20:11Z",
"request_time_taken": 0.97,
"parsing_time_taken": 0.0,
"total_time_taken": 0.97,
"json_url": "https://www.searchapi.io/api/v1/searches/search_mRj3AIwSiq79x7FHNTe6LA1A"
},
"search_parameters": {
"engine": "shazam_search",
"q": "love",
"country": "us",
"lang": "en-us",
"page": 2
},
"search_information": {
"top_result_type": "song"
},
"songs": [
{
"position": 26,
"title": "Love",
"song_id": "1444214032",
"link": "https://www.shazam.com/song/1444214032/love",
"apple_music_link": "https://music.apple.com/us/album/love/1444213589?i=1444214032",
"artist_name": "Mos Def",
"artist_ids": [
"92012"
],
"album_name": "Black On Both Sides",
"album_id": "1444213589",
"duration_ms": 263187,
"release_date": "1999-10-12",
"isrc": "USRW50200226",
"genres": [
"Hip-Hop/Rap",
"Music"
],
"composer": "Dante Smith & Charles Njapa",
"track_number": 3,
"disc_number": 1,
"is_explicit": true,
"has_lyrics": true,
"preview": "https://audio-ssl.itunes.apple.com/itunes-assets/AudioPreview211/v4/a0/41/86/a04186ea-6754-c2f4-69ca...",
"thumbnail": "https://is1-ssl.mzstatic.com/image/thumb/Music124/v4/89/20/70/89207018-b8f3-4935-b812-dc94a5504df1/0..."
},
"..."
],
"pagination": {
"current": 2,
"next": 3
}
}