title: Outputting imgur image URLs from a gallery using the API using javascript
body: <p>I am trying to write a script that gets a random image from an imgur album, but I cannot retrieve the image URLs.</p>
  
  <p>I am using AJAX to get the JSON data for the album, here is what I have so far:</p>
  
  <pre><code>$.ajax({
      type: "GET",
      url: "https://api.imgur.com/3/album/Cfy6A/images",
      dataType: "text",
      beforeSend: function(xhr) {
          xhr.setRequestHeader('Authorization', 'Client-ID &lt;client-id&gt;');
      },
      success: function(data) {
          var json = $.parseJSON(data);
          console.log(json);
      }
  });
  </code></pre>
  
  <p>I am able to get the JSON data, and I am trying to get 'link' for each object, I just cannot get it to output <em>just</em> the links as an array.</p>
  
  <p>Any help is appreciated!</p>
  
  <p>EDIT: Here is a pastebin of the JSON response: <a href="http://pastebin.com/JR068Dhf" rel="nofollow">http://pastebin.com/JR068Dhf</a></p>