# Buy parameter for eve-marketdata eve api?

**URL:** <https://forums.eveonline.com/t/buy-parameter-for-eve-marketdata-eve-api/66101>\
**Category:** Science & Industry\
**Created:** [March 26, 2018, 11:16pm UTC](https://forums.eveonline.com/t/buy-parameter-for-eve-marketdata-eve-api/66101 "2018-03-26T23:16:10Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Marvel\_Master](https://sea1.discourse-cdn.com/eveonline/user_avatar/forums.eveonline.com/marvel_master/32/32945_2.png) [@Marvel\_Master](https://forums.eveonline.com/u/Marvel_Master)\
**Post date:** [March 26, 2018, 11:16pm UTC](https://forums.eveonline.com/t/buy-parameter-for-eve-marketdata-eve-api/66101/1 "2018-03-26T23:16:10Z")

</div>

Hello,

inside google docs i use the following line to get sell prices from the region “the forge” from eve-marketdata.

=ImportXML(“[https://api.eve-marketdata.com/api/item\_prices2.xml?char\_name=demo&type\_ids="&643&"&region\_ids=10000002&buysell=s](https://api.eve-marketdata.com/api/item_prices2.xml?char_name=demo&type_ids=%22&643&%22&region_ids=10000002&buysell=s)”, “/emd/result/rowset/row/@price”)

You see inside this line the parameter “buysell=s”  
s= sell orders

The result from the line above is the price for the armageddon.

I search the parameter for buy. It is not “b” .

Does anyone knows the correct parm?

Regards,

---

<div class="post-metadata">

**Author:** ![ISD\_Sakimura](https://sea1.discourse-cdn.com/eveonline/user_avatar/forums.eveonline.com/isd_sakimura/32/382213_2.png) [@ISD\_Sakimura](https://forums.eveonline.com/u/ISD_Sakimura)\
**Post date:** [March 27, 2018, 10:53am UTC](https://forums.eveonline.com/t/buy-parameter-for-eve-marketdata-eve-api/66101/2 "2018-03-27T10:53:05Z")

</div>

I dont have any experience with the API of [eve-marketdata.com](http://eve-marketdata.com). I usually use the [EVEMarketer.com](http://EVEMarketer.com) API (since eve-central have been down), which in my experience is much simpler and easier to use, for example your request would then be similar to:

> =IMPORTXML(“[http://api.evemarketer.com/ec/marketstat?typeid=2867&typeid=2868&typeid=2871&typeid=2872&typeid=2876&typeid=2869&typeid=2870&typeid=2875&usesystem=30000142","//buy/max](http://api.evemarketer.com/ec/marketstat?typeid=2867&typeid=2868&typeid=2871&typeid=2872&typeid=2876&typeid=2869&typeid=2870&typeid=2875&usesystem=30000142%22,%22//buy/max)”)

### Paramaters:

- **TypeID=** (2868 = _Integrity Response Drones_) - separated by an “&”
- **Usesystem=**
  - **30000142** (Jita Trade Hub)
  - **30002187** (Amarr Trade Hub)

- **“//buy/max”** will list the max price you would get by selling to a buy-order, **“//sell/min”** would list the lowest price of sell-orders from which you can buy.

unfortunately there is not a functionality to get data for entire regions, CCP’s ESI Swagger would be better suited for this purpose as it will get you the most recent data. Using ESI Swagger is a total different story and more complicated (at least that is how it seems).

I’m assuming that you are only interested in pulling data for the Jita Trade Hub. All you have to do is use the function that I posted above and change out the TypeID(s) and use the correct parameter for Buy and Sell.

Cheers 😄

---

<div class="post-metadata">

**Author:** ![Marvel\_Master](https://sea1.discourse-cdn.com/eveonline/user_avatar/forums.eveonline.com/marvel_master/32/32945_2.png) [@Marvel\_Master](https://forums.eveonline.com/u/Marvel_Master)\
**Post date:** [March 28, 2018, 11:18am UTC](https://forums.eveonline.com/t/buy-parameter-for-eve-marketdata-eve-api/66101/3 "2018-03-28T11:18:15Z")

</div>

Hello Sakimura,

thanks for your answer.

At this moment i corrected my string and now both APIs works for me.  
The Region : the Forge:  
=ImportXML(“[https://api.eve-marketdata.com/api/item\_prices2.xml?char\_name=demo&type\_ids=2312&region\_ids=10000002&buysell=b](https://api.eve-marketdata.com/api/item_prices2.xml?char_name=demo&type_ids=2312&region_ids=10000002&buysell=b)”, “/emd/result/rowset/row/@price”)

Only Jita:  
=ImportXML(“[http://api.evemarketer.com/ec/marketstat?typeid=2312&usesystem=30000142","//buy/max](http://api.evemarketer.com/ec/marketstat?typeid=2312&usesystem=30000142%22,%22//buy/max)”)

Do you have a manual, which describes the API from evemarketer?  
I found this two sites:  
[http://dev.eve-central.com/evec-api/start](http://dev.eve-central.com/evec-api/start)

[https://api.evemarketer.com/ec/](https://api.evemarketer.com/ec/)

Regards

---

<div class="post-metadata">

**Author:** ![ISD\_Sakimura](https://sea1.discourse-cdn.com/eveonline/user_avatar/forums.eveonline.com/isd_sakimura/32/382213_2.png) [@ISD\_Sakimura](https://forums.eveonline.com/u/ISD_Sakimura)\
**Post date:** [March 31, 2018, 8:53am UTC](https://forums.eveonline.com/t/buy-parameter-for-eve-marketdata-eve-api/66101/4 "2018-03-31T08:53:50Z")

</div>

no manual I’m afraid, I just used use eve-central and it just happens that the two API’s work almost identically (I haven’t seen any difference, yet). So if you can’t find the answer in evemarketer API documentation, then you could try eve-central’s documentation.

---

<div class="post-metadata">

**Author:** ![system1](https://global.discourse-cdn.com/eveonline/original/3X/4/1/41ec4921cbaca7a6f9ea556e7cc20018461eae5e.png) [@system1](https://forums.eveonline.com/u/system1)\
**Post date:** [June 29, 2018, 8:54am UTC](https://forums.eveonline.com/t/buy-parameter-for-eve-marketdata-eve-api/66101/5 "2018-06-29T08:54:06Z")

</div>

Closed on June 29, 2018, 8:54am UTC

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