Sand AISand AI MAGI-2MAGI-2 agora está na SandBase: vídeo em 1080p com áudio nativoExperimente agora

Spotify Artist

Docs da API
https://api.sandbase.ai/v1/api/spotify/artist

Fetch a Spotify artist's discography (albums, singles, top tracks) and metadata by artist URL or ID.

Preço
A partir de $0.0012USD / chamada
Método
POST
Resposta
JSON
Parâmetros
0 obrigatórios · 2 opcionais

Playground

Entrada
Spotify artist ID (alternative to url).
Spotify artist URL (e.g. https://open.spotify.com/artist/3DiDSECUqqY1AuBP8qtaIa).
SaídaPronto

Sua saída aparecerá aqui

Preencha as entradas e clique em Executar.

README da API

Spotify Artist API

Fetch a Spotify artist's discography (albums, singles, top tracks) and metadata by artist URL or ID.

Request

curl -X POST "https://api.sandbase.ai/v1/run" \
  -H "Authorization: Bearer $SANDBASE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"model": "spotify/artist", "url": "https://open.spotify.com/artist/3DiDSECUqqY1AuBP8qtaIa"}'

The result is returned in outputs[0].data. Lookups that find nothing fail with a not-found error.

Parameters

NameTypeRequiredDescription
idstringNoSpotify artist ID (alternative to url).
urlstringNoSpotify artist URL (e.g. https://open.spotify.com/artist/3DiDSECUqqY1AuBP8qtaIa).

Pricing

Billed at the actual cost of each call, about $0.0012 per request. A call can cost more when the first data source fails and another one answers. Failed calls and lookups that find nothing are not charged.

Explorar mais

APIs relacionadas

Todas as APIs
APIPreçoResposta
SpotifyA partir de $0.0012 por chamadaJSON
SpotifyA partir de $0.0012 por chamadaJSON
SpotifyA partir de $0.0022 por chamadaJSON
SpotifyA partir de $0.0012 por chamadaJSON
SpotifyA partir de $0.0012 por chamadaJSON
SpotifyA partir de $0.0012 por chamadaJSON

Perguntas

FAQ

Como eu uso a API Spotify Artist?

Envie uma solicitação POST para https://api.sandbase.ai/v1/api/spotify/artist com sua chave de API da SandBase no cabeçalho Authorization (Bearer) e os parâmetros no corpo JSON. Você também pode testar no Playground desta página sem escrever código.

Quanto custa a API Spotify Artist?

A partir de $0.0012 por chamada, cobrado do seu saldo SandBase. Você paga apenas pelas chamadas que fizer; não há assinatura.

Quais parâmetros a API Spotify Artist aceita?

Nenhum parâmetro é obrigatório. Opcionais: id (string) e url (string). A tabela de Parâmetros e o Playground nesta página listam todos os campos.

O que a API Spotify Artist retorna?

Uma resposta JSON retornada na mesma solicitação HTTP (síncrona).

Preciso de uma conta de desenvolvedor Spotify ou de uma chave de API?

Não. Spotify Artist funciona via SandBase, então uma única chave de API da SandBase cobre este endpoint e todas as outras APIs e modelos do catálogo. Você não precisa solicitar acesso à API do Spotify separadamente.