Documentation

GraphQL API: Listener

Get a listener’s recent favorites

Get a list of up to 20 of the most popular items for a listener, based on their listening over the past 200 days, but weighing recent items more heavily. Types supported: tracks, albums, playlists, stations. You can use pagination to iterate through results.

Request



{
  recentFavorites(pagination: { limit: 3 }) {
    items {
      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":"{  recentFavorites(pagination: {limit: 3}) { items { id ... on Station { name } }  }}"}'

Response



{
  "data": {
    "recentFavorites": {
      "items": [
        {
          "id": "ST:0:4326927884191762452",
          "name": "The Oh Hellos Radio"
        },
        {
          "id": "ST:0:4283176358017468436",
          "name": "The Killers Radio"
        },
        {
          "id": "ST:0:4363314726864390164",
          "name": "Out Here (SFR Remix) Radio"
        }
      ]
    }
  }
}