title: Throttling Axios Requests
body: <p>I'm using axios to make requests to the Deezer API. Unfortunately, with Deezer's API when you request an artist's albums it does not include album tracks. So, I am working around this by requesting the artist's albums and then performing a subsequent axios request for each album. The problem I'm running into is that the API limits requests to 50 per 5 seconds. If an artist has more than 50 albums I usually get a "quota exceeded" error. Is there a way to throttle axios requests to 50 per 5 seconds, specifically when using axios.all?</p>
  
  <pre><code>var axios = require('axios');
  
  function getAlbums(artistID) {
    axios.get(`https://api.deezer.com/artist/${artistID}/albums`)
      .then((albums) =&gt; {
        const urls = albums.data.data.map((album) =&gt; {
          return axios.get(`https://api.deezer.com/album/${album.id}`)
            .then(albumInfo =&gt; albumInfo.data);
        });
        axios.all(urls)
          .then((allAlbums) =&gt; {
            console.log(allAlbums);
          });
      }).catch((err) =&gt; {
        console.log(err);
      });
  }
  
  getAlbums(413);
  </code></pre>