V
V
Vladislav2020-07-28 11:44:40
Traffic analysis
Vladislav, 2020-07-28 11:44:40

Where does he get sha256 from?

https://open.spotify.com/artist/0XNKQFs2Ewb3y0VsFUFc5l/
Here is the site.
He has a query like this:

curl 'https://api-partner.spotify.com/pathfinder/v1/query?operationName=queryArtist&variables=%7B%22uri%22%3A%22spotify%3Aartist%3A0XNKQFs2Ewb3y0VsFUFc5l%22%7D&extensions=%7B%22persistedQuery%22%3A%7B%22version%22%3A1%2C%22sha256Hash%22%3A%22586fab74eb300f60438e327e4142e4a509a656a24b17292672034271fea85079%22%7D%7D' \
  -H 'authority: api-partner.spotify.com' \
  -H 'pragma: no-cache' \
  -H 'cache-control: no-cache' \
  -H 'accept: application/json' \
  -H 'spotify-app-version: 1595925010' \
  -H 'authorization: Bearer BQBCkDTgsqhBmNboWEC_SXkAhY5UH6Yi-oPFkLCIllZOKRw3h7_5PE6xACQxGqoG-C5ovm8q45v__GVs8A0mMj1RK_SBqcreJYg2pb4khwzDOJ5ToXbVv11834eatmPZ-aEiSwuOTdy3wZ6Y4u2d9SiHmc6JT_4VB10dO30aCjpGItCC4PLxJ-yZUzxk2Emx2x237Q6uhduWBlWSfUREpEOMpLlNAD0VIDnAsEC1tIhjBe4ZuzBdP2hRPDQhAh1BPzlKk0RCSCrV3zls51jFEkehVCqzHQhREc-qyANMrXQ' \
  -H 'accept-language: ru' \
  -H 'app-platform: WebPlayer' \
  -H 'user-agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/84.0.4147.89 Safari/537.36' \
  -H 'content-type: application/json;charset=UTF-8' \
  -H 'origin: https://open.spotify.com' \
  -H 'sec-fetch-site: same-site' \
  -H 'sec-fetch-mode: cors' \
  -H 'sec-fetch-dest: empty' \
  -H 'referer: https://open.spotify.com/artist/0XNKQFs2Ewb3y0VsFUFc5l/about' \
  --compressed


In the get parameters, these lines go:
operationName : queryArtist
variables : {"uri":"spotify:artist:0XNKQFs2Ewb3y0VsFUFc5l"}
extensions : {"persistedQuery":{"version":1,"sha256Hash":"586fab74eb300f60438e327e4142e4a509a656a25fe1727}}

Question where is sha256 from?
I googled everything and found only it is generated from the request. And also what is Apollo GraphQL
Help me find how it is generated

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
Dimonchik, 2020-07-28
@dimonchik2013

so you found

it is generated from a request

or boys should debug debugging for free?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question