API para Spotify: Artista
Obtenha a discografia (álbuns, singles, faixas populares) e os metadados de um artista do Spotify pela URL ou ID do artista.
Preços
Um preço, em dólares
Teste
Faça sua primeira requisição
{
"data": {
"albums": [
{
"id": "a1b2c3d4",
"image": "https://example.com/image.jpg",
"label": "Example title",
"name": "Example title",
"trackCount": 12500,
"type": "general",
"uri": "example",
"url": "https://example.com/page",
"year": 2024
}
],
"bio": "A short example description of this item.",
"followers": 12500,
"id": "a1b2c3d4",
"image": "https://example.com/image.jpg",
"name": "Example title",
"popularity": 42,
"topTracks": [
{
"artistName": "Example title",
"durationMs": 13,
"id": "a1b2c3d4",
"image": "https://example.com/image.jpg",
"name": "Example title",
"playcount": 12500,
"popularity": 42,
"uri": "example"
}
],
"url": "https://example.com/page",
"verified": true
},
"found": true,
"reason": "not_found"
}interface SpotifyArtistResponse {
data: {
albums: {
id: string;
image?: string;
label?: string;
name: string;
trackCount: number;
type: string;
uri: string;
url?: string;
year: number;
}[];
bio?: string;
followers?: number;
id?: string;
image?: string;
name?: string;
popularity?: number;
topTracks: {
artistName?: string;
durationMs?: number;
id: string;
image?: string;
name: string;
playcount: number;
popularity?: number;
uri: string;
}[];
url?: string;
verified?: boolean;
} | 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.artist \
-H "Authorization: Bearer $ANYAPI_KEY" \
-H "Content-Type: application/json" \
-d '{"url":"https://open.spotify.com/artist/3DiDSECUqqY1AuBP8qtaIa"}'| Campo | Tipo | Valor de exemplo |
|---|---|---|
| Corpo da requisição | ||
| id | string | ID do artista no Spotify (alternativa a url). |
| url | string | "https://open.spotify.com/artist/3DiDSECUqqY1AuBP8qtaIa"URL do artista no Spotify (ex.: https://open.spotify.com/artist/3DiDSECUqqY1AuBP8qtaIa). |
| Resposta | ||
| data | object | |
| data.albums | object[] | Populated whenever the provider has data for the entity. |
| data.albums[].id | string | Populated whenever the provider has data for the entity. |
| data.albums[].image | string | URL of the cover art image. |
| data.albums[].label | string | Record label that released the album. |
| data.albums[].name | string | Populated whenever the provider has data for the entity. |
| data.albums[].trackCount | integer | |
| data.albums[].type | string | Populated whenever the provider has data for the entity. |
| data.albums[].uri | string | Populated whenever the provider has data for the entity. |
| data.albums[].url | string | Canonical Spotify web URL, tracking query parameters stripped. |
| data.albums[].year | integer | Populated whenever the provider has data for the entity. |
| data.bio | string | Artist biography text. |
| data.followers | integer | Number of Spotify followers the artist has. |
| data.id | string | Spotify artist ID. |
| data.image | string | URL of the cover art image. |
| data.name | string | Artist display name. |
| data.popularity | integer | Spotify popularity score for the artist, 0 to 100. |
| data.topTracks | object[] | Populated whenever the provider has data for the entity. |
| data.topTracks[].artistName | string | Name of the primary artist. |
| data.topTracks[].durationMs | integer | Length of the track in milliseconds. |
| data.topTracks[].id | string | |
| data.topTracks[].image | string | URL of the cover art image. |
| data.topTracks[].name | string | |
| data.topTracks[].playcount | integer | |
| data.topTracks[].popularity | integer | Spotify popularity score for the track, 0 to 100. |
| data.topTracks[].uri | string | |
| data.url | string | Canonical Spotify web URL, tracking query parameters stripped. |
| data.verified | boolean | Whether the artist profile is verified on Spotify. |
| 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 Artista da API para Spotify
O endpoint Artista da AnyAPI para Spotify retorna dados de Spotify em JSON normalizado com uma chamada POST para /v1/run/spotify.artist. Obtenha a discografia (álbuns, singles, faixas populares) e os metadados de um artista do Spotify pela URL ou ID do artista. 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 Artista da API para Spotify feitas pela AnyAPI tiveram sucesso, com tempo de resposta mediano de 4,0 segundos, em 3 chamadas medidas.