open All Channels
seplocked EVE Technology Lab
blankseplocked Example Google Doc spreadsheet on how to grab data from eve-central
This thread is older than 90 days and has been locked due to inactivity.

Author Topic

Zeta Zhul
Preemptive Paranoia
Posted - 2011.07.29 04:17:00 - [1]

Ok a couple things:

Google Docs Spreadsheet - Jita Mineral Prices

1. This keeps on coming up so I figured I'd put up an *example* spreadsheet. By example I mean that it is available for people to *copy*. Please don't just bookmark the spreadsheet and then just re-use it. The reason why is that if gets hammered by 50,000 people all trying to refresh the same spreadsheet then that will just lock the whole thing up.

So please copy the spreadsheet and then go to town and do your own thing.

2. The primary function used is called "ImportXML()".

ImportXML() has two main requirements. One is the url for the XML data which in this case is "" and the other is a way for Google to decode the XML data. The complete URL that I use is:

to see the raw XML data: Linkage

Let's separate everything out into their components:


This is the base URL


This tells the website that everything that follows afterwards is a parameter or information that needs to be sent to the website.


This is CCP's unique ID number that identifies Jita solar system.


This is a separator which tells the web server that there is a new parameter that needs to be separated out from the previous one.


This is CCP's unique ID number that references Tritanium.


Ok now that is covered let's take a good look at the spreadsheet itself:

Column A: TypeId - this is the column that lists CCP's unique ID numbers for minerals
Column B: TypeName - This is the column that lists CCP's unique mineral names
Column C: Jita Median Price (buy & sell) - this is pretty self explanatory.
Column D: Jita Median Buy Price - same
Column E: Jita Median Sell Price - same

Now the workhorse is this:
=ImportXML(""&JOIN("&typeid=",$A2:$A9), "/evec_api/marketstat/type/all/median")

The difficult part is this:

The more difficult to understand part is probably this:

"JOIN()" is a function in Google Docs spreadsheet that basically concatenates, or adds together, the content of a range of cells. In this case it is combining the TypeID numbers in the range "$A2:$A9" or Column A, cell 2 to cell 9. The "$" is a code that tells the spreadsheet to not change the Column to anything else if this gets copied.

The "&typeid=" part of the JOIN() function is what is called the delimiter. If you were to change it from "&typeid=" to say "&t=" then instead of seeing

You would get instead

The problem though is that doesn't like "&t=" and wants to see "&typeid=". Now instead of using the JOIN() function you could just manually write it all out. But it's easier to just use the JOIN() especially since it has been put in there already.

Zeta Zhul
Preemptive Paranoia
Posted - 2011.07.29 04:23:00 - [2]

Continued ...

The last part is this:

Please bring up this link in another browser window.

This is the XPath, hang on, which is a special code used to decode specific parts of XML data. If you look at the above webpage you will see that there is a definite structure to it. This structure can be decoded by the spreadsheet by using XPath.

The structure is:

<evec_api version="2.0" method="marketstat_xml">
<type id="34">

The XPath code we use in the ImportXML() function is this:

I'm pretty sure you can see the link between them.

As an example to get the Sell Volume instead of the Sell Median Price you would need

To get the Max Buy Price you would use

Hope this works out for you. Have a happy. Auf wiedersehen. Now go away. Very Happy

Devai Starchild
Posted - 2011.07.29 05:20:00 - [3]

Edited by: Devai Starchild on 29/07/2011 06:43:04
Since google docs only updates the data from xml every 2 hours you can add


Such as:

Eve-central doesn't appear to accept any random variable so what this does it makes it so that it ignores orders under 1-7 quantity and changes this number every so often. This makes the url change and forces google docs to import new data.

I don't believe eve-central updates live. It might only update every 10 minutes or so but it is better than the 2 hours that google docs updates.


Volume appears to give the quantity for buy or sale up on the market. Is there any way to get the quantity bought or sold over the past day?

Devai Starchild
Posted - 2011.07.29 11:14:00 - [4]

Also to get an itemid, the easiest way I have found is to link it in chat then copy and paste it to an out of game notepad.

Capital Construction Research
Posted - 2011.07.29 17:35:00 - [5]

Sweet, I think I will be able to make good use of this information. Thanks!
/Bookmarked for later use

Posted - 2011.07.29 23:54:00 - [6]

Just out of curiosity, what would your formula look like if you wanted to just pull the median buy price of an item?

Devai Starchild
Posted - 2011.07.30 00:26:00 - [7]



Posted - 2011.07.30 01:02:00 - [8]

Edited by: Piemang on 30/07/2011 01:09:04
Edit: Found my problem, I accidentally put *0 at the end Embarassed

kasai zenpachi
Posted - 2011.08.08 19:52:00 - [9]

thx for the info I will try to make good use of it.


This thread is older than 90 days and has been locked due to inactivity.


The new forums are live

Please adjust your bookmarks to

These forums are archived and read-only