So I'm sending an api request and it returns this:

```
{
    "status": true,
    "data": {
        "message": "Check was successful",
        "exec_time": 0.708359956741333,
        "total_upgrades": 1,
        "uses_remaining": 0,
        "uses_allowed": 1,
        "upgrades": [
            {
                "used_time": "2020-06-29T22:17:21",
                "address": "ADDRESS",
                "invite_token": "N\/A",
                "iso_code": "US",
                "country": "United States"
            }
        ]
    }
}

```

As you can see it returns `upgrades` as an array

```
 "upgrades": [
            {
                "used_time": "2020-06-29T22:17:21",
                "address": "ADDRESS",
                "invite_token": "N\/A",
                "iso_code": "US",
                "country": "United States"
            }
        ]

```

How do I parse the `address` inside of `upgrades`
this is my code (which doesn't work)

```
import requests
r = requests.get(api_url)
response = r.json()

print(response['data']['upgrades'] #outputs the array like so: [{ }]
print(response['data']['upgrades']['address'] # gives error: TypeError: list indices must be integers or slices, not str

```