Last.fm Web Services

XML-RPC

XML-RPC Requests

Send xml-rpc requests as HTTP POST requests to http://ws.audioscrobbler.com/2.0/ . Send your params as named arguments using a struct in the first param node. See the example below.

<methodCall>
 <methodName>user.gettoptags</methodName>
 <params>
  <param>
   <value>
    <struct>
     <member>
      <name>user</name>
      <value>
       <string>joanofarctan</string>
      </value>
     </member>
     <member>
      <name>api_key</name>
      <value>
       <string>b25b959554ed76058ac220b7b2e0a026</string>
      </value>
     </member>
    </struct>
   </value>
  </param>
 </params>
</methodCall>

XML-RPC Responses

XML-RPC requests will receive responses in XML-RPC format by default. See the XML-RPC specification for more information.