Google Docs and EVE Metrics
EVE Online has a reputation as “Spreadsheets in Space”, and for good reason: complexity, tremendous amounts of data, and endless ways to get it out and analyze it. For some of us, this holds a lot of appeal. Whether that means market analysis or EFT theorycrafting, EVE players like to play with numbers.
So if you belong to that former group, who likes to work with trade and manufacturing and research, then you really should love EVE Metrics. The site has tremendous amounts of market data, fed by a nice automatic uploader that scrapes your cache as you play (though the lack of a Linux version limits that particular utility for me). They then present all sorts of interesting visualizations of the data, including sparklines and punchcard graphs. I really love that last one, by the way.
While this next feature may not get a lot of public attention, EVE Metrics also turns this back around by providing its own API for this market data. I don’t doubt that some folks have written their own apps specifically to slice and dice this data, but if you don’t have that particular skillset, don’t worry: Google Docs has already done the heavy lifting for you with a function called ImportXML.
Essentially, in a cell where you want a particular value for a particular item, you call ImportXML and pass it the URL you want it to grab and the specific value you want it to pull out.
As an example: say you want to look at Standard Drop Boosters. If you go to the market page for that item, you can see in the URL that the item ID is 15466. You’ll need to decide which data to get: buy or sell, and minimum, maximum, median, or average. So if you wanted to get the minimum sell price in the entire cluster, you’ll enter:
=ImportXML("http://www.eve-metrics.com/api/item.xml?type_ids=15466", "/evemetrics/type/global/sell/minimum")
You can also specify region IDs by appending “®ion_ids=10000011″ (or whatever ID is appropriate) after the type_ids parameter.
Pilots with a lot of manufacturing activity can easily see how this can allow you to build a cost model and keep it up to date easily, and even check your expected margins, all without knowing how to code.
Image credit Thomas Hawk
Related posts:
Date: 2009-12-11
Categories: Guides
Comments RSS TrackBack View Comments
Gremrod
Love it!
Rockminer
Thank you..
Myrhial Arkenath
I didn’t know you could import XML data like that. Oh, the possibilities :O
Casiella Truza
Yeah, I still need to think about other XML data sources. Note that, due to caching, Google Docs won’t work very well with the EVE API (per James Harrison). But that doesn’t mean other things can’t provide useful data.
Gremrod
FYI, if you have not ran into yet. Google Docs only allows 50 ImportXML Calls per spreadsheet doc. So no multi sheet docs. Just have to break it into multi docs…
Casiella Truza
I know about the limitation but haven’t had to deal with it yet. Thanks for the reminder, as I neglected to mention it in the main post.
Shareina
I suggest you check out the EVE-Central API, let’s you query multiple items in a single request (20 i think), so combined with the 50 imports, this improves a lot the potential of 1 spreadsheet.
Casiella Truza
I should definitely check out their API, though I’ll note that then I’d have to figure out how to handle multiple results in ImportXML().