Parsing REST api result python
<p>I'm trying to learn API's and I have a call to <a href="http://api.zippopotam.us/us/90210" rel="nofollow">http://api.zippopotam.us/us/90210</a> which yields:</p>

<pre><code>{"post code": "90210", "country": "United States", "country abbreviation": "US", "places": [{"place name": "Beverly Hills", "longitude": "-118.4065", "state": "California", "state abbreviation": "CA", "latitude": "34.0901"}]}
</code></pre>

<p>The API uses country (US) and zip code to return the "place". I tried to parse the "place" segment to a variable like so:</p>

<pre><code>for item in api_return:
   place = item['place']
</code></pre>

<p>However, I get an error message saying "TypeError: String indices must be integers"`. Is there another way to parse this long list to extract the "place name", "state" etc.?</p>

<p>Thanks in advance!</p>