I'm getting an error whenever I try to pull the temp value. The error is: TypeError: string indices must be integers

This is my code:

```
for item in data['main']:
    tempday=item['temp']

```

This is the API I am pulling from:

```
{
"coord": {},
"weather": [],
"base": "stations",
"main": {
    "temp": 53.2,
    "pressure": 1021,
    "humidity": 71,
    "temp_min": 44.6,
    "temp_max": 57.2
},
"visibility": 16093,
}

```

I want to get the "temp" value of 53.2. What am I doing wrong with my code?