API para Spotify: Álbum
Obtenha a lista de faixas, contagem de reproduções, gravadora e detalhes de lançamento de um álbum do Spotify pela URL ou ID do álbum.
Preços
Um preço, em dólares
Teste
Faça sua primeira requisição
{
"data": {
"artistName": "Example title",
"id": "a1b2c3d4",
"image": "https://example.com/image.jpg",
"label": "Example title",
"name": "Example title",
"popularity": 42,
"releaseDate": "2024-01-15T09:30:00Z",
"tracks": [
{
"artistName": "Example title",
"durationMs": 13,
"name": "Example title",
"playcount": 12500,
"trackNumber": 42,
"uri": "example"
}
],
"type": "general",
"uri": "example",
"url": "https://example.com/page"
},
"found": true,
"reason": "not_found"
}interface SpotifyAlbumResponse {
data: {
artistName?: string;
id: string;
image?: string;
label: string;
name: string;
popularity: number;
releaseDate: string;
tracks: {
artistName?: string;
durationMs: number;
name: string;
playcount: number;
trackNumber?: number;
uri: string;
}[];
type: string;
uri: string;
url?: string;
} | null;
found: boolean;
reason?: "not_found";
}Referência completa de parâmetros e resposta - todos os campos, tipos e exemplos deste endpoint.
Referência
Requisição, resposta e preço
Última verificação em 2026-09-29 · disponibilidade e latência medidas em 30dcurl -X POST https://api.getanyapi.com/v1/run/spotify.album \
-H "Authorization: Bearer $ANYAPI_KEY" \
-H "Content-Type: application/json" \
-d '{"url":"https://open.spotify.com/album/0pgrg7phBbnwGJ2HBEl9EG"}'| Campo | Tipo | Valor de exemplo |
|---|---|---|
| Corpo da requisição | ||
| id | string | ID do álbum no Spotify (alternativa a url). |
| url | string | "https://open.spotify.com/album/0pgrg7phBbnwGJ2HBEl9EG"URL do álbum no Spotify (ex.: https://open.spotify.com/album/0pgrg7phBbnwGJ2HBEl9EG). |
| Resposta | ||
| data | object | |
| data.artistName | string | Name of the primary artist. |
| data.id | string | Populated whenever the provider has data for the entity. |
| data.image | string | URL of the cover art image. |
| data.label | string | Populated whenever the provider has data for the entity. |
| data.name | string | Populated whenever the provider has data for the entity. |
| data.popularity | integer | |
| data.releaseDate | string | Populated whenever the provider has data for the entity. |
| data.tracks | object[] | Populated whenever the provider has data for the entity. |
| data.tracks[].artistName | string | Name of the primary artist. |
| data.tracks[].durationMs | integer | |
| data.tracks[].name | string | |
| data.tracks[].playcount | integer | |
| data.tracks[].trackNumber | integer | Position of the track within the album. |
| data.tracks[].uri | string | |
| data.type | string | Populated whenever the provider has data for the entity. |
| data.uri | string | Populated whenever the provider has data for the entity. |
| data.url | string | Canonical Spotify web URL, tracking query parameters stripped. |
| found | boolean | |
| 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. |
| Preço | ||
| Preço por requisição | USD | US$ 0,0012 |
| Preço /mil req. | USD | US$ 1,20 |
Dúvidas frequentes
Sobre o endpoint Álbum da API para Spotify
O endpoint Álbum da AnyAPI para Spotify retorna dados de Spotify em JSON normalizado com uma chamada POST para /v1/run/spotify.album. Obtenha a lista de faixas, contagem de reproduções, gravadora e detalhes de lançamento de um álbum do Spotify pela URL ou ID do álbum. 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, 100,0% das chamadas ao endpoint Álbum da API para Spotify feitas pela AnyAPI tiveram sucesso, com tempo de resposta mediano de 1,6 segundos, em 3 chamadas medidas.