# Eve Tycoon API

**URL:** <https://forums.eveonline.com/t/eve-tycoon-api/416478>\
**Category:** Third Party Developers\
**Created:** [August 19, 2023, 7:20am UTC](https://forums.eveonline.com/t/eve-tycoon-api/416478 "2023-08-19T07:20:03Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![Vartan\_Sarkisian](https://sea1.discourse-cdn.com/eveonline/user_avatar/forums.eveonline.com/vartan_sarkisian/32/375500_2.png) [@Vartan\_Sarkisian](https://forums.eveonline.com/u/Vartan_Sarkisian)\
**Post date:** [August 19, 2023, 7:20am UTC](https://forums.eveonline.com/t/eve-tycoon-api/416478/1 "2023-08-19T07:20:03Z")

</div>

I have some spreadsheets but they use the evemarketer API which is consistently not working well these days. I want to change the details to use the eve tycoon API, I’ve no idea in doing in this sort of thing. However I’ve find the following info on my spreadsheet

**[http://api.evemarketer.com/ec/marketstat?typeid=](http://api.evemarketer.com/ec/marketstat?typeid=)**

And from the evetycoon website I’ve found this

**/api/v1/market/stats/{regionId}/{typeId}**

However if I replace the 1str with the 2nd i still get no prices so I assume I need to alter the 2nd entry a little.(maybe with the http and the beginning and/or typeid= at the end) Can anyone advise on this please? This is the actual page i am looking at [EVE Tycoon](https://evetycoon.com/docs)

Also I’ve noticed that the code on the cells that gives prices say things like this =IF(ISBLANK($C102),“”,FILTERXML(WEBSERVICE(CONCATENATE(MarketDataAPI!$B$3,$D102,MarketDataAPI!$C$3)),IF($G$2=“via Buy Orders”,“//buy/max”,“//sell/min”))) so unsure if i need to alter anything there too

---

<div class="post-metadata">

**Author:** ![Joao\_Neto](https://sea1.discourse-cdn.com/eveonline/user_avatar/forums.eveonline.com/joao_neto/32/382825_2.png) [@Joao\_Neto](https://forums.eveonline.com/u/Joao_Neto)\
**Post date:** [August 19, 2023, 12:06pm UTC](https://forums.eveonline.com/t/eve-tycoon-api/416478/2 "2023-08-19T12:06:37Z")

</div>

Your spreadsheet seems to simply append the `typeId` to the URL. I think it should work if you replace that bit with the following:

```py
https://evetycoon.com/api/v1/market/stats/10000002/

```

The `10000002` bit refers to the “The Forge” region.  
You can find the IDs for other regions in [https://www.adam4eve.eu/info\_locations.php](https://www.adam4eve.eu/info_locations.php)

---

<div class="post-metadata">

**Author:** ![Syzygium](https://sea1.discourse-cdn.com/eveonline/user_avatar/forums.eveonline.com/syzygium/32/516281_2.png) [@Syzygium](https://forums.eveonline.com/u/Syzygium)\
**Post date:** [August 19, 2023, 12:38pm UTC](https://forums.eveonline.com/t/eve-tycoon-api/416478/3 "2023-08-19T12:38:22Z")

</div>

Doesn’t work for me (trying Google Sheets). The old evemarketer links worked, but I don’t get how to specify item, system, orders in just one link. I managed to get it done for evemarketer years ago, but I am totally lost when it comes to any kind of database queries…

The old evemarketer string looked like this:

> [@](#):
>
> =importxml(“[https://api.evemarketer.com/ec/marketstat?typeid=15631&usesystem=30000142](https://api.evemarketer.com/ec/marketstat?typeid=15631&usesystem=30000142)”, “//sell/percentile”)

The new one I am trying is this:

> [@](#):
>
> =importxml(“[https://evetycoon.com/api/v1/market/stats","/systemID=30000142/itemID=15631](https://evetycoon.com/api/v1/market/stats%22,%22/systemID=30000142/itemID=15631)”)

Google Sheets tries to load something, then the message “no data found” appears.

> [@](#):
>
> =importxml(“[https://evetycoon.com/api/v1/market/stats/10000002/30000142/15631](https://evetycoon.com/api/v1/market/stats/10000002/30000142/15631)”, “/sellAvgFivePercent”)

also doesn’t work…

---

<div class="post-metadata">

**Author:** ![Vartan\_Sarkisian](https://sea1.discourse-cdn.com/eveonline/user_avatar/forums.eveonline.com/vartan_sarkisian/32/375500_2.png) [@Vartan\_Sarkisian](https://forums.eveonline.com/u/Vartan_Sarkisian)\
**Post date:** [August 20, 2023, 7:09am UTC](https://forums.eveonline.com/t/eve-tycoon-api/416478/4 "2023-08-20T07:09:54Z")

</div>

Thanks for the replies so far,

---

<div class="post-metadata">

**Author:** ![Joao\_Neto](https://sea1.discourse-cdn.com/eveonline/user_avatar/forums.eveonline.com/joao_neto/32/382825_2.png) [@Joao\_Neto](https://forums.eveonline.com/u/Joao_Neto)\
**Post date:** [August 20, 2023, 1:20pm UTC](https://forums.eveonline.com/t/eve-tycoon-api/416478/5 "2023-08-20T13:20:39Z")

</div>

The Eve Tycoon API data is in JSON format, not XML. You can try using `importjson` and see if it works, but the second argument is likely different.

---

<div class="post-metadata">

**Author:** ![Syzygium](https://sea1.discourse-cdn.com/eveonline/user_avatar/forums.eveonline.com/syzygium/32/516281_2.png) [@Syzygium](https://forums.eveonline.com/u/Syzygium)\
**Post date:** [August 20, 2023, 1:55pm UTC](https://forums.eveonline.com/t/eve-tycoon-api/416478/6 "2023-08-20T13:55:46Z")

</div>

Google Sheets does not have a function “importjson”.

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/eveonline/original/3X/4/1/41ec4921cbaca7a6f9ea556e7cc20018461eae5e.png) [@system](https://forums.eveonline.com/u/system)\
**Post date:** [November 18, 2023, 1:56pm UTC](https://forums.eveonline.com/t/eve-tycoon-api/416478/7 "2023-11-18T13:56:41Z")

</div>

Closed on November 18, 2023, 1:56pm UTC

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.
