Shazam
Source: api.
Methods
- recognizeSong(samples, language)
- recognizeSongMinimal(samples, language)
- related_songs(language, endpoint_country, track_id, limit, offset)
- search_artist(language, endpoint_country, query, limit, offset)
- search_artist_v2(endpoint_country, artist_id)
- search_music(language, endpoint_country, query, limit, offset)
- top_genre_tracks_country(language, endpoint_country, country, genre, limit, offset)
- top_genre_tracks_world(language, endpoint_country, genre, limit, offset)
- top_tracks_city(language, endpoint_country, city_id, limit, offset)
- top_tracks_country(language, endpoint_country, country_code, limit, offset)
- top_tracks_global(language, endpoint_country, limit, offset)
- track_info(language, endpoint_country, track_id)
new Shazam()
Methods
artist_albums(endpoint_country, artist_id, limit, offset)
Albums by an artist
Parameters
| Name | Type | Optional | Description |
|---|---|---|---|
|
endpoint_country |
string |
|
Endpoint country |
|
artist_id |
string |
|
Shazam artist id |
|
limit |
string |
|
limit to how many tracks are fetched |
|
offset |
string |
|
the offset to start fetching from |
fromFilePath(path, minimal, language) → (ShazamRoot or null)
Parameters
| Name | Type | Optional | Description |
|---|---|---|---|
|
path |
string |
|
the path to the file |
|
minimal |
Boolean |
|
false for full track data, true for simplified form Defaults to |
|
language |
string |
|
Song language Defaults to |
- Deprecated
- Recognise a song from an audio file
- Returns
-
(ShazamRoot or null)
fromVideoFile(path, minimal, language) → (ShazamRoot or null)
Parameters
| Name | Type | Optional | Description |
|---|---|---|---|
|
path |
string |
|
the path to the file |
|
minimal |
Boolean |
|
false for full track data, true for simplified form Defaults to |
|
language |
string |
|
Song language Defaults to |
- Deprecated
- Recognise a song from a video file
- Returns
-
(ShazamRoot or null)
list_locations()
List locations
listen_count(track)
Get number of times a track was shazamed
Parameter
| Name | Type | Optional | Description |
|---|---|---|---|
|
track |
string |
|
Track ID |
recognise(path, language, minimal) → (ShazamRoot or null)
Recognise a song from a file
Parameters
| Name | Type | Optional | Description |
|---|---|---|---|
|
path |
string |
|
the path to the file |
|
language |
string |
|
Song language Defaults to |
|
minimal |
boolean |
|
return minimal info Defaults to |
- Returns
-
(ShazamRoot or null)
recognizeSong(samples, language)
Parameters
| Name | Type | Optional | Description |
|---|---|---|---|
|
samples |
Array of number |
|
Samples array |
|
language |
string |
|
Song language Defaults to |
- Deprecated
- Recognise a song from Samples Array
recognizeSongMinimal(samples, language)
Parameters
| Name | Type | Optional | Description |
|---|---|---|---|
|
samples |
Array of number |
|
Samples array |
|
language |
string |
|
Song language Defaults to |
- Deprecated
- Recognise a song from Samples Array and return minial info
related_songs(language, endpoint_country, track_id, limit, offset)
Related songs for a track
Parameters
| Name | Type | Optional | Description |
|---|---|---|---|
|
language |
string |
|
Song language |
|
endpoint_country |
string |
|
Endpoint country |
|
track_id |
string |
|
Shazam track id |
|
limit |
string |
|
limit to how many tracks are fetched |
|
offset |
string |
|
the offset to start fetching from |
search_artist(language, endpoint_country, query, limit, offset)
Search artist by name
Parameters
| Name | Type | Optional | Description |
|---|---|---|---|
|
language |
string |
|
Song language |
|
endpoint_country |
string |
|
Endpoint country |
|
query |
string |
|
Artist name |
|
limit |
string |
|
limit to how many tracks are fetched |
|
offset |
string |
|
the offset to start fetching from |
search_artist_v2(endpoint_country, artist_id)
Search artist by id
Parameters
| Name | Type | Optional | Description |
|---|---|---|---|
|
endpoint_country |
string |
|
Endpoint country |
|
artist_id |
string |
|
Artist ID |
search_music(language, endpoint_country, query, limit, offset)
Search music on shazam
Parameters
| Name | Type | Optional | Description |
|---|---|---|---|
|
language |
string |
|
Song language |
|
endpoint_country |
string |
|
Endpoint country |
|
query |
string |
|
Query to search |
|
limit |
string |
|
limit to how many tracks are fetched |
|
offset |
string |
|
the offset to start fetching from |
top_genre_tracks_country(language, endpoint_country, country, genre, limit, offset)
Most shazamed tracks for a country
Parameters
| Name | Type | Optional | Description |
|---|---|---|---|
|
language |
string |
|
Song language |
|
endpoint_country |
string |
|
Endpoint country |
|
country |
string |
|
ISO country code for the country |
|
genre |
string |
|
Genre to search |
|
limit |
string |
|
limit to how many tracks are fetched |
|
offset |
string |
|
the offset to start fetching from |
top_genre_tracks_world(language, endpoint_country, genre, limit, offset)
Most shazamed tracks globally for a genre
Parameters
| Name | Type | Optional | Description |
|---|---|---|---|
|
language |
string |
|
Song language |
|
endpoint_country |
string |
|
Endpoint country |
|
genre |
string |
|
Genre to search |
|
limit |
string |
|
limit to how many tracks are fetched |
|
offset |
string |
|
the offset to start fetching from |
top_tracks_city(language, endpoint_country, city_id, limit, offset)
Most shazamed tracks for a city
Parameters
| Name | Type | Optional | Description |
|---|---|---|---|
|
language |
string |
|
Song language |
|
endpoint_country |
string |
|
Endpoint country |
|
city_id |
string |
|
Shazam city id |
|
limit |
string |
|
limit to how many tracks are fetched |
|
offset |
string |
|
the offset to start fetching from |
top_tracks_country(language, endpoint_country, country_code, limit, offset)
Most shazamed tracks for a country
Parameters
| Name | Type | Optional | Description |
|---|---|---|---|
|
language |
string |
|
Song language |
|
endpoint_country |
string |
|
Endpoint country |
|
country_code |
string |
|
ISO country code for the country |
|
limit |
string |
|
limit to how many tracks are fetched |
|
offset |
string |
|
the offset to start fetching from |
top_tracks_global(language, endpoint_country, limit, offset)
Most shazamed tracks globally
Parameters
| Name | Type | Optional | Description |
|---|---|---|---|
|
language |
string |
|
Song language Defaults to |
|
endpoint_country |
string |
|
Endpoint country Defaults to |
|
limit |
string |
|
limit to how many tracks are fetched Defaults to |
|
offset |
string |
|
the offset to start fetching from Defaults to |
track_info(language, endpoint_country, track_id)
Info about a track
Parameters
| Name | Type | Optional | Description |
|---|---|---|---|
|
language |
string |
|
Song language |
|
endpoint_country |
string |
|
Endpoint country |
|
track_id |
string |
|
Shazam track id |