MQL query to obtain a /music/release for a /music/track

34 views Asked by At

If I have the mid for a /music/track entry in Freebase, I can use this MQL query to get the releases on which that track appears:

{
  "mid": "/m/0q69hv",
  "name": null,
  "artist": [{
    "name": null,
    "type": "/music/artist"
  }],
  "releases": [{
    "name": null
  }],
  "type": "/music/track"
}

However, this depends on /music/recording/releases which is deprecated.

How can I obtain the releases for a track without relying on the deprecated property?

1

There are 1 answers

0
Trott On BEST ANSWER

Figured it out:

{
  "mid": "/m/0p5t1p",
  "type": "/music/track",
  "name": null,
  "artist": [{
    "name": null
  }],
  "tracks": [{
    "release": {
      "name": null
    }
  }]
}