GraphQL API: Feedback
Set feedback on a source
Listeners can give a thumbs up or thumbs down on tracks. Track rights will indicate whether feedback is allowed on a track.
When a listener gives a thumbs down, the track will also be skipped (depending on the skip limit) and the track will not appear in the station again. Feedback is used by Pandora to personalize the listener’s music experience, e.g. a listener’s favorites and also their thumbprint station.
Note that trackToken
is required when setting feedback on a station source.
Request
mutation {
feedback {
setFeedback
(
targetId: "TR:10002879",
sourceContextId: "ST:0:4363284700748023828",
value: UP,
trackToken: "PBmA-xXlB6sI3niLQySNVz3lxV0EZ2D7JgsVXaUSLG1YaQeV-ZgHiFrQvWH9uK1mvxph2Qcx29KjQl7AKMS6SD_SCCkl70tqL",
deviceUuid: "deviceXYZ",
elapsedTime: 200
)
{
status
current {
... on TrackItem {
audioUrl
interactions
index
track {
name
artist{
name
}
}
}
}
}
}
}
* Add your OAuth bearer token to the Authorization
header
curl 'https://ce.pandora.com/api/v1/graphql/graphql' \
-H 'Authorization: Bearer ' \
-H 'Content-Type: application/json' \
-d '{"operationName":null,"variables":{},"query":"mutation { feedback { setFeedback(targetId: \"TR:10002879\", sourceContextId: \"ST:0:4363284700748023828\", value: UP, trackToken: \"PBmA-xXlB6sI3niLQySNVz3lxV0EZ2D7JgsVXaUSLG1YaQeV-ZgHiFrQvWH9uK1mvxph2Qcx29KjQl7AKMS6SD_SCCkl70tqL\", deviceUuid: \"deviceXYZ\", elapsedTime: 200) { status current { ... on TrackItem { audioUrl interactions index track { name artist { name } } } } } }}"}'
Response
{
"data": {
"feedback": {
"setFeedback": {
"status": "OK",
"current": {
"audioUrl": "https://t3-3.p-cdn.us/access/?version=5&lid=1375438868&token=BvqKkzBh0gDMIdzycyGFqJVXRDUdkSJVEug5rgshedZ+tKwgSuncnlBOe1OwKa+12P/QDKWsLqRHc9y5I0PX4sua2Y1WeyV3xm/wuVUsvWzFTihvVAIE+RiFTktTc7j4x3yQp/ikvBtWIWKZCz8t3OsjsfJWaCjTDcfE7IfnPFiUKXG7oUFGlza+eO7YEZU0yKlgBMJiChRgFQAIyqld/gmVKQNhWSuu/vK+r9U00HxNK6GfngDsQgH4KFqjecrFiIQpEy6MHQVnbArXjfUXhy2/K6RTGhWjffyPZRYlaDbnZPjNMZ6hRygab/CIMkBDPIIipXDC/6uElEI9vIfqJS+J7xpYdn3f",
"interactions": [
"SKIP",
"REPLAY",
"THUMB"
],
"index": 0,
"track": {
"name": "The Greatest",
"artist": {
"name": "Sia"
}
}
}
}
}
}
}