API de Spotify: Canción
Obtén las reproducciones, popularidad, duración y detalles del álbum de una canción de Spotify por URL o ID de la canción.
US$1.20/1k solic., pagas por solicitud, sin suscripción.
Create your first playlist
It's easy, we'll help you
Create playlistLet's find some podcasts to follow
We'll keep you updated on new episodes
Browse podcastsLyrics
Sign in to see lyrics and listen to the full track
Artist
Juniper Vale
Recommended
Based on this song
{"id": "5tHqowP2R2edmL1zBqfWWT","name": "Nightbloom","playcount": 18420331,"popularity": 71,"durationMs": 214000,"trackNumber": 1,"uri": "spotify:track:5tHqowP2R2edmL1zBqfWWT","shareUrl": "https://open.spotify.com/track/5tHqowP2R2edmL1zBqfWWT",... 4 campos más}
Precios
Precios del endpoint Canción de la API de Spotify
Pruébalo
Obtén Canción de Spotify en una sola solicitud
Este ejemplo muestra 14 de 15 campos. Ver todos los campos
{
"found": true,
"data": {
"id": "5tHqowP2R2edmL1zBqfWWT",
"name": "Nightbloom",
"playcount": 18420331,
"popularity": 71,
"durationMs": 214000,
"trackNumber": 1,
"uri": "spotify:track:5tHqowP2R2edmL1zBqfWWT",
"shareUrl": "https://open.spotify.com/track/5tHqowP2R2edmL1zBqfWWT",
"image": "https://i.scdn.co/image/ab67616d0000b2734f1a2b3c4d5e6f7081920a1b",
"albumName": "Nightbloom",
"artistName": "Juniper Vale",
"releaseDate": "2025-06-13"
}
}Referencia completa de parámetros y respuesta: cada campo, tipo y ejemplo de este endpoint.
Referencia
Una solicitud, un formato de respuesta.
Cada campo que envías y cada campo que recibes, cada uno con un ejemplo real.
Verificado por última vez el 2026-11-14 · disponibilidad y latencia medidas en 30d
Cuerpo de la solicitud
JSON, enviado por POST a este endpoint.
- idstring
ID de la canción de Spotify (alternativa a url).
- urlstring
https://open.spotify.com/track/5tHqowP2R2edmL1zBqfWWT
URL de la canción de Spotify (p. ej. https://open.spotify.com/track/4cOdK2wGLETKBW3PvgPWqT).
Respuesta
JSON, un valor de ejemplo por campo.
- albumNamestring
Nightbloom
Name of the album the track appears on.
- artistNamestring
Juniper Vale
Name of the primary artist.
- durationMsinteger
214000
Populated whenever the provider has data for the entity.
- idstring
5tHqowP2R2edmL1zBqfWWT
Populated whenever the provider has data for the entity.
- imagestring
https://i.scdn.co/image/ab67616d0000b2734f1a2b3c4d5e6f7081920a1b
URL of the cover art image.
- namestring
Nightbloom
Populated whenever the provider has data for the entity.
- playcountinteger
18420331
- popularityinteger
71
- releaseDatestring
2025-06-13
Album release date as an ISO 8601 string.
- shareUrlstring
https://open.spotify.com/track/5tHqowP2R2edmL1zBqfWWT
Populated whenever the provider has data for the entity.
- trackNumberinteger
1
Populated whenever the provider has data for the entity.
- uristring
spotify:track:5tHqowP2R2edmL1zBqfWWT
Populated whenever the provider has data for the entity.
- foundboolean
true
- reason"not_found"
Present only when `found` is false, and says why there is no result. `not_found`: the source states the target does not exist, or returned nothing for it. A `found: false` answer is a successful call, not an error, and `costUsd` is what it actually cost.
Preguntas frecuentes
Acerca del endpoint Canción de la API de Spotify
El endpoint Canción de AnyAPI para Spotify devuelve datos de Spotify como JSON normalizado con una sola llamada POST a /v1/run/spotify.track. Obtén las reproducciones, popularidad, duración y detalles del álbum de una canción de Spotify por URL o ID de la canción. AnyAPI devuelve un único esquema normalizado sin importar qué fuente atienda la solicitud. Cuesta desde US$1.20 por cada 1,000 solicitudes, en dólares estadounidenses, sin suscripción y sin mínimo mensual. En los últimos 30 días, el 99.8% de las llamadas al endpoint Canción de la API de Spotify a través de AnyAPI tuvo éxito, con un tiempo de respuesta mediano de 1.8 segundos en 1018 llamadas medidas.