title: Error message : Http not defined / API import Python
body: <p>I'm trying to import the URL of the Json API but I get the error message:</p>
  <pre><code>---------------------------------------------------------------------------
  NameError                                 Traceback (most recent call last)
  &lt;ipython-input-18-5f40dac6d9a4&gt; in &lt;module&gt;
        1 # get data from the API
        2 url = 'https://admin.appnext.com/offerApi.aspx?pimg=1&amp;city=1&amp;ua=1&amp;id=5da11d20-0a32-4852-8233-39b711a360a9'
  ----&gt; 3 r = http.request('GET', url)
        4 r.status
  
  NameError: name 'http' is not defined
  </code></pre>
  <p>The code I'm using is the follow:</p>
  <pre><code>#  data retrieval
  import urllib3
  from urllib3 import request
  # json data
  import json
  # pandas dataframes
  import pandas as pd
  </code></pre>
  <p>No issues to import</p>
  <pre><code># get data from the API
  url = 'https://admin.appnext.com/offerApi.aspx?pimg=1&amp;city=1&amp;ua=1&amp;id=5da11d20-0a32-4852-8233-39b711a360a9'
  r = http.request('GET', url)
  r.status
  </code></pre>
  <p>Does anybody know what could be the issue?</p>
  <p>Thanks in advance</p>