API: getArtistDetails

Denne tjenesten henter detaljer om en bestemt artist basert på identifikator.

URL til tjeneste

Tilgjengelige parametere

Parameter Datatype Beskrivelse
id integer Ressursens unike identifikator
output string Angir ønsket respons (XML eller JSON)
apikey string Din unike API-nøkkel

Eksempel på spørring vha REST

Eksempel på spørring vha SOAP

<urn:getArtistDetails soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">
  <id xsi:type="xsd:int">35226</id>
  <output xsi:type="xsd:string">xml</output>
  <apikey xsi:type="xsd:string">s7z3jc29ck</apikey>
</urn:getArtistDetails>

Eksempel på resultatsett i XML

<?xml version="1.0" encoding="utf-8"?>
<getArtistDetailsResult timestamp="2012-01-01 12:00:00" count="1">
  <artist id="35226" status="published" updated="2012-01-01 12:00:00" user="admin">
    <name>The Pussycats</name>
    <artisttype>band</artisttype>
    <link>http://www.rockipedia.no/artister/the_pussycats-35226/</link>
    <locations>
      <location>Tromsø</location>
    </locations>
    <aliases>
      <alias>Jet Blacks</alias>
    </aliases>
    <bio>Aenean lacinia bibendum nulla sed consectetur. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Cum sociis natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus. Vestibulum id ligula porta felis euismod semper. Cras justo odio, dapibus ac facilisis in, egestas eget quam. Donec id elit non mi porta gravida at eget metus. Aenean lacinia bibendum nulla sed consectetur.</bio>
    <members>
      <artist id="23683">
        <name>Sverre Kjelsberg</name>
        <artisttype>artist</artisttype>
        <link>http://www.rockipedia.no/artister/sverre_kjelsberg-23683/</link>
        <role>vokal;bass</role>
      </artist>
    </members>
    <images>
      <image id="21298">
        <title>Pressebilde</title>
        <description>Maecenas sed diam eget risus varius blandit sit amet non magna.</description>
      </image>
    </images>
    <discography>
      <album id="11472">
        <title>Psst! Psst! Psst!</title>
        <releasedate>1966-00-00</releasedate>
        <type>album</type>
        <mainartists>
          <artist id="35226">
            <name>The Pussycats</name>
            <artisttype>band</artisttype>
            <link>http://www.rockipedia.no/artister/the_pussycats-35226/</link>
          </artist>
        </mainartists>
        <thumb>http://www.rockipedia.no/?image=13765_100.jpg</thumb>
        <link>http://www.rockipedia.no/utgivelser/psst_psst_psst-11472/</link>
      </album>
    </discography>
    <contributor>
      <album id="11476">
        <title>Ebb Tide</title>
        <releasedate>1965-00-00</releasedate>
        <type>single</type>
        <mainartists>
          <artist id="35226">
            <name>The Pussycats</name>
            <artisttype>band</artisttype>
            <link>http://www.rockipedia.no/artister/the_pussycats-35226/</link>
          </artist>
        </mainartists>
        <thumb>http://www.rockipedia.no/?image=dummy_album_100.jpg</thumb>
        <link>http://www.rockipedia.no/utgivelser/ebb_tide-11476/</link>
      </album>
    </contributor>
  </artist>
</getArtistDetailsResult>