API para Spotify: Faixa
Obtenha a contagem de reproduções, popularidade, duração e detalhes do álbum de uma faixa do Spotify pela URL ou ID da faixa.
US$ 1,20/mil req., pague por requisição, sem assinatura.
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 a mais}
Preços
Preços do endpoint Faixa da API para Spotify
Teste
Obtenha Faixa do Spotify em uma só requisição
Este exemplo mostra 14 de 15 campos. Ver todos os 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"
}
}Referência completa de parâmetros e resposta - todos os campos, tipos e exemplos deste endpoint.
Referência
Uma requisição, um formato de resposta.
Cada campo que você envia e cada campo que você recebe, cada um com um exemplo real.
Última verificação em 2026-11-14 · disponibilidade e latência medidas em 30d
Corpo da requisição
JSON, enviado via POST para este endpoint.
- idstring
ID da faixa no Spotify (alternativa a url).
- urlstring
https://open.spotify.com/track/5tHqowP2R2edmL1zBqfWWT
URL da faixa no Spotify (ex.: https://open.spotify.com/track/4cOdK2wGLETKBW3PvgPWqT).
Resposta
JSON, um valor de exemplo 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.
Dúvidas frequentes
Sobre o endpoint Faixa da API para Spotify
O endpoint Faixa da AnyAPI para Spotify retorna dados de Spotify em JSON normalizado com uma chamada POST para /v1/run/spotify.track. Obtenha a contagem de reproduções, popularidade, duração e detalhes do álbum de uma faixa do Spotify pela URL ou ID da faixa. A AnyAPI retorna um schema normalizado, seja qual for a fonte que atende. Custa a partir de US$ 1,20 por mil requisições, em dólares, sem assinatura e sem mínimo mensal. Nos últimos 30 dias, 99,8% das chamadas ao endpoint Faixa da API para Spotify feitas pela AnyAPI tiveram sucesso, com tempo de resposta mediano de 1,8 segundos, em 1.018 chamadas medidas.