title: How to get required keys from multiple JSONs at once?
body: <p>I want to get keys from several JSON objects which I receive using the requests library. There's a list of names I use for API call in a loop. This is how I try to get the values:</p>
  <pre><code>for i in name:
      media_info = requests.get(URI)
      print (media_info.text)
  
  {&quot;error&quot;:&quot;no_transcoder&quot;}
  
  {&quot;tracks&quot;:[{&quot;bitrate&quot;:191,&quot;channels&quot;:2,&quot;codec&quot;:&quot;mp3&quot;,&quot;content&quot;:&quot;audio&quot;,&quot;lang&quot;:&quot;eng&quot;,&quot;sample_rate&quot;:44100,&quot;track_id&quot;:&quot;a1&quot;},{&quot;bframes&quot;:3,&quot;bitrate&quot;:3452,&quot;codec&quot;:&quot;h264&quot;,&quot;content&quot;:&quot;video&quot;,&quot;fps&quot;:29.97,&quot;gop_size&quot;:110,&quot;height&quot;:1080,&quot;lang&quot;:&quot;eng&quot;,&quot;last_gop&quot;:72,&quot;level&quot;:&quot;4.0&quot;,&quot;pix_fmt&quot;:&quot;yuv420p&quot;,&quot;pixel_height&quot;:1080,&quot;pixel_width&quot;:1920,&quot;profile&quot;:&quot;High&quot;,&quot;sar_height&quot;:1,&quot;sar_width&quot;:1,&quot;track_id&quot;:&quot;v1&quot;,&quot;width&quot;:1920}]}
  
  {&quot;provider&quot;:&quot;FFmpeg&quot;,&quot;title&quot;:&quot;Service01&quot;,&quot;tracks&quot;:[{&quot;bframes&quot;:1,&quot;bitrate&quot;:3717,&quot;codec&quot;:&quot;h264&quot;,&quot;content&quot;:&quot;video&quot;,&quot;fps&quot;:59.94,&quot;gop_size&quot;:69,&quot;height&quot;:720,&quot;last_gop&quot;:101,&quot;level&quot;:&quot;4.0&quot;,&quot;pix_fmt&quot;:&quot;yuv420p&quot;,&quot;pixel_height&quot;:720,&quot;pixel_width&quot;:1280,&quot;profile&quot;:&quot;High&quot;,&quot;sar_height&quot;:1,&quot;sar_width&quot;:1,&quot;track_id&quot;:&quot;v1&quot;,&quot;width&quot;:1280},{&quot;bitrate&quot;:192,&quot;channels&quot;:2,&quot;codec&quot;:&quot;aac&quot;,&quot;content&quot;:&quot;audio&quot;,&quot;sample_rate&quot;:48000,&quot;track_id&quot;:&quot;a1&quot;}]} 
  
  media_data = json.loads(media_info.text)
  media_json = media_data['tracks'][0]['fps']
  media_info_data.append(media_json)
  print (media_info_data)
  
  [59.94]
  </code></pre>
  <p>The problem is that I receive only the last value.</p>
  <p>How to collect all the fps keys even if there's {&quot;error&quot;:&quot;no_transcoder&quot;}?</p>
  <p>How to get fps, gop and bitrate keys?</p>