Not Found for url: https://cds.climate.copernicus.eu/api/resources/reanalysis-era5-complete

Hi, I am trying to download ERA5 reanalysis data using cdsapi, but get the same error (Not Found for url) over and over.

I’ve set the $HOME/.cdsapirc as follows:
url: https://cds.climate.copernicus.eu/api
key: user_ID:personal_token

I’ve accepted the terms and conditions, along with the dataset license.
I’ve tried using different Python versions (3.8, 3.9, 3.10).

Also, I am able to download directly from the web interface, but not using API (currently trying to download using an example API request code, unsuccessfully.)

Am I missing anything?

Thanks for the help.

Hi,
the key format is not correct.
user_ID:personal _token was the old format.
Please copy the key value from the following page (log in first): Climate Data Store
or from ‘Your profile’ page.

Thanks

Thank you.

I tried this before but haven’t tested it for different Python versions.
This method seems to be highly sensitive to the Python version used. It didn’t work with Python 3.6 or 3.10, but it works now with Python 3.8.

Thanks again.