I am trying to download JSON files from a website that is being accessed with username and password (API service), but without success.

I am using Python3.

Using the one below, I get an 'invalid syntax' error:

```
NG_AT = urllib.request.urlretrieve(('https://agsi.gie.eu/api/data/AT?limit=7', auth=(username, api_token)), 'AT.json')

```

I need to be able to download the `.json` file that exists in the above link directly to a file called 'AT.json'.