# Retrieving Market Data Multiple Types from ESI API

**URL:** <https://forums.eveonline.com/t/retrieving-market-data-multiple-types-from-esi-api/301179>\
**Category:** Third Party Developers\
**Created:** [March 19, 2021, 12:15pm UTC](https://forums.eveonline.com/t/retrieving-market-data-multiple-types-from-esi-api/301179 "2021-03-19T12:15:52Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![Nassaria\_Lia](https://sea1.discourse-cdn.com/eveonline/user_avatar/forums.eveonline.com/nassaria_lia/32/451161_2.png) [@Nassaria\_Lia](https://forums.eveonline.com/u/Nassaria_Lia)\
**Post date:** [March 19, 2021, 12:15pm UTC](https://forums.eveonline.com/t/retrieving-market-data-multiple-types-from-esi-api/301179/1 "2021-03-19T12:15:52Z")

</div>

Hey,

im trying to collect Market Data. So im calling this ESI Service:  
[/markets/{region\_id}/history/](https://esi.evetech.net/ui/?version=latest#/operations/Market/get_markets_region_id_history)

Which works fine but if i want to check the prices for e.g. 10 items in the 5 Major Trade Hubs i have to do 50 Webservice calls to retrieve Data.

Is there a more elegant way to do it?  
Maybe retrieving Data for all Hubs (Regions) at once ore at least for multiple types at once?  
So i can reduce the WebService Calls to reduce the workload for the CCP Servers.

---

<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:** [March 19, 2021, 12:44pm UTC](https://forums.eveonline.com/t/retrieving-market-data-multiple-types-from-esi-api/301179/2 "2021-03-19T12:44:38Z")

</div>

> [@Nassaria\_Lia](#):
>
> 10 items in the 5 Major Trade Hubs i have to do 50 Webservice calls to retrieve Data.

Also remember there may be more than 1 page of data.

> [@Nassaria\_Lia](#):
>
> Is there a more elegant way to do it?

If you don’t care about the resultings being as close to real time as you can, it could be a better idea to use a pre aggregated market API. E.g. [Fuzzwork Market Data](https://market.fuzzwork.co.uk/api/). This way you can do multiple types at once for each hub. You’ll also get the data you need back directly versus needing to calculate it yourself.

---

<div class="post-metadata">

**Author:** ![Nassaria\_Lia](https://sea1.discourse-cdn.com/eveonline/user_avatar/forums.eveonline.com/nassaria_lia/32/451161_2.png) [@Nassaria\_Lia](https://forums.eveonline.com/u/Nassaria_Lia)\
**Post date:** [March 19, 2021, 1:32pm UTC](https://forums.eveonline.com/t/retrieving-market-data-multiple-types-from-esi-api/301179/3 "2021-03-19T13:32:09Z")

</div>

Thanks for the Reply,

I dont need it to be exactly Realtime for what im working currently. If they are a few hours old thats absolute Ok.  
I just dont want to be dependant on other third Partys, for that reason i didnt check those Apis and collecting the Data myself.

Does an Service like Fuzzwork call the ESI Api for every Item and every Region at least once or twice a day?  
If thats the way to go, its not a big Deal for me i just thought im doing something wrong if i need so many calls.  
As long as CCP has no Problems recieving so many Webservice calls i can work with it.  
Just thought that its a good idea to avoid Spamming the API if i dont have to.

---

<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:** [March 19, 2021, 1:52pm UTC](https://forums.eveonline.com/t/retrieving-market-data-multiple-types-from-esi-api/301179/4 "2021-03-19T13:52:24Z")

</div>

> [@Nassaria\_Lia](#):
>
> I just dont want to be dependant on other third Partys, for that reason i didnt check those Apis and collecting the Data myself.

Fuzzwork should be fine as it’s ran by @Steve_Ronuken, who is a CSM member.

> [@Nassaria\_Lia](#):
>
> Does an Service like Fuzzwork call the ESI Api for every Item and every Region at least once or twice a day?

[https://market.fuzzwork.co.uk/about/](https://market.fuzzwork.co.uk/about/)

> [@Nassaria\_Lia](#):
>
> As long as CCP has no Problems recieving so many Webservice calls i can work with it.

As long as you respect the cache/error headers and stuff it’s fine. But using a pre aggregated API is definitely easier IMO.

---

<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:** [March 19, 2021, 5:06pm UTC](https://forums.eveonline.com/t/retrieving-market-data-multiple-types-from-esi-api/301179/5 "2021-03-19T17:06:10Z")

</div>

> [@Blacksmoke16](#):
>
> Fuzzwork should be fine as it’s ran by @Steve_Ronuken, who is a CSM member.

Was a CSM member. After six years in that barrel, I didn’t stand this year 😃

---

<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:** [March 19, 2021, 5:12pm UTC](https://forums.eveonline.com/t/retrieving-market-data-multiple-types-from-esi-api/301179/6 "2021-03-19T17:12:28Z")

</div>

> [@Nassaria\_Lia](#):
>
> Does an Service like Fuzzwork call the ESI Api for every Item and every Region at least once or twice a day?

I’m hitting, starting at 6 and 36 past the hour, the region endpoint for every region. In addition, I’m hitting the market endpoint for every structure which I know about. That’s approximately 1623 pages of data (it varies up and down) . takes me about 70 seconds or so. The processing after the fact takes around 12 minutes or so. The code I’m using is on my github

Importantly, this is current, not historical data. The endpoint you mention in the first post is for multiple days worth of history.

---

<div class="post-metadata">

**Author:** ![Brock\_Khans](https://sea1.discourse-cdn.com/eveonline/user_avatar/forums.eveonline.com/brock_khans/32/409174_2.png) [@Brock\_Khans](https://forums.eveonline.com/u/Brock_Khans)\
**Post date:** [March 21, 2021, 6:16pm UTC](https://forums.eveonline.com/t/retrieving-market-data-multiple-types-from-esi-api/301179/7 "2021-03-21T18:16:23Z")

</div>

Another option to look at is eve marketer api [Swagger UI](https://api.evemarketer.com/ec/) they also update in near real time

---

<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:** [June 19, 2021, 6:16pm UTC](https://forums.eveonline.com/t/retrieving-market-data-multiple-types-from-esi-api/301179/8 "2021-06-19T18:16:27Z")

</div>

Closed on June 19, 2021, 6:16pm UTC

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