1

I am trying to execute a curl request for the Spotify API. From what I have seen you can use the requests library yet I am not sure how to do it accounting for the Authorization parameter. Below is the curl request-- Any help is much appreciated!

curl -X GET "https://api.spotify.com/v1/audio-features/06AKEBrKUckW0KREUWRnvT" -H "Authorization: Bearer {your access token}"

puhtiprince
  • 535
  • 1
  • 5
  • 8

1 Answers1

2
requests.get("https://api.spotify.com/v1/audio-features/06AKEBrKUckW0KREUWRnvT", headers={"Authorization": "Bearer {your access token}"})
Alex Hall
  • 34,833
  • 5
  • 57
  • 89