The Shazam API provides various endpoints to perform actions related to song recognition, artist and track information, and other related features.
The Shazam API currently does not require authentication for accessing public endpoints.
GET /shazam/recognize/
Recognize a song from an audio URL.
url
(query parameter, required): The URL of the audio file.200 OK
: Successful response.422 Validation Error
: If there is a validation error.POST /shazam/recognize/
Recognize a song from an audio file.
multipart/form-data
: Form data containing the audio file.200 OK
: Successful response.422 Validation Error
: If there is a validation error.GET /shazam/search_artist/
Search for an artist.
query
(query parameter, required): The artist’s name or query string.limit
(query parameter, optional): Limit the number of results (default: 10).200 OK
: Successful response.422 Validation Error
: If there is a validation error.GET /shazam/search_track/
Search for a track.
query
(query parameter, required): The track’s name or query string.limit
(query parameter, optional): Limit the number of results (default: 10).200 OK
: Successful response.422 Validation Error
: If there is a validation error.GET /shazam/about_artist
Get information about an artist.
artist_id
(query parameter, required): The unique identifier of the artist.200 OK
: Successful response.422 Validation Error
: If there is a validation error.GET /shazam/about_track
Get information about a track.
track_id
(query parameter, required): The unique identifier of the track.200 OK
: Successful response.422 Validation Error
: If there is a validation error.GET /shazam/track_listenings_count
Get the number of listenings for a track.
track_id
(query parameter, required): The unique identifier of the track.200 OK
: Successful response.422 Validation Error
: If there is a validation error.GET /shazam/similar_tracks
Get similar tracks for a given track.
track_id
(query parameter, required): The unique identifier of the track.limit
(query parameter, optional): Limit the number of results (default: 10).offset
(query parameter, optional): Offset for pagination (default: 0).200 OK
: Successful response.422 Validation Error
: If there is a validation error.GET /shazam/top_artist_tracks
Get top tracks for a given artist.
artist_id
(query parameter, required): The unique identifier of the artist.200 OK
: Successful response.422 Validation Error
: If there is a validation error.GET /shazam/top_tracks_city
Get top tracks in a specific city.
country_code
(query parameter, optional, default: “RU”): The country code of the city.city_name
(query parameter, optional, default: “Moscow”): The name of the city.limit
(query parameter, optional): Limit the number of results (default: 10).200 OK
: Successful response.422 Validation Error
: If there is a validation error.GET /shazam/top_tracks_country
Get top tracks in a specific country.
country_code
(query parameter, optional, default: “UZ”): The country code.limit
(query parameter, optional): Limit the number of results (default: 10).200 OK
: Successful response.422 Validation Error
: If there is a validation error.In case of errors, the API will respond with appropriate HTTP status codes and error messages in the response body. Please refer to the specific endpoint documentation for details on possible errors.
The Shazam API has rate limiting in place to ensure fair usage. Exceeding the rate limits may result in temporary or permanent suspension of access. Please refer to the specific endpoint documentation for rate limit details.
For any inquiries or support, please contact support@your-api.com.