Spotify artist by id or URL — followers, genres
scrapecreators.x.v1-spotify-artistRetrieves detailed information about a Spotify artist by their handle, including name, followers count, genres, and related artists.
- Price
- $0.00188/callAu prix du fournisseur
- Success rate
- 98,6 %Last 30 days · 4 185 calls
- Latency p50
- 2.8 sp95 9 s
- Last verified
- —Not verified yet
GEThttps://toolswitch.dev/v1/tools/scrapecreators.x.v1-spotify-artist?id=0cGUm45nv7Z6M6qdXYQGTXPreviewTry onlineBientôtProvider docs ↗
- Uses platform quota
- Synchronous response
- Reads public data
Paramètres
| Paramètre | Type | Obligatoire | Description | Exemple |
|---|---|---|---|---|
| Paramètres de requête | ||||
id | chaîne | Facultatif | Spotify artist id. If you'd prefer to use the URL instead, you can use the url parameter instead. | 0cGUm45nv7Z6M6qdXYQGTX |
url | chaîne | Facultatif | Spotify artist URL. If you'd prefer to use the id instead, you can use the id parameter instead. | https://open.spotify.com/artist/0cGUm45nv7Z6M6qdXYQGTX |
- Paramètres de requête
idchaîneFacultatifSpotify artist id. If you'd prefer to use the URL instead, you can use the url parameter instead.
Exemple :
0cGUm45nv7Z6M6qdXYQGTXurlchaîneFacultatifSpotify artist URL. If you'd prefer to use the id instead, you can use the id parameter instead.
Exemple :
https://open.spotify.com/artist/0cGUm45nv7Z6M6qdXYQGTX
Exemples de code
Remplacez $TOOLSWITCH_KEY par la clé créée dans la console.
Preview
curl -X GET 'https://toolswitch.dev/v1/tools/scrapecreators.x.v1-spotify-artist?id=0cGUm45nv7Z6M6qdXYQGTX' \
-H "X-Toolswitch-Key: $TOOLSWITCH_KEY"import os
import requests
response = requests.request(
"GET",
"https://toolswitch.dev/v1/tools/scrapecreators.x.v1-spotify-artist?id=0cGUm45nv7Z6M6qdXYQGTX",
headers={"X-Toolswitch-Key": os.environ["TOOLSWITCH_KEY"]},
)
response.raise_for_status()
print(response.text)const response = await fetch("https://toolswitch.dev/v1/tools/scrapecreators.x.v1-spotify-artist?id=0cGUm45nv7Z6M6qdXYQGTX", {
method: "GET",
headers: {
"X-Toolswitch-Key": process.env.TOOLSWITCH_KEY ?? "",
},
});
if (!response.ok) throw new Error(`Request failed: ${response.status}`);
console.log(await response.text());Cette API de passerelle est en préversion ; son URL et son authentification peuvent changer. Les paramètres de l’exemple sont des données fictives. Les appels sont facturés à $0.00188/call, frais de service inclus.