CDS API on Colab

I have tried all morning to install CDS API to Google Colab. I am using colab because I want all the dataset to be on cloud (my pc is out of space). I have ran all the codes to install API and download the data. Has someone tried it? If yes could you please share how you went about it or your code? I am specifically trying to download wind data. Thank you

Yes, it is possible.
I would suggest connecting Colab to Google Drive to have a permanent storage, in fact the files in Colab “disappear” once the virtual machine is closed.
You can try writing the .cdsapirc using these lines:

url = ‘url: https://cds.climate.copernicus.eu/api/v2
key = ‘YOUR_KEY’

with open(‘/root/.cdsapirc’, ‘w’) as f:
f.write(‘\n’.join([url, key]))

Hello, is this working for you ? from my side this url url: https://cds.climate.copernicus.eu/api/v2 is not working i have an 404 error

Yes, the string has changed, there is no “v2” anymore, look here:
Climate Data Store