Request all reddit comments from user with Javascript : <p>I am trying to achieve the following with Javascript:</p>

<p>Given a reddit username , I want to retrieve the maximum amount of comments allowed for this user.</p>

<p>So far what i have managed to do is retrieve only the 25 latest comments which is the default reddit behaviour. Typing  in the browser for example the following url, we receive 25 comments in the json response.</p>

<p>"<a href="https://www.reddit.com/user/spez/.json" rel="nofollow noreferrer">https://www.reddit.com/user/spez/.json</a>"</p>

<p>We can limit or extend the number of comments from a user ( name of user is spez in the example)  as follows:</p>

<p>"<a href="https://www.reddit.com/user/spez/.json?limit=1000" rel="nofollow noreferrer">https://www.reddit.com/user/spez/.json?limit=1000</a>"</p>

<p>However how could I also use limit with the following ?</p>

<pre><code>$.getJSON(
       "http://www.reddit.com/u/"+ user + "/.json?jsonp=?",function foo(result) {
        $.each(result.data.children.slice(0, 10),
            function (i, post) {
              $("#reddit-content").append( '&lt;br&gt;' + post.data.body );
              $("#reddit-content").append( '&lt;hr&gt;' );
            });
        }
      )
</code></pre>
