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/callAl precio del proveedor
- Success rate
- 98,6 %Last 30 days · 4185 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 onlinePróximamenteProvider docs ↗
- Uses platform quota
- Synchronous response
- Reads public data
Parámetros
| Parámetro | Tipo | Obligatorio | Descripción | Ejemplo |
|---|---|---|---|---|
| Parámetros de consulta | ||||
id | cadena | Opcional | Spotify artist id. If you'd prefer to use the URL instead, you can use the url parameter instead. | 0cGUm45nv7Z6M6qdXYQGTX |
url | cadena | Opcional | 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 |
- Parámetros de consulta
idcadenaOpcionalSpotify artist id. If you'd prefer to use the URL instead, you can use the url parameter instead.
Ejemplo:
0cGUm45nv7Z6M6qdXYQGTXurlcadenaOpcionalSpotify artist URL. If you'd prefer to use the id instead, you can use the id parameter instead.
Ejemplo:
https://open.spotify.com/artist/0cGUm45nv7Z6M6qdXYQGTX
Ejemplos de código
Sustituye $TOOLSWITCH_KEY por la clave que creaste en la consola.
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());La API de la pasarela está en versión preliminar; su URL y autenticación pueden cambiar. Los parámetros del ejemplo son datos de muestra. Las llamadas se facturan a $0.00188/call, incluida la tarifa de servicio.