Spotify-Playground / spotify-API

0 stars 0 forks source link

[Spotify] 아티스트 - API request용 curl 명령어 목록 #10

Open hooniegit opened 11 months ago

hooniegit commented 11 months ago

🔎 About

아티스트 정보의 API request를 위한 curl 명령어들을 정리합니다.

hooniegit commented 11 months ago
$ curl --request GET \
  --url https://api.spotify.com/v1/artists/[아티스트_ID] \
  --header 'Authorization: Bearer [API_접속_토큰]'
hooniegit commented 11 months ago
$ curl --request GET \
  --url 'https://api.spotify.com/v1/artists?ids=[아티스트_ID]%[아티스트_ID]%[아티스트_ID]' \
  --header 'Authorization: Bearer [API_접속_토큰]'
hooniegit commented 11 months ago
$ curl --request GET \
  --url https://api.spotify.com/v1/artists/[아티스트_ID]/albums \
  --header 'Authorization: Bearer [API_접속_토큰]'
?include_groups=[앨범_종류] : album, single, appears_on, compilation
?offset=[시작_인덱스] : default 0
?limit=[표기_데이터_수] : default 20
hooniegit commented 11 months ago
$ curl --request GET \
  --url https://api.spotify.com/v1/artists/[아티스트_ID]/top-tracks \
  --header 'Authorization: Bearer [API_접속_토큰]'
hooniegit commented 11 months ago
$ curl --request GET \
  --url https://api.spotify.com/v1/artists/[아티스트_ID]/related-artists \
  --header 'Authorization: Bearer [API_접속_토큰]'