Documentation

GraphQL API: Feedback

Get items a listener has given feedback on

The list will contain all the tracks that the listener has given feedback on. It can be filtered by thumbs up/down respectively, by target types (only tracks [TR] supported for now), and/or source types (only stations [ST] supported for now).

The list can be paginated and sorted.

Request



{
  feedbacks (
    pagination: {limit: 1},
    filter: { targetTypes: TR, sourceContextTypes: ST, values: UP }
  ) 
  {
    items {
      target {
       id
       ...on Track {
         artist {
           name
         }
         art {
           url(size: WIDTH_130)
         }
       }
      }
      sourceContext {
        id
        ... on Station {
          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":"{  feedbacks(pagination: {limit: 1}, filter: {targetTypes: TR, sourceContextTypes: ST, values: UP}) {  items {  target {  id  ... on Track {  artist {  name  }  art {  url(size: WIDTH_130)  }  }  }  sourceContext {  id  ... on Station {  name  }  }  }  } } "}'

Response



{
  "data": {
    "feedbacks": {
      "items": [
        {
          "target": {
            "id": "TR:20659259",
            "artist": {
              "name": "Tones And I"
            },
            "art": {
              "url": "https://dyn-images.p-cdn.com/?l=images%2Fpublic%2Fint%2F9%2F8%2F8%2F8%2F075679838889%3Acover()&w=50&h=50"
            }
          },
          "sourceContext": {
            "id": "ST:0:4363284700748023828",
            "name": "Dance Monkey Radio"
          }
        }
      ]
    }
  }
}