title: Get all posts from a Tumblr blog using jQuery getJson
body: <p>I want to get all text posts of a Tumblr blog with jQuery getJson using Tumblr's API.</p>
  
  <p>I tried using the following code, but I just got 20 posts:</p>
  
  <pre><code>function loadPosts () {
  
    var key = "api_key=xBcVPLfdDKpH0GjMCd1whW7rPoYkzLgZD3ZwpzndISFI4huSpA"
    var api = "https://api.tumblr.com/v2/blog/only-text-posts.tumblr.com/"
    var post_amount
  
    $.getJSON(api + "info?" + key,function(data) {
      post_amount = data.response.blog.posts
      $.getJSON(api + "posts/text?&amp;filter=text&amp;limit=" + post_amount + "&amp;" + key,function(data) {
        $.each(data.response.posts, function(i, item) {
          var content = item.body
          $("#Posts ul").append('&lt;li&gt;' + content + '&lt;/li&gt;')
        });
      })
    })
  
  }
  </code></pre>
  
  <p>Here is a good sample Tumblr blog for testing:</p>
  
  <p><a href="http://only-text-posts.tumblr.com/" rel="nofollow">http://only-text-posts.tumblr.com/</a></p>