public ArrayList<String> apiGetLinks (String Client_ID, String url) throws IOException {
		ArrayList<String> foundLinks = new ArrayList<String>();
		if(isRunning){//We only want to do this if the app is running.
			
			 String YOUR_REQUEST_URL = url;

			    URL imgURL = new URL(YOUR_REQUEST_URL);
			    HttpURLConnection conn = (HttpURLConnection) imgURL.openConnection();
			    conn.setRequestMethod("GET");
			    conn.setRequestProperty("Authorization", "Client-ID " + Client_ID);

			    BufferedReader bin = null;
			    bin = new BufferedReader(new InputStreamReader(conn.getInputStream()));

			//below will print out bin
			    String jsonString = "";
			    String line;
			    while ((line = bin.readLine()) != null){
			    	//System.out.println(line);
			    	jsonString = jsonString + line;
			    }
			        
			    bin.close();
			    //System.out.println("jsonString: "+jsonString);
			    //String [] foundLinks = new String[200];
			    
			    JSONParser parser = new JSONParser();
			    try{
			         JSONObject obj = (JSONObject) parser.parse(jsonString);
			         JSONArray data = (JSONArray) obj.get("data");
			         if(data.isEmpty()){
			        	 parent.gui.mainCanvas.header.inputArea.button.doClick(20);
			        	 parent.gui.mainCanvas.header.inputArea.textField.setText("No Results Found!");
			        	 parent.gui.mainCanvas.header.inputArea.textField.selectAll();
			         }
			         System.out.println(jsonString);
			         for(int i = 0; i < data.size(); i++){
			        	 JSONObject img = (JSONObject)data.get(i);
			        	 String link = (String) img.get("link");
			        	 if(linkIsAlbum(link)){
			        		 String albumID = getAlbumID(link);
			        		 foundLinks.addAll(apiGetLinks(Client_ID, "https://api.imgur.com/3/album/"+albumID+"/images"));
			        	 }else{
			        		 foundLinks.add(link);
			        		 queue.enQueue(link); //this will do the downloading.
			        	 }
			        	 
			        	//System.out.println(link);
			        	 
			         }
			      }catch(ParseException pe){
					parent.gui.mainCanvas.header.inputArea.textField.setText("No Images Found");
					//parent.gui.mainCanvas.header.inputArea.getTextField().updateUI();
			        System.out.println("setTextHERE");
					System.out.println("position: " + pe.getPosition());
			         System.out.println(pe);
			      }
			    
		}
		return foundLinks;
	   
	}