Web API - Search Market Item

System.GetOperatorSetting("market_host").."/api/v1/search?query=QUERY&page=PAGE_NR&per_page=COUNT"
 * Usage

tier:1..4 stat_mass:0..1500 stat_cpu:1..9 stat_power:1..750 stat_quality:0..1000 price:MIN..MAX string: category: sort: price_cy price_per_unit asc desc between arg, there is a "%20"
 * query args

space convert: " " > "%2520"

local market_host = System.GetOperatorSetting("market_host") local thresher = "refined thresher"; local thresher_query = string.gsub(thresher, " " ,"%%2520") -- refined%2520thresher local query = "string:"..thresher_query.."%20sort:price_cy:asc" local url = market_host.."/api/v1/search?query="..query.."&page=1&per_page=10"
 * Examples:

-- {	"listings" : [		{			"categories" : [				66, 				61			], 			"sale_guid" : "2256966989450941939", 			"rarity" : "rare", 			"purchased" : false, 			"id" : "107756721", 			"price_per_unit" : 125, 			"expires_at" : "2013-10-16T05:59:58+00:00", 			"quantity" : 1, 			"title" : "Chosen Overload I^Q", 			"stats" : {				"power" : -87.567470, 				"duration" : 10.915220, 				"damage" : 160, 				"mass" : -105.824707, 				"repair_pool" : 0, 				"effect_radius" : 4.146432, 				"cpu" : -3, 				"charge_speed" : 0.510980, 				"overload_weapon_chargeup" : 48.169568, 				"quality" : 842			}, 			"item_guid" : "2256965456416330237", 			"item_sdb_id" : 82932, 			"icon" : "MOD_BP_8", 			"price_cy" : 125		}, 		{			"categories" : [				66, 				61			], 			"sale_guid" : "815813140523551987", 			"rarity" : "epic", 			"purchased" : false, 			"id" : "106699321", 			"price_per_unit" : 7770, 			"expires_at" : "2013-10-14T21:49:47+00:00", 			"quantity" : 1, 			"title" : "Chosen Overload I^Q", 			"stats" : {				"power" : -92.979106, 				"duration" : 11.004351, 				"damage" : 165, 				"mass" : -109.898052, 				"repair_pool" : 0, 				"effect_radius" : 4.160693, 				"cpu" : -3, 				"charge_speed" : 0.512049, 				"overload_weapon_chargeup" : 47.991307, 				"quality" : 924			}, 			"item_guid" : "815798225712849661", 			"item_sdb_id" : 82932, 			"icon" : "MOD_BP_8", 			"price_cy" : 7770		}	], 	"total" : 2 } --