MusicBrainz API/Search/RecordingXmlOutput

From MusicBrainz Wiki
< MusicBrainz API‎ | Search
Revision as of 21:24, 1 March 2012 by Ijabz (talk | contribs) (New page: ====Xml==== <pre><nowiki> <metadata xmlns="http://musicbrainz.org/ns/mmd-2.0#" xmlns:ext="http://musicbrainz.org/ns/ext#-2.0"> <recording-list offset="0" count="1"> <recording ...)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Xml

<metadata xmlns="http://musicbrainz.org/ns/mmd-2.0#" xmlns:ext="http://musicbrainz.org/ns/ext#-2.0">
    <recording-list offset="0" count="1">
        <recording id="0b382a13-32f0-4743-9248-ba5536a6115e" ext:score="100">
            <title>King Fred</title>
            <length>160000</length>
            <artist-credit>
                <name-credit>
                    <artist id="f52f7a92-d495-4d32-89e7-8b1e5b8541c8">
                        <name>Too Much Joy</name>
                        <sort-name>Too Much Joy</sort-name>
                    </artist>
                </name-credit>
             </artist-credit>
             <release-list>
                <release id="8442e42b-c40a-4817-89a0-dbe663c94d2d">
                    <title>Green Eggs and Crack</title>
                    <release-group type="album"/>
                    <medium-list>
                        <medium>
                            <position>1</position>
                            <track-list offset="13" count="19">
                                <track>
                                    <title>King Fred</title>
                                </track>
                            </track-list>
                        </medium>
                    </medium-list>
                </release>
            </release-list>
            <puid-list>
                <puid id="1d9e8ed6-3893-4d3b-aa7d-72e79609e386"/>
            </puid-list>
        </recording>
    </recording-list>
</metadata>

If the recording belongs to a release that is a Various Artist compilation then the release will show the artist credit to allow differenitation between this and a single artist compilation.

<release id="d9127de1-ec22-4dd2-859b-c326e146fbe5">
  <title>Rock Hits</title>
  <status>Official</status>
  <artist-credit>
  <name-credit>
    <artist id="89ad4ac3-39f7-470e-963a-56509c546377">
    <name>Various Artists</name>
    </artist>
  </name-credit>
  </artist-credit>
  <release-group type="Compilation"/>
  <medium-list>
  <track-count>10</track-count>
  <medium>
  <position>1</position>
    <track-list offset="0" count="10">
      <track>
        <title>Jurk</title>
      </track>
    </track-list>
   </medium>
  </medium-list>
</release>