title: Scrape complete information of all companies using API, requests in python
body: <p>I have a doubt and I am not getting answers for it. Using this <a href="https://www.spacresearch.com/api" rel="nofollow noreferrer">API</a> How can I get the information for All companies which are displayed <a href="https://www.spacresearch.com/symbol?s=live-deal&amp;sector=&amp;geography=" rel="nofollow noreferrer">here</a>
  The python client example which has been shown on API asks for a company symbol(Which we can get after scraping the links from the SPAC column. But how do I get information for all the companies and just not a single company?
  Here's the sample python client example which can get the information for a single company</p>
  <pre><code>import requests
  
  def get_company(root_symbol):
      end_point = &quot;https://www.spacresearch.com/api/v1/company/{}&quot;.format(root_symbol)
      print(&quot;Connecting to: &quot;, end_point)
      token = &quot;Bearer {}&quot;.format(YOUR_API_TOKEN)
      return requests.get(end_point, headers={&quot;Authorization&quot;: token})
  
  response_json = get_company(&quot;ANZUU&quot;).json()
  print(response_json)
  </code></pre>
  <p>Is there anyway I can get information for all companies and just not one?
  Please help!</p>
  <p><strong>EDIT</strong>: posting the complete stacktrace for the @demouser's answer:</p>
  <pre><code>Connecting to:  https://www.spacresearch.com/api/v1/company/Magnum Opus Acq Ltd
  Traceback (most recent call last):
   File &quot;data_ext.py&quot;, line 43, in &lt;module&gt;
     response_json = get_company(listofcompanies[i]).json()
   File &quot;F:\proj\venv\lib\site-packages\requests\models.py&quot;, line 910, in json
     return complexjson.loads(self.text, **kwargs)
   File &quot;C:\Users\technophile\AppData\Local\Programs\Python\Python38\lib\json\__init__.py&quot;, line 357, in loads
     return _default_decoder.decode(s)
   File &quot;C:\Users\technophile\AppData\Local\Programs\Python\Python38\lib\json\decoder.py&quot;, line 337, in decode
     obj, end = self.raw_decode(s, idx=_w(s, 0).end())
   File &quot;C:\Users\technophile\AppData\Local\Programs\Python\Python38\lib\json\decoder.py&quot;, line 355, in raw_decode
     raise JSONDecodeError(&quot;Expecting value&quot;, s, err.value) from None
  json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)
  </code></pre>