Search code examples
freebasemql

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


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?


Solution

  • Figured it out:

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