title: How to get more results from the octokit api?
body: <p>I want to get all the repos from github using <a href="https://github.com/octokit" rel="nofollow noreferrer">octokit</a>.</p>
  <p>So I use  <code>throttling</code> and <code>paginateRest</code> and <code>restEndpointMethods</code> plugins.</p>
  <p>But no matter what is my search query it's return 1020 results max.</p>
  <p>How I can get the all results?</p>
  <pre><code>const searchQuery = &quot;stars:&gt;1+language:JavaScript&quot;;
  
  import { Octokit } from &quot;@octokit/core&quot;;
  import { throttling } from &quot;@octokit/plugin-throttling&quot;;
  import { paginateRest } from &quot;@octokit/plugin-paginate-rest&quot;;
  import { restEndpointMethods } from &quot;@octokit/plugin-rest-endpoint-methods&quot;;
  
  (async () =&gt; {
    const MyOctokit = Octokit.plugin(
      throttling,
      paginateRest,
      restEndpointMethods
    );
  
    const octokit = new MyOctokit({
      auth: '..',
      headers: {
        Accept: &quot;application/vnd.github.preview&quot;,
      },
      throttle: {
        onRateLimit: (retryAfter, options, octokit) =&gt; {
          octokit.log.warn(
            `Request quota exhausted for request ${options.method} ${options.url}`
          );
  
          if (options.request.retryCount === 0) {
            // only retries once
            octokit.log.info(`Retrying after ${retryAfter} seconds!`);
            return true;
          }
        },
        onAbuseLimit: (retryAfter, options, octokit) =&gt; {
          // does not retry, only logs a warning
          octokit.log.warn(
            `Abuse detected for request ${options.method} ${options.url}`
          );
        },
      },
    });
  
    const results = await octokit.paginate(octokit.rest.search.repos, {
      q: searchQuery,
    });
  
    console.log({ len: results.length }); // --&gt; output 1020. should be much more.
  
  })();
  </code></pre>