Create a network application in Python that sends a GET request to an API and parses the JSON response.
URL of API endpoint: https://api.mydomain.com/getdata
import requests

url = 'https://api.mydomain.com/getdata'
response = requests.get(url)

data = response.json()
print(data)