Aller au contenu
GET /v1/artist

Artist with top tracks

Essayez-le en direct

10 appels gratuits par jour — sans inscription, sans clé API. Passe par la passerelle oanor.

En-têtes personnalisés (facultatif)
api.oanor.com/spotify-api

Ça marche. Récupérez une clé API et utilisez-la dans votre projet.

Obtenez une clé API

Extraits de code

curl "https://api.oanor.com/spotify-api/v1/artist" \
  -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/spotify-api/v1/artist", {
  headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/spotify-api/v1/artist");
curl_setopt($ch, CURLOPT_HTTPHEADER, ["x-oanor-key: oanor_test_..."]);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
$out = curl_exec($ch);
import requests
requests.get(
    "https://api.oanor.com/spotify-api/v1/artist",
    headers={"x-oanor-key": "oanor_test_..."}
)

Exemple de réponse

Une réponse réelle de ce endpoint, capturée lors du dernier contrôle de santé.

{
    "data": {
        "artist": {
            "id": "0OdUWJ0sBjDrqHygGUXeCF",
            "uri": "spotify:artist:0OdUWJ0sBjDrqHygGUXeCF",
            "url": "https://open.spotify.com/artist/0OdUWJ0sBjDrqHygGUXeCF",
            "name": "Band of Horses",
            "type": "artist",
            "explicit": false,
            "subtitle": "Top tracks",
            "cover_art": "https://image-cdn-ak.spotifycdn.com/image/ab676161000051742cb57b092374b2f975ee9adc",
            "top_tracks": [
                {
                    "id": "5lRzWDEe7UuedU2QPsFg0K",
                    "title": "The Funeral",
                    "artists": [
                        "Band of Horses"
                    ],
                    "explicit": false,
                    "playable": true,
                    "subtitle": "Band of Horses",
                    "has_video": false,
                    "duration_ms": 322173,
                    "audio_preview": "https://p.scdn.co/mp3-preview/a3d4810ce9c8ea8771bf5d2de93cadc44ec1ee77"
                },
                {
                    "id": "2IvNxLl01CTAfCOA103Tgx",
                    "title": "No One's Gonna Love You",
                    "artists": [
                        "Band of Horses"
                    ],
                    "explicit": false,
                    "playable": true,
                    "subtitle": "Band of Horses",
                    "has_video": false,
                    "duration_ms": 217333,
                    "audio_preview": "https://p.scdn.co/mp3-preview/69cbe47f7bc308d9a67cab573a56da229bee587c"
                },
                {
                    "id": "7fgOmdonXZap1Kuz7hs3O1",
                    "title": "Is There A Ghost",
                    "artists": [
                        "Band of Horses"
                    ],
                    "explicit": false,
                    "playable": true,
                    "subtitle": "Band of Horses",
                    "has_video": false,
                    "duration_ms": 179666,
                    "audio_preview": "https://p.scdn.co/mp3-preview/07598faa7d1520f7d1647397fb70416422ec71a7"
                },
                {
                    "id": "766EIreId79ZFBkiDO1Ial",
                    "title": "Our Swords",
                    "artists": [
                        "Band of Horses"
                    ],
                    "explicit": false,
                    "playable": true,
                    "subtitle": "Band of Horses",
                    "has_video": false,
                    "duration_ms": 146306,
                    "audio_preview": "https://p.scdn.co/mp3-preview/6efb15544057d40a89cf37e64a2e2f7c28db9237"
                },
                {
                    "id": "6iYZuHW7IAUTvUpvRTVQZA",
                    "title": "The Great Salt Lake",
                    "artists": [
                        "Band of Horses"
                    ],
                    "explicit": false,
                    "playable": t
…