# https://6xq.net/pandora-apidoc/rest/
# get a csrftoken (or just make one up b/c it only matters that the cookie matches the header)
curl -I https://www.pandora.com/
# use csrftoken + credentials to get authToken
curl -X POST https://www.pandora.com/api/v1/auth/login \
-H 'Content-Type: application/json;charset=utf-8' \
-H 'X-CsrfToken: lol' \
-H 'Cookie: csrftoken=lol' \
-d '{"username": "<my_email_or_username>", "password": "<mypass>"}'
# use authToken to access api
curl -X POST https://www.pandora.com/api/v1/station/getStations \
-H 'Content-Type: application/json;charset=utf-8' \
-H 'X-CsrfToken: lol' \
-H 'Cookie: csrftoken=lol' \
-H 'X-AuthToken: <authToken>' \
| python -m json.tool
curl -X POST https://www.pandora.com/api/v1/listener/getProfile \
-H 'Content-Type: application/json;charset=utf-8' \
-H 'X-CsrfToken: lol' \
-H 'Cookie: csrftoken=lol' \
-H 'X-AuthToken: <authToken>' \
| python -m json.tool
Last active
January 31, 2021 07:21
-
-
Save mrcnc/d162b0dd02f82be4dbdaf51773a7124d to your computer and use it in GitHub Desktop.
Get data from Pandora API
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment