title: CURL Python Issue When Hitting an API
body: <p>The API I want to access is having me use CURL, something I'm unfamiliar with. I'm on windows using pycharm/spyder IDE (I can use both).</p>
  <p>I've only used the library requests so not sure how to proceed. I tried the approach below using requests but got the error: &quot;TypeError: 'str' object is not callable.&quot; I researched answers here but couldn't find a resolution.</p>
  <p>What the API documentation says:</p>
  <pre><code>    $ curl -H &quot;X-ABCD-Key: api_key&quot; \
      https://api.abcd.com/searches.json
  </code></pre>
  <p>My approach:</p>
  <pre><code>    import requests
      url = &quot;https://api.abcd.com/searches.json&quot;
      auth = (&quot;api_key&quot;)
      r = requests.get(url, auth=auth)
      print(r.content)
  </code></pre>