GraphQL API: Metadata
Get metadata of an entity
In rare cases, you may need to look up metadata of an entity. You can do this by providing an id and specifying the metadata you need. Take note of limitations on querying station(ST) types.
Request
{
entity(id: "AL:1811731") {
... on Album {
name
trackCount
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":"{ entity(id: \"AL:1811731\") { ... on Album { name trackCount artist { name } } }}"}'
Response
{
"data": {
"entity": {
"name": "Everybody Else Is Doing It, So Why Can't We? (Super Deluxe)",
"trackCount": 61,
"artist": {
"name": "The Cranberries"
}
}
}
}