title: +20 photos flickr api
body: <p>I am trying to get +20 photos in a flickr feed. On another forum, someone posted the following code as an answer. I inserted my API + setID in the lines 2-3, but it didn't work. </p>
  
  <pre><code>$(document).ready(function() {  
      var apiKey = ‘******I inserted my API here’;  
      var photoSetID = ‘********set ID’;  
      var jsonURL = 'http://api.flickr.com/services/rest/?method=flickr.photosets.getPhotos&amp;extras=url_o&amp;photoset_id=' + photoSetID +   
          '&amp;per_page=500&amp;api_key=' + apiKey + '&amp;format=json&amp;jsoncallback;=?';    
      $.getJSON(jsonURL, function(data){  
          $.each(data.photoset.photo, function(i,item){  
              var imgSrc = ‘http://farm’ + item.farm + ‘.static.flickr.com/’ + item.server + ‘/’ +  
              item.id + ‘_’ + item.secret + ‘_b.jpg’;  
              $(’ &lt;img &gt;’).attr(’src’, imgSrc).appendTo(’#images’);  
          });  
      });  
  });    
  </code></pre>
  
  <p>I think my two main problems are- where in here do I replace the info with my own:</p>
  
  <pre><code>var jsonURL = 'http://api.flickr.com/services/rest/?method=flickr.photosets.getPhotos&amp;extras=url_o&amp;photoset_id=' + photoSetID + '&amp;per_page=500&amp;api_key=' + apiKey + '&amp;format=json&amp;jsoncallback;=?';
  </code></pre>
  
  <p>And what is the purpose of this code?</p>
  
  <pre><code>var imgSrc = 'http://farm' + item.farm + '.static.flickr.com/' + item.server + '/' + item.id + '_' + item.secret + '_b.jpg'; 
  </code></pre>
  
  <p>Thanks so much, my understanding of Jquery is limited and the documentation on flickr api is surprisingly scarce for beginners.</p>
  
  <p>Kelsey</p>