Documentation

GraphQL API: Feedback

Get feedback on a current track

The feedbackValue field on PlaybackItem will provide you with the feedback previously given on this track. It will be null if no value has been given.

Request



{
  playback {
    current(deviceUuid: "deviceXYZ", sourceId: "ST:0:4326813985954039828") {
      ... on TrackItem {
        audioUrl
        index
        trackToken
        feedbackValue
        track {
          duration
          art {
            url (size: WIDTH_130)
          }
          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":"{  playback {  current(deviceUuid: \"deviceXYZ\", sourceId: \"ST:0:4326813985954039828\") {  ... on TrackItem {  audioUrl  index  trackToken  feedbackValue  track {  duration  art {  url(size: WIDTH_130)  }  artist {  name  }  }  }  }  } } "}'

Response



{
  "data": {
    "playback": {
      "current": {
        "audioUrl": "https://t3-2.p-cdn.us/access/3349514598060047262?version=5&lid=1375438868&token=J8gXRwKBAhdLxH6F2Zr9f3NKifFKMW5sgLHVYoNbz+osQ9HUP7Dpe4M2t2AGlqiYz+3NMtTi32loe+MivzrKX4ISxtLIN8gfivVaTCu2mgN1Hf+HLdWhSTCTr9g7l8fNaC6V1i9mdvFZBXRVjBSAu8f5bGLwpmEforjEufMSb5/phEMvmCT4XXZVZJkFVYb0eUorhU99BMORsFuU/gZ2EkhAuB0xCB2zfReAwdNKfmUJXSTyqfdGsu0V+h9NEp74uU5Fx6mDS0SP4Sevf2/KwDmcnCtEu4ELkLfGVkT8TfYLP+XUKn35eQqJFgJPoJ+3KztlsRmGBHxUEgg8QmeCpQ==",
        "index": 0,
        "trackToken": "PrLME-doo8AcouJlpPz4KYFkaCOWfpAdG4_lo0MAQJXK-rq7vhAbsIZMs7AJAVLagE_rpMDiLZK4U2ZUWeYBXSupHZKa7UvLD",
        "feedbackValue": "UP",
        "track": {
          "duration": 245,
          "art": {
            "url": "https://dyn-images.p-cdn.com/?l=images%2Fpublic%2Fint%2F2%2F5%2F6%2F6%2F603497976652%3Acover()&w=150&h=150"
          },
          "artist": {
            "name": "The Smiths"
          }
        }
      }
    }
  }
}