Create a call to an external API in Python and process the response.
The API URL: 'https://www.example.com/api/data'
import requests

url = 'https://www.example.com/api/data'
response = requests.get(url)
data = response.json()

# Process response data
for item in data:
  # Do something with item...