how to fetch the new achievements xml

November 27, 2008

A quick post for any other dataminers who want to look at the new achievements/character-stats XML from the US armoury.

As an example, let’s assume a toon called “toon” on realm “realm”.

There are two new character pages which you fetch in the normal way:
http://www.wowarmory.com/character-statistics.xml?r=realm&n=toon
http://www.wowarmory.com/character-achievements.xml?r=realm&n=toon

When you get each page, you find that it is a sort of stub, which just gives achievement categories and not much detailed data. I can’t show the XML because wordpress doesn’t like the angle brackets, but basically you get something like this:

rootCategories
category id="130" name="Character"
category id="141" name="Combat"
category id="128" name="Kills"
etc...

To get the detailed data, just attach each category ID to the main URL (with a “&c=”) and ask for the page again. Do this for every category ID on the page.

The three categories above are from the stats page. The URLs to get that data look like this:

http://www.wowarmory.com/character-statistics.xml?r=realm&n=toon&c=130
http://www.wowarmory.com/character-statistics.xml?r=realm&n=toon&c=141
http://www.wowarmory.com/character-statistics.xml?r=realm&n=toon&c=128

The real armoury page is doing async ajax-like calls back to the server when you expand a category tab on either page. Behind the scenes, the page is just forming up these sorts of URLs.

Advertisements

6 Responses to “how to fetch the new achievements xml”

  1. Wilhu Says:

    Thanks a lot!
    I was having a hard time trying to figure that

  2. Granfino Says:

    WOOT!!!

    Solved my problems ^^

    Thanks

  3. Mep Says:

    aww, was hoping nobody else would figure this out 😉

  4. KalebAusti Says:

    lol Mep, I thought the same thing.

  5. paulsavage Says:

    Any idea how to get the sub-categories that don’t have IDs?

    for example Quests has a url of:
    character-achievements.xml?r=realm&cn=toon&c=96

    but how do you get to the sub category of “Classic” or “Wrath of the Lich King”? These just have names and not IDs, and adding a &name=Classic on the end doesn’t do anything despite how much i’d hoped it would 😉

    I hope that makes sense and that someone is able to suggest a solution 🙂

  6. zardoz Says:

    I don’t do much with achievements here, so I can’t answer your question at the moment. Let me look into it but, and I’ll see what I can come up with.


Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: