title: String Indices Must be Integers - Fetching data from API
body: <p>Here is the data i want to get from</p>
  <pre><code>import json
  
  url = &quot;https://api.opensea.io/api/v1/collection/elonpunkyachtclub/stats&quot;
  
  headers = {&quot;Accept&quot;: &quot;application/json&quot;}
  
  response = requests.request(&quot;GET&quot;, url, headers=headers)
  data = response.json
  decoded = json.loads(data)
  
  {
    &quot;stats&quot;: {
      &quot;one_day_volume&quot;: 3.4598559686941988,
      &quot;one_day_change&quot;: -0.26082160690977335,
      &quot;one_day_sales&quot;: 167,
      &quot;one_day_average_price&quot;: 0.020717700411342507,
      &quot;seven_day_volume&quot;: 24.111522658583088,
      &quot;seven_day_change&quot;: 60.74608045431068,
      &quot;seven_day_sales&quot;: 1284,
      &quot;seven_day_average_price&quot;: 0.01877844443814882,
      &quot;thirty_day_volume&quot;: 24.502017447583082,
      &quot;thirty_day_change&quot;: 0,
      &quot;thirty_day_sales&quot;: 1370,
      &quot;thirty_day_average_price&quot;: 0.017884684268308818,
      &quot;total_volume&quot;: 24.50201744758308,
      &quot;total_sales&quot;: 1370,
      &quot;total_supply&quot;: 6969,
      &quot;count&quot;: 6969,
      &quot;num_owners&quot;: 1854,
      &quot;average_price&quot;: 0.017884684268308818,
      &quot;num_reports&quot;: 4,
      &quot;market_cap&quot;: 130.86697928945915,
      &quot;floor_price&quot;: 0.022
    }
  }
  
  </code></pre>
  <pre class="lang-py prettyprint-override"><code>print(data)
  print(data['stats']['floor_price'])
  </code></pre>
  <p>I want to fetch the floor price from the data</p>
  <p>Getting error, what I am doing wrong?</p>
  <p>Any help is appreciated, thanks.......</p>