MySpace API Unveiled

There's plenty of unofficial APIs for MySpace floating around but despite acknowledgement from MySpace management of Facebook's powerful interface and its popularity with developers and meek promises to counter with a similar move, we haven't seen anything yet... until now.   The web album services interface on http://media.myspace.com/services/media/albums.asmx gives a hint of a fuller API.  The following operations are supported for web albums:

  • GetAlbums
  • GetAlbumsSlideShow
  • GetImagesCount
  • InsertAlbum
  • To give you a taste and to have an archival excerpt in case the page disappears, the following is a sample SOAP 1.2 request and response for GetAlbumsSlideShow:
    <pre>POST /services/media/albums.asmx HTTP/1.1
    Host: media.myspace.com
    Content-Type: application/soap+xml; charset=utf-8
    Content-Length: <font class="value">length</font>

    &lt;?xml version="1.0" encoding="utf-8"?&gt;
    &lt;soap12:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap12="http://www.w3.org/2003/05/soap-envelope"&gt;
    &lt;soap12:Body&gt;
    &lt;GetAlbumsSlideShow xmlns="http://myspace.com/services/media"&gt;
    &lt;friendId&gt;<font class="value">int</font>&lt;/friendId&gt;
    &lt;token&gt;<font class="value">string</font>&lt;/token&gt;
    &lt;/GetAlbumsSlideShow&gt;
    &lt;/soap12:Body&gt;
    &lt;/soap12:Envelope&gt;</pre>
    <pre>HTTP/1.1 200 OK
    Content-Type: application/soap+xml; charset=utf-8
    Content-Length: <font class="value">length</font>

    &lt;?xml version="1.0" encoding="utf-8"?&gt;
    &lt;soap12:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap12="http://www.w3.org/2003/05/soap-envelope"&gt;
    &lt;soap12:Body&gt;
    &lt;GetAlbumsSlideShowResponse xmlns="http://myspace.com/services/media"&gt;
    &lt;GetAlbumsSlideShowResult&gt;
    &lt;MiniAlbumSlideShow&gt;
    &lt;AlbumId&gt;<font class="value">int</font>&lt;/AlbumId&gt;
    &lt;Hash&gt;<font class="value">string</font>&lt;/Hash&gt;
    &lt;Title&gt;<font class="value">string</font>&lt;/Title&gt;
    &lt;/MiniAlbumSlideShow&gt;
    &lt;MiniAlbumSlideShow&gt;
    &lt;AlbumId&gt;<font class="value">int</font>&lt;/AlbumId&gt;
    &lt;Hash&gt;<font class="value">string</font>&lt;/Hash&gt;
    &lt;Title&gt;<font class="value">string</font>&lt;/Title&gt;
    &lt;/MiniAlbumSlideShow&gt;
    &lt;/GetAlbumsSlideShowResult&gt;
    &lt;/GetAlbumsSlideShowResponse&gt;
    &lt;/soap12:Body&gt;
    &lt;/soap12:Envelope&gt;</pre>

    (via)

    Popularity: 20% [?]

    Share and Enjoy:These icons link to social bookmarking sites where readers can share and discover new web pages.
    • del.icio.us
    • digg
    • NewsVine
    • Reddit
    • TailRank


    Thank you for reading this post. You can now Read Comments (3) or Leave A Trackback.

    Post Info

    This entry was posted on Tuesday, July 10th, 2007 and is filed under myspace.

    Tagged with:

    You can follow any responses to this entry through the Comments Feed. You can Leave A Comment, or A Trackback.



    Previous Post: Yelp’s Hangout Joins the Facebook Parade »
    Next Post: MySpace Stumbles Playing Catchup to Facebook with Status Updates “Friendsmoods” »

    Read More

    Related Reading:

    3 Responses to “MySpace API Unveiled



    Leave a Reply

    Note: Any comments are permitted only because the site owner is letting you post, and any comments will be removed for any reason at the absolute discretion of the site owner.