Documentation

GraphQL API: Metadata

Get metadata of entities

In rare cases, you may need to look up metadata of entities. You can do this by providing an array of ids and specifying the metadata you need.  Take note of limitations on querying station(ST) types.

Request



{
  entities(ids: ["SF:16722:1136367", "AL:2666536" ]) {
    ...on StationFactory {
      name
    }
    ... on Album {
      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":"{  entities(ids: [\"SF:16722:1136367\", \"AL:2666536\"]) { ... on StationFactory { name } ... on Album { name }  }}"}'

Response



{
  "data": {
    "entities": [
      {
        "name": "Bleachers"
      },
      {
        "name": "Hotel Walls"
      }
    ]
  }
}