# Eve Data via Power BI

**URL:** <https://forums.eveonline.com/t/eve-data-via-power-bi/175977>\
**Category:** Third Party Developers\
**Created:** [July 17, 2019, 9:01pm UTC](https://forums.eveonline.com/t/eve-data-via-power-bi/175977 "2019-07-17T21:01:51Z")\
**Posts on this page:** 12\
**Page:** 1

<div class="post-metadata">

**Author:** ![CelestialSwine](https://sea1.discourse-cdn.com/eveonline/user_avatar/forums.eveonline.com/celestialswine/32/141474_2.png) [@CelestialSwine](https://forums.eveonline.com/u/CelestialSwine)\
**Post date:** [July 17, 2019, 9:01pm UTC](https://forums.eveonline.com/t/eve-data-via-power-bi/175977/1 "2019-07-17T21:01:51Z")

</div>

So, I’ve been following this tutorial here [https://wiki.zansha.space/index.php/SSO\_Authentication\_in\_Microsoft\_Power\_Query](https://wiki.zansha.space/index.php/SSO_Authentication_in_Microsoft_Power_Query)

I’ve gotten everything so far, except for when I go into step for and try to use my authentication code on swagger I get a response from the server:

{  
“error”: “Market access denied”  
}

My application is setup for market data, I’m pretty sure, and I followed all the steps on this tutorial to get the values I needed to enter in order to get the access code, which I now have.

But when trying it out in swagger, I get the error… Not sure what’s wrong?

Steps to troubleshoot anyone?

---

<div class="post-metadata">

**Author:** ![Blacksmoke16](https://sea1.discourse-cdn.com/eveonline/user_avatar/forums.eveonline.com/blacksmoke16/32/376589_2.png) [@Blacksmoke16](https://forums.eveonline.com/u/Blacksmoke16)\
**Post date:** [July 17, 2019, 10:29pm UTC](https://forums.eveonline.com/t/eve-data-via-power-bi/175977/2 "2019-07-17T22:29:51Z")

</div>

You can only access the market to structures you can dock in. This would indicate that you cannot dock there.

---

<div class="post-metadata">

**Author:** ![CelestialSwine](https://sea1.discourse-cdn.com/eveonline/user_avatar/forums.eveonline.com/celestialswine/32/141474_2.png) [@CelestialSwine](https://forums.eveonline.com/u/CelestialSwine)\
**Post date:** [July 18, 2019, 1:43am UTC](https://forums.eveonline.com/t/eve-data-via-power-bi/175977/3 "2019-07-18T01:43:40Z")

</div>

Is there a way to get back like, all structures I have access in? Or Is there a way so that I can do a lookup to say, yknow, check Jita 4-4 or whatever else.

Sorry Edit:

At least I think I may have answered part of my question: [https://www.adam4eve.eu/info\_stations.php](https://www.adam4eve.eu/info_stations.php)

Edit x2: Turns out 60003760 returns the same error and according to this site that is Jita 4-4

---

<div class="post-metadata">

**Author:** ![Blacksmoke16](https://sea1.discourse-cdn.com/eveonline/user_avatar/forums.eveonline.com/blacksmoke16/32/376589_2.png) [@Blacksmoke16](https://forums.eveonline.com/u/Blacksmoke16)\
**Post date:** [July 18, 2019, 2:45am UTC](https://forums.eveonline.com/t/eve-data-via-power-bi/175977/4 "2019-07-18T02:45:37Z")

</div>

The structures endpoint you’re probably using is only for citadels. For normal stations you would have to fetch the entire region and filter to that specific location via [https://esi.evetech.net/ui/#/Market/get\_markets\_region\_id\_orders](https://esi.evetech.net/ui/#/Market/get_markets_region_id_orders).

---

<div class="post-metadata">

**Author:** ![CelestialSwine](https://sea1.discourse-cdn.com/eveonline/user_avatar/forums.eveonline.com/celestialswine/32/141474_2.png) [@CelestialSwine](https://forums.eveonline.com/u/CelestialSwine)\
**Post date:** [July 18, 2019, 1:28pm UTC](https://forums.eveonline.com/t/eve-data-via-power-bi/175977/5 "2019-07-18T13:28:40Z")

</div>

So, I didnt try your endpoint yet, but I have been trying the tranquility trading tower and I got a different result pinging this structure,

It seems to work… Now to get that data in power BI

---

<div class="post-metadata">

**Author:** ![CelestialSwine](https://sea1.discourse-cdn.com/eveonline/user_avatar/forums.eveonline.com/celestialswine/32/141474_2.png) [@CelestialSwine](https://forums.eveonline.com/u/CelestialSwine)\
**Post date:** [July 18, 2019, 1:30pm UTC](https://forums.eveonline.com/t/eve-data-via-power-bi/175977/6 "2019-07-18T13:30:26Z")

</div>

Any experts want to conference call on this? 🙂

Okay, this is as far as I got, trying to figure out how to turn this into a meaningful table:

 ![](https://global.discourse-cdn.com/eveonline/original/3X/f/0/f0fbb8010f52e18f6fc5bcfc4f85eb343150478f.png)

---

<div class="post-metadata">

**Author:** ![Blacksmoke16](https://sea1.discourse-cdn.com/eveonline/user_avatar/forums.eveonline.com/blacksmoke16/32/376589_2.png) [@Blacksmoke16](https://forums.eveonline.com/u/Blacksmoke16)\
**Post date:** [July 18, 2019, 2:15pm UTC](https://forums.eveonline.com/t/eve-data-via-power-bi/175977/7 "2019-07-18T14:15:25Z")

</div>

There is a difference between an npc _station_ and a player owned _structure_. The structures endpoint requires you are able to dock there in order to get the market orders in that structure. The regions endpoint returns all orders in the region, excluding sell orders of structures within that region. However it does show ranged buy orders from structures. So its trivial to get a full list of a region’s market without pulling the full region plus knowing the ids of the structures to also fetch.

---

<div class="post-metadata">

**Author:** ![CelestialSwine](https://sea1.discourse-cdn.com/eveonline/user_avatar/forums.eveonline.com/celestialswine/32/141474_2.png) [@CelestialSwine](https://forums.eveonline.com/u/CelestialSwine)\
**Post date:** [July 18, 2019, 2:18pm UTC](https://forums.eveonline.com/t/eve-data-via-power-bi/175977/8 "2019-07-18T14:18:47Z")

</div>

I think my major issues at this point are making power bi do what I want it to do, while the tutorial I am following does give the basic Idea, and Power BI’s mechanics are similar to excel, some things just aren’t quite matching up, or I’m bad at following directions. I’ve gotten my connection settled, authorized, was able to pull data from an endpoint, all those basics are covered.

Now I’m trying to add a parameter to my endpoint call so I don’t have to manually edit it every 20 minutes.

---

<div class="post-metadata">

**Author:** ![Steve\_Ronuken](https://sea1.discourse-cdn.com/eveonline/user_avatar/forums.eveonline.com/steve_ronuken/32/373894_2.png) [@Steve\_Ronuken](https://forums.eveonline.com/u/Steve_Ronuken)\
**Post date:** [July 18, 2019, 5:00pm UTC](https://forums.eveonline.com/t/eve-data-via-power-bi/175977/9 "2019-07-18T17:00:58Z")

</div>

[Need excel API guide](https://forums.eveonline.com/t/need-excel-api-guide/167623/6) may be of some interest

---

<div class="post-metadata">

**Author:** ![Olmani\_Kuha](https://sea1.discourse-cdn.com/eveonline/user_avatar/forums.eveonline.com/olmani_kuha/32/280514_2.png) [@Olmani\_Kuha](https://forums.eveonline.com/u/Olmani_Kuha)\
**Post date:** [July 19, 2019, 7:48am UTC](https://forums.eveonline.com/t/eve-data-via-power-bi/175977/10 "2019-07-19T07:48:17Z")

</div>

Do you try to paginate through pages if so,

i was trying to do same thing on market data and here is my m script hope it helps

but power query not a good fit for api request u should think to use python or any other language to fetch data to an db then you can connect to this database with ease

```
let
    GetJson = (Url) =>
        let 
            RawData = Web.Contents(Url),
            Json = Json.Document(RawData)
        in Json,
    
    region_id= "10000002",
    api_url = "https://esi.evetech.net/latest/markets/" & region_id & "/orders/?page=",

    Source = List.Generate(()=> [i = 2, temp = GetJson(api_url & Number.ToText(1))] ,
             each List.Count([temp]) > 0,
             each [i = [i] + 1,
                   temp = GetJson(api_url & Number.ToText([i]))] ,
             each [temp]),
    #"Converted to Table" = Table.FromList(Source, Splitter.SplitByNothing(), null, null, ExtraValues.Error),
    #"Expanded Column1" = Table.ExpandListColumn(#"Converted to Table", "Column1"),
    #"Expanded Column2" = Table.ExpandRecordColumn(#"Expanded Column1", "Column1", {"duration", "is_buy_order", "issued", "location_id", "min_volume", "order_id", "price", "range", "system_id", "type_id", "volume_remain", "volume_total"}, {"duration", "is_buy_order", "issued", "location_id", "min_volume", "order_id", "price", "range", "system_id", "type_id", "volume_remain", "volume_total"})
   in
    #"Expanded Column2"
```

---

<div class="post-metadata">

**Author:** ![Steve\_Ronuken](https://sea1.discourse-cdn.com/eveonline/user_avatar/forums.eveonline.com/steve_ronuken/32/373894_2.png) [@Steve\_Ronuken](https://forums.eveonline.com/u/Steve_Ronuken)\
**Post date:** [July 19, 2019, 1:39pm UTC](https://forums.eveonline.com/t/eve-data-via-power-bi/175977/11 "2019-07-19T13:39:00Z")

</div>

I do very little with excel and powerbi. I do pretty much everything in python these days.

(xlwings may be of interest too 😃 )

I just find these kinds of problems interesting. (biggest problem is the inability to get response headers.)

---

<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:** [October 17, 2019, 1:39pm UTC](https://forums.eveonline.com/t/eve-data-via-power-bi/175977/12 "2019-10-17T13:39:06Z")

</div>

Closed on October 17, 2019, 1:39pm UTC

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