title: How can I get all data from a JSON api when pagination is enabled?
body: <p>Can your help me with this problem, I need get all data from <a href="https://hn.algolia.com/api/v1/search_by_date?query=nodejs" rel="nofollow noreferrer">https://hn.algolia.com/api/v1/search_by_date?query=nodejs</a>  but I'm get the data the one page(page 1) with this code:</p>
  
  <pre><code>urlApi = 'https://hn.algolia.com/api/v1/search_by_date?query=nodejs'
  
  let repo = await axios.get(urlApi);
  repo.data.hits.map((data) =&gt; {
      console.log(data);
   });
  </code></pre>
  
  <p>But this json contains 'nbPages': 50, I need to map the 50 json pages,
  you have an elegant idea for mapping.</p>
  
  <p>Regards</p>