Spotify track by id or URL — album, duration
scrapecreators.x.v1-spotify-trackRetrieves detailed information about a Spotify track by its id or URL, including track metadata, artists, album info, duration, playability, and sharing details.
- Price
- $0.00188/callAl precio del proveedor
- Success rate
- 100 %Last 30 days · 57 calls
- Latency p50
- 1.6 sp95 4 s
- Last verified
- —Not verified yet
GEThttps://toolswitch.dev/v1/tools/scrapecreators.x.v1-spotify-track?id=1ITJflybJsfarsUtiBvkfKPreviewTry 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 track id. If you'd prefer to use the URL instead, you can use the url parameter instead. | 1ITJflybJsfarsUtiBvkfK |
url | cadena | Opcional | Spotify song URL. If you'd prefer to use the id instead, you can use the id parameter instead. | https://open.spotify.com/track/1ITJflybJsfarsUtiBvkfK |
- Parámetros de consulta
idcadenaOpcionalSpotify track id. If you'd prefer to use the URL instead, you can use the url parameter instead.
Ejemplo:
1ITJflybJsfarsUtiBvkfKurlcadenaOpcionalSpotify song URL. If you'd prefer to use the id instead, you can use the id parameter instead.
Ejemplo:
https://open.spotify.com/track/1ITJflybJsfarsUtiBvkfK
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-track?id=1ITJflybJsfarsUtiBvkfK' \
-H "X-Toolswitch-Key: $TOOLSWITCH_KEY"import os
import requests
response = requests.request(
"GET",
"https://toolswitch.dev/v1/tools/scrapecreators.x.v1-spotify-track?id=1ITJflybJsfarsUtiBvkfK",
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-track?id=1ITJflybJsfarsUtiBvkfK", {
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.