Error with api.py downloading CDS

Hi i have issues downloading with python using windows.

Code:
import cdsapi

dataset = “reanalysis-era5-land”
request = {
“variable”: [“total_evaporation”],
“year”: “1979”,
“month”: “01”,
“day”: [“01”],
“time”: [“08:00”],
“data_format”: “grib”,
“download_format”: “zip”,
“area”: [-29, -73, -36.5, -69.7]
}

client = cdsapi.Client()
client.retrieve(dataset, request).download()

Error:
INFO Sending request to https://cds.climate.copernicus.eu/api/v2/resources/reanalysis-era5-complete
Traceback (most recent call last):
File “C:\Users\joser\AppData\Local\Programs\Python\Python311\Lib\site-packages\cdsapi\api.py”, line 459, in _api
result.raise_for_status()
File “C:\Users\joser\AppData\Local\Programs\Python\Python311\Lib\site-packages\requests\models.py”, line 1021, in raise_for_status
raise HTTPError(http_error_msg, response=self)
requests.exceptions.HTTPError: 404 Client Error: Not Found for url: https://cds.climate.copernicus.eu/api/v2/resources/reanalysis-era5-complete

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File “c:\xxx\ERALAND5\prueba.py”, line 5, in
c.retrieve(‘reanalysis-era5-complete’, {
File “C:\Users\xxx\AppData\Local\Programs\Python\Python311\Lib\site-packages\cdsapi\api.py”, line 381, in retrieve
result = self._api(“%s/resources/%s” % (self.url, name), request, “POST”)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File “C:\Users\xxx\AppData\Local\Programs\Python\Python311\Lib\site-packages\cdsapi\api.py”, line 481, in _api
raise Exception(error)
Exception: Not Found

Someone has had the same error. Someone can help me.

Thanks for the help.

Hi,
please check and copy the right CDS API credentials from the following page (please log in first): Climate Data Store

Thanks