# Fuzzwork market data

**URL:** <https://forums.eveonline.com/t/fuzzwork-market-data/133763>\
**Category:** Third Party Developers\
**Created:** [January 16, 2019, 3:55am UTC](https://forums.eveonline.com/t/fuzzwork-market-data/133763 "2019-01-16T03:55:01Z")\
**Posts on this page:** 1\
**Showing post:** 3

<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:** [January 16, 2019, 1:30pm UTC](https://forums.eveonline.com/t/fuzzwork-market-data/133763/3 "2019-01-16T13:30:49Z")

</div>

If you use Google Sheet you could use this function:

```auto
/**
* Query's Fuzz market API for the given types
* @param {range} A vertical range of type_ids.
* @return maxBuy and minSell for each type_id
* @customfunction
*/
function fuzzApiPriceData(type_ids) {
  if (!type_ids) throw 'type_ids is required';
  var type_ids = Array.isArray(type_ids) ? type_ids.map(function(id) { return id[0]; }) : [type_ids];
  var fuzz_price_data = JSON.parse(UrlFetchApp.fetch("https://market.fuzzwork.co.uk/aggregates/?station=60003760&types=" + type_ids.join(',')));
  return [['minSell', 'maxBuy']].concat(type_ids.map(function(type_id) { return [parseFloat(fuzz_price_data[type_id]['sell']['min']), parseFloat(fuzz_price_data[type_id]['buy']['max'])]; }));
}

```

Then can give it a range of type\_ids like `=fuzzApiPriceData(A1:A100)`

---

_[View the full topic](https://forums.eveonline.com/t/fuzzwork-market-data/133763)._
