This repository has been archived by the owner on Sep 10, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 35
2.4.3 Recherche par artiste
William Fortin edited this page Aug 21, 2014
·
3 revisions
Permet de rechercher dans la base de données d'artistes musicaux d'itunes.
Token d'authentification nécessaire
Paramètres obligatoires
q
est le paramètre de recherche dans l'URL.
Par exemple pour rechercher pour Metallica
l'URL sera /search/artists?q=Metallica
.
Paramètres facultatifs
limit
donne le nombre de résultats maximums voulu. (Valeur par défault de 10)
Par exemple pour rechercher pour skrillex
et obtenir maximum 20 résultats l'URL sera /search?q=skrillex&limit=20
.
La requête doit être URL encodée (Comment URL encoder en JavaScript)
{
"resultCount": 6,
"results": [
{
"wrapperType": "artist",
"artistType": "Artist",
"artistName": "Metallica",
"artistLinkUrl": "https://itunes.apple.com/us/artist/metallica/id3996865?uo=4",
"artistId": 3996865,
"amgArtistId": 4906,
"primaryGenreName": "Rock",
"primaryGenreId": 21,
"radioStationUrl": "https://itunes.apple.com/station/idra.3996865"
}, {
}]
}