title: Fastest way to query list of paginated api urls?
body: <p>I have a list of <code>api_urls</code>:</p>
  <pre><code>api_urls = [api_url_1, api_url_2, api_url_3]
  </code></pre>
  <p>For each of these URLs I have to loop through the pagination to get all the data:</p>
  <pre><code>def get_data(api_url):
      next_page = 1
      results = []
      while next_page is not None:
          response = query(api_url)
          results.extend(response[&quot;data&quot;])
          next_page = response[&quot;next_page&quot;]
  
      return results
  </code></pre>
  <p>What is the fastest way to get the data from all my <code>api_urls</code>? Can I do multithreading here?</p>