V Aero.5618:

Hey guys,

I try to develop a simple java eclipse rcp application to warm up with the GW2API. My first thoughts are to create a tool that helps us to manage all items from all inventories and account bank. So for the first try I use https://api.guildwars2.com/v2/characters?page=0 to lookup all items and then item_details to lookup each item. The problem I encounter is that every requests need some time and currently my tool needs about several minutes to get all required information. So how do you deal with this issue? What is the reason it takes so long time and what could I do?

btw my way to get a JSON respone:

@Override
	public String getResponse(String command) throws IOException
	{
		URL url = new URL(command);
		BufferedReader in = new BufferedReader(new InputStreamReader(url.openStream()));
		return in.readLine();
	}

	@Override
	public JSONObject getResponseAsJson(String command) throws IOException, JSONException
	{
		String response = getResponse(command);
		JSONObject json = new JSONObject(response);
		return json;
	}
	
	@Override
	public JSONArray getResponseAsJsonArray(String command) throws IOException, JSONException
	{
		String response = getResponse(command);
		JSONArray json = new JSONArray(response);
		return json;
	}

Tor.1365:

Perhaps try using the v2 items api:

https://wiki.guildwars2.com/wiki/API:2/items

- this accepts a list of ids as the parameters, so you can look up many items in a single API round-trip.