title: How do you get a part of a json response in python?
body: <p>I am a new programmer and I'm learning the request module. I'm stuck on the fact that I don't know how to get a specific part of a json response, I think it's called a header? or its the thing inside of a header? I'm not sure. But the API returns simple json code. This is the api</p>
  <p><code>https://mcapi.us/server/status?ip=mc.hypixel.net</code></p>
  <p>for more of a example, lets say it returns this json code from the api</p>
  <pre><code>{&quot;status&quot;:&quot;success&quot;,&quot;online&quot;:true&quot;}
  </code></pre>
  <p>And I wanted to get the &quot;online&quot; response, how would I do that?</p>
  <p>And this is the code im currently working with.</p>
  <pre><code>import requests
  
  
  def main():
      ask = input(&quot;IP : &quot;)
      response = requests.get('https://mcapi.us/server/status?ip=' + ask)
      print(response.content)
  
  
  
  main()
  </code></pre>
  <p>And to be honest, I don't even know if this is json. I think it is but the api page says its cors? if it isn't I'm sorry.</p>